Skip to content
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

Merged
merged 4 commits into from
Jan 13, 2016
Merged

Conversation

mplanchard
Copy link
Contributor

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 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

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
@mplanchard mplanchard self-assigned this Jan 13, 2016
# The full version, including alpha/beta/rc tags.
release = '0.1.0'
release = '0.2.0'

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)

Copy link
Contributor Author

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.

@erinbleiweiss
Copy link

Looks good to me, aside from a possible version number issue

@mplanchard
Copy link
Contributor Author

Check it out. Seems to work (you can check locally by running make html from the docs directory)

@erinbleiweiss
Copy link

Cool, I approve!

mplanchard added a commit that referenced this pull request Jan 13, 2016
Improved Versioning and Error Handling
@mplanchard mplanchard merged commit c2089a9 into development Jan 13, 2016
@mplanchard mplanchard deleted the mp_development branch January 13, 2016 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants