-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use setup.cfg with adding python_requires #101
Conversation
To use attr: pytd.__version__, we need to stop importing .client in __init__.py. This introduces incompatible change than benefit, so changes to write version number in setup.cfg explicitly.
@@ -1,3 +1,52 @@ | |||
[metadata] | |||
name = pytd | |||
version = 1.4.0 |
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.
Unfortunately version = attr: pytd.__version__
doesn't work well while there was improvement for it
https://stackoverflow.com/questions/58202909/modulenotfounderror-when-using-setup-cfg-and-version-accessed-with-attr
pypa/setuptools#1753
Hmm, we hit |
doc/contributing.rst
Outdated
.. code:: py | ||
|
||
__version__ = "1.0.0" | ||
version = 1.0.0 |
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.
Let's make it more interpretable as setup.cfg
.. code:: ini
[metadata]
name = pytd
version = 1.0.0
setup.py
Outdated
a shorter time. It eventually makes your day-to-day data analytics work more | ||
efficient and productive. | ||
""" |
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.
Since the config file no longer refers __doc__
, we can delete the top-level statements.
Thanks, applied feedbacks on 865e9df |
This PR to use setup.cfg instead of setup.py also adding
python_requires
, describing explicit supported version for Python