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

[BUG] Versions conflict due to wrong version constraint in requirements.txt #30

Closed
nelsyeung opened this issue Dec 5, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@nelsyeung
Copy link

nelsyeung commented Dec 5, 2022

Describe the bug
Version conflict due to wrong version constraint in requirements.txt.
Looking at PEP440, >=5.*, <=6.* doesn't look right. It should be >=5.0, <7.0.

To Reproduce
Steps to reproduce the behavior:

  1. Create your own package your-package that depends on PyYAML 6.0 and pyaml-env 1.2.0

  2. Upload the package (I'm using an internal PyPI server)

  3. pip download your-package

  4. Error:

    ERROR: Cannot install your-package and your-package==1.0.0 because these package versions have conflicting dependencies.
    
    The conflict is caused by:
        your-package 1.0.0 depends on PyYAML<7.0 and >=6.0
        your-package pyaml-env 1.2.0 depends on PyYAML<=6.* and >=5.*
        your-package 2.0.0.dev540 depends on PyYAML<7.0 and >=6.0
        pyaml-env 1.1.5 depends on PyYAML<=6.* and >=5.*

Expected behavior
It shouldn't happen

Additional context
Add any other context about the problem here.

  • Python version: 3.7+
  • OS: macOS 12.6.1
@nelsyeung nelsyeung added the bug Something isn't working label Dec 5, 2022
@mkaranasou
Copy link
Owner

👋 thanks, I just released a fix, let me know if it is ok for you.

@gregdan3
Copy link

Can confirm this works as intended. Thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants