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

Fix compatibility with setuptools 39. #9

Merged
merged 5 commits into from May 3, 2018
Merged

Fix compatibility with setuptools 39. #9

merged 5 commits into from May 3, 2018

Conversation

icemac
Copy link
Member

@icemac icemac commented Apr 23, 2018

Fixes #8.

@icemac icemac self-assigned this Apr 23, 2018
@icemac icemac requested a review from mgedmin April 23, 2018 10:05
Copy link
Member

@mgedmin mgedmin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@@ -16,14 +16,10 @@
from setuptools import package_index


_final_parts = '*final-', '*final'
def _final_version(parsed_version):
"""Function copied from zc.buildout.easy_install._final_version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the docstring still accurate now that you've replaced the implementation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is, I copied the implementation from the current version of zc.buildout.

trunked_candidate = [x for x in dist.parsed_version[:level]
if not x.startswith('*')]
trunked_current = parsed_version.base_version.split('.')[:level]
trunked_candidate = dist.parsed_version.base_version.split('.')[:level]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment needs some updating -- the "remove *final" bit is no longer true.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@mgedmin
Copy link
Member

mgedmin commented Apr 23, 2018

Let's drop Python 2.6 from travis (and tox and setup.py and mention that in the changelog).

(We should also add 3.5 and 3.6 to travis and tox and setup.py and changelog.)

@icemac
Copy link
Member Author

icemac commented May 3, 2018

@mgedmin I dropped 2.6 and 3.3.

@icemac icemac merged commit a767d6b into master May 3, 2018
@icemac icemac deleted the fix-8 branch May 3, 2018 06:35
@icemac
Copy link
Member Author

icemac commented May 3, 2018

@mgedmin Could you create a release on PyPI or give me (icemac) the necessary rights to do so?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants