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

Respect markers on constraints #282

Merged
merged 3 commits into from
Nov 2, 2023
Merged

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Nov 1, 2023

Closes #252

let constraints_txt = temp_dir.child("constraints.txt");
constraints_txt.touch()?;
constraints_txt.write_str("aiohttp==3.8.5;python_version<'3.12'")?;
constraints_txt.write_str("aiohttp==3.9.0b0;python_version>='3.12'")?;
Copy link
Member

Choose a reason for hiding this comment

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

Can we add a test case that succeeds, e.g., add a dependency for python_version <= 3.7 and ensure it's not respected?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I can. I don't know about this test case it's not really doing what I want.

Copy link
Member Author

Choose a reason for hiding this comment

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

I used a simpler dependency tree for this test, much better now.

@zanieb zanieb force-pushed the zanie/python-constraint-marker branch from 453a937 to 29d5fbc Compare November 1, 2023 22:44
@zanieb zanieb marked this pull request as ready for review November 1, 2023 22:44
@zanieb zanieb force-pushed the zanie/python-constraint-marker branch from 29d5fbc to b89a9aa Compare November 1, 2023 22:47
@zanieb zanieb force-pushed the zanie/python-constraint-marker branch from b89a9aa to f31ae70 Compare November 2, 2023 00:57
@zanieb zanieb merged commit b8ff32f into main Nov 2, 2023
@zanieb zanieb deleted the zanie/python-constraint-marker branch November 2, 2023 01:20
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.

Python version isn't applied properly
2 participants