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

40.1.0 Incorrect handling of pypi dev versions #1463

Closed
kstensland opened this issue Aug 20, 2018 · 4 comments
Closed

40.1.0 Incorrect handling of pypi dev versions #1463

kstensland opened this issue Aug 20, 2018 · 4 comments

Comments

@kstensland
Copy link

kstensland commented Aug 20, 2018

After installing beaker_extensions==0.1.1dev (https://pypi.org/project/beaker_extensions/) using the newest version of setuptools, it seems as though an extraneous dev is appended to the package name. This is causing issues as my project is expecting the version to be beaker_extensions==0.1.1dev0 and crashes.

$ pip install --no-cache --force-reinstall beaker-extensions==0.1.1dev
Looking in links: /opt/pip/wheels
Collecting beaker-extensions==0.1.1dev
/opt/webapp/beaker/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:369: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  SNIMissingWarning
/opt/webapp/beaker/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
/opt/webapp/beaker/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:160: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecurePlatformWarning
  Downloading https://files.pythonhosted.org/packages/ae/85/6e2b09cc3ec41acda6e09e109d98b3201c2d49539d237a307777ea398d9b/beaker_extensions-0.1.1dev.tar.gz
  Requested beaker-extensions==0.1.1dev from https://files.pythonhosted.org/packages/ae/85/6e2b09cc3ec41acda6e09e109d98b3201c2d49539d237a307777ea398d9b/beaker_extensions-0.1.1dev.tar.gz#sha256=1886c9e18661aa01695022068a5a6fb3da54db2d13a3df431fefd17d37dcd541, but installing version 0.1.1.dev0dev
Installing collected packages: beaker-extensions
  Running setup.py install for beaker-extensions ... done
Successfully installed beaker-extensions-0.1.1.dev0dev

This is definitely an incorrectly named package, but it definitely works with a previous versions of setuptools 40.0.0. I know it could also be related to a recent update by pip.

$ pip list
Package           Version
----------------- -------------
beaker-extensions 0.1.1.dev0dev
pip               18.0
setuptools        40.1.0
@kstensland kstensland changed the title Incorrect handling of pypi dev versions 40.1.0 Incorrect handling of pypi dev versions Aug 20, 2018
@kstensland
Copy link
Author

The actual problem here is with pkg_resources at runtime

  File "/opt/webapp/[test]/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 895, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/webapp/project_name/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
ContextualVersionConflict: (beaker-extensions 0.1.1.dev0dev (/opt/webapp/project_name/lib/python2.7/site-packages), Requirement.parse('beaker-extensions==0.1.1dev'), set(['project_name']))

@benoit-pierre
Copy link
Member

That's probably because of this in setup.cfg:

[egg_info]
tag_build = dev
tag_date = 0
tag_svn_revision = 0

And the same underlying issue as in #1462, which I'm currently investigating.

@benoit-pierre
Copy link
Member

Culprit is e9bdeda.

@benoit-pierre
Copy link
Member

Closing as duplicate of #1462.

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

No branches or pull requests

2 participants