-
Notifications
You must be signed in to change notification settings - Fork 8
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
Improved Versioning and Error Handling #4
Conversation
for tracking the version number and automatically pulling into setup.py and the __init__ file. Also improved the error message if None is passed into `compare_packages`. Added tox support for python 2.6, 2.7, 3.4, and 3.5. * pep compliance * version number * added rpm module to __init__ import * Added TypeError check when parsing versions to give useful output if someone accidentally passes a None * added setup.cfg with universal flag * fixed setup.cfg * Added tox support * Updated imports in test_common * Added version.py * Import __version__ and __version_info__ at package level * setup.py uses version.py to get version * Updated package level documentation in __init__.py * Moved stuff around a bit in __init__.py
# The full version, including alpha/beta/rc tags. | ||
release = '0.1.0' | ||
release = '0.2.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.
These version numbers don't match the number in version.py (0.2.0 ≠ 0.2.2)
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.
Oh yeah. I always forget about Sphinx versioning. I'll try to get that to pull automatically, too.
Looks good to me, aside from a possible version number issue |
Check it out. Seems to work (you can check locally by running |
Cool, I approve! |
Improved Versioning and Error Handling
This commit contains some useful additions, including a
version.py
for tracking the version number and automatically pulling into
setup.py
and the__init__
file. Also improved the error messageif None is passed into
compare_packages
. Added tox support forpython 2.6, 2.7, 3.4, and 3.5.
__init__
importoutput if someone accidentally passes a None
setup.cfg
with universal flagsetup.cfg
version.py
__version__
and__version_info__
at package levelsetup.py
usesversion.py
to get version__init__.py
__init__.py