-
Notifications
You must be signed in to change notification settings - Fork 13.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: consolidate the Superset python package metadata #27884
Conversation
9d34016
to
2490961
Compare
mypy.ini
Outdated
@@ -0,0 +1,33 @@ | |||
# Licensed to the Apache Software Foundation (ASF) under one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why mypy.ini
and not just add these to pyproject.toml
. Per here this is a supported configuration setting for Mypy and it would ensure consistency with how we configure isort
et al.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok let me try it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I did this and pushed a bit further to bring tox.ini into pyproject.toml as well
@john-bodley let me know what you think as to whether |
Following up on #27859, where I introduced a new file `pyproject.toml` to set up the python project metadata, here I'd like to consolidate and modernize further by pushing as much as possible into pyproject.toml, except where things need to be dynamic, for which we'll keep using setup.py: - get rid of setup.cfg, everything there should be able to move to pyproject.toml - remove duplicate keys from setup.py and pyproject.toml - minimize/simplify setup.py
abfa9ad
to
830f4c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!!
SUMMARY
Following up on #27859, where
I introduced a new file
pyproject.toml
to set up thepython project metadata, here I'd like to consolidate and modernize
further by pushing as much as possible into pyproject.toml,
except where things need to be dynamic, for which we'll keep using
setup.py:
pyproject.toml
NOTE: we may be able to chisel a bit more at
setup.py
, but it's going to me needed in some capacity since we have some dynamic parameters, notably theversion
number we read and align frompackage.json
. There's a tricky thing related toentry-points
we could tackle.Also note that having
setup.py
provides continuity for commands likepython setup.py sdist
which is kind of nice.If we decided to make that a goal, we could fully kill
setup.py
and centralize on pyproject.toml, we're well on our way there.