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: Add upper python version restriction to isort and darglint #1152

Closed
wants to merge 4 commits into from

Conversation

eyllanesc
Copy link
Contributor

Fixes #1148

@eyllanesc eyllanesc changed the title fix #1148 Added upper version restriction to isort and darglint Feb 15, 2022
@eyllanesc eyllanesc changed the title Added upper version restriction to isort and darglint fix: Add upper version restriction to isort and darglint Feb 15, 2022
@eyllanesc eyllanesc changed the title fix: Add upper version restriction to isort and darglint fix: Add upper python version restriction to isort and darglint Feb 15, 2022
@@ -28,14 +28,15 @@ click = ">=8.0.1"
Pygments = ">=2.10.0"
black = ">=21.10b0"
coverage = {extras = ["toml"], version = ">=6.2"}
darglint = ">=1.8.1"
darglint = {version = ">=1.8.1", python = "<4"}
urllib3 = {version = ">=1.26.8", python = "<4"}
Copy link
Contributor

Choose a reason for hiding this comment

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

should urllib be here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@paw-lu When I tested I saw that if you don't set the version of urllib3 then a version of urllib3 was downloaded that had a bug, and the library that urllib3 used was darglint so I put it there.

Copy link
Owner

@cjolowicz cjolowicz Feb 17, 2022

Choose a reason for hiding this comment

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

urllib3 should not be a direct dependency. You're right that Poetry will downgrade it to a version without a Python cap. urllib3 requires Python < 4, and it's an indirect dependency via safety and sphinx. We could make this work by adding the environment marker to safety and sphinx as well. However, I'm now considering whether we should add the Python cap back. I'll open an issue shortly so we can discuss the pros and cons of this move.

Copy link
Owner

Choose a reason for hiding this comment

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

See #1154

@cjolowicz
Copy link
Owner

@cjolowicz cjolowicz closed this Feb 21, 2022
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.

Poetry SolverProblemError
3 participants