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

use latest version of importlib_metadata #1472

Merged
merged 1 commit into from
Dec 2, 2019
Merged

use latest version of importlib_metadata #1472

merged 1 commit into from
Dec 2, 2019

Conversation

kammala
Copy link

@kammala kammala commented Dec 2, 2019

Since November 30 importlib_metadata uses semver and has latest version 1.1.0.

If you use twine or pytest(which do not pin upper bound of importlib_metadata dependency) and tox in the same virtualenv and check for package integrity with pip check, you can easily run into the trouble that python installs importlib_metadata incompatible with tox.

Thanks for contributing a pull request!

If you are contributing for the first time or provide a trivial fix don't worry too
much about the checklist - we will help you get started.

Contribution checklist:

(also see CONTRIBUTING.rst for details)

  • wrote descriptive pull request text
  • added/updated test(s)
  • updated/extended the documentation
  • added relevant issue keyword
    in message body
  • added news fragment in changelog folder
    • fragment name: <issue number>.<type>.rst for example (588.bugfix.rst)
    • <type> is must be one of bugfix, feature, deprecation,breaking, doc, misc
    • if PR has no issue: consider creating one first or change it to the PR number after creating the PR
    • "sign" fragment with "by :user:<your username>"
    • please use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files - by :user:superuser."
    • also see examples
  • added yourself to CONTRIBUTORS (preserving alphabetical order)

Copy link
Member

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

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

thanks

@RonnyPfannschmidt
Copy link

@kammala thanks as well, i literally ran into this via devpi and its just great to come in and see something fixed right at that moment

@gaborbernat got an eta for a release?

@gaborbernat
Copy link
Member

will need to fix the first master on which I have no ETA 🤔 if anyone could assist 👍

@gaborbernat
Copy link
Member

gaborbernat commented Dec 2, 2019

@chyzzqo2
Copy link

chyzzqo2 commented Dec 3, 2019

This pin seems too aggressive, why do we need >= 1.1.0 instead of > 0.12

@gaborbernat
Copy link
Member

Feels alright to me, why would this cause an issue? It's our runtime dependency.

@asottile
Copy link
Contributor

asottile commented Dec 3, 2019

I could understand the issue, when trying to install tox alongside something else you'll potentially get conflicts

@kammala
Copy link
Author

kammala commented Dec 3, 2019

Personally I don't feel confident allowing multiple major versions to be installed — in this case we have to run tests against every major version separately.

Though in this case there were no major updates, only versioning schema was changed.

Also, because pip does not have proper dependency resolver, most likely in case of versions conflict we will have to pin version of importlib_metadata on higher level. One could pin tox there as well and create PR to conflicting package with update of importlib_metadata.

Let's see if we spot any incompatibility, we could always extend range of supported versions.

@gaborbernat
Copy link
Member

That's why I was suggesting using pipx 👍 which sidesteps all your issues mentioned.

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.

5 participants