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

Loosen version requirement #15

Merged
merged 2 commits into from
Jul 19, 2023
Merged

Loosen version requirement #15

merged 2 commits into from
Jul 19, 2023

Conversation

ekzhang
Copy link
Member

@ekzhang ekzhang commented Jul 7, 2023

Right now this is giving an error on installation:

ERROR: pytest-markdown-docs 0.4.1 has requirement markdown-it-py<1.2.0,>=1.1.0, but you'll have markdown-it-py 3.0.0 which is incompatible.

Right now this is giving an error on installation:

```
ERROR: pytest-markdown-docs 0.4.1 has requirement markdown-it-py<1.2.0,>=1.1.0, but you'll have markdown-it-py 3.0.0 which is incompatible.
```
@ekzhang ekzhang requested a review from freider July 7, 2023 14:44
Copy link

@modal-pr-review-automation modal-pr-review-automation bot left a comment

Choose a reason for hiding this comment

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

Auto-approved 👍. This diff qualified for automatic approval and doesn't need follow up review.

@freider
Copy link
Collaborator

freider commented Jul 11, 2023

Strange, I don't think we have any transitive 3.0.0 dependencies. 2.2.0 should satisfy all of our dependencies as far as I can tell, but maybe some of our dependencies changed their sub-deps, and pip does work in weird ways sometimes... I haven't tested it with 3.0.0, but if it seems to work then I think we can bump. But perhaps with an upper bound to make sure it doesn't randomly break in the future?

Relatedly - we should bump the main repo pytest-markdown-docs dependency to 0.4.3

@ekzhang
Copy link
Member Author

ekzhang commented Jul 12, 2023

Strange, I don't think we have any transitive 3.0.0 dependencies. 2.2.0 should satisfy all of our dependencies as far as I can tell

The problem is that ~=2.2.0 actually means >=2.2.0, <2.3.0. This is different from ~=2.2, which means >=2.2, <3.0. I learned about this just a few weeks ago. :')

I'll upper bound it by 4.0 perhaps

@erikbern
Copy link
Contributor

Wait what's the difference between >=2.2.0, <2.3.0 and >=2.2, <2.3 ?

@ekzhang
Copy link
Member Author

ekzhang commented Jul 13, 2023

Sorry, let me fix my comment! Typo. I realize I just made it even more confusing.

@ekzhang
Copy link
Member Author

ekzhang commented Jul 19, 2023

Hey, I'm still getting this error on modal-labs installation for requirements.txt.

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pytest-markdown-docs 0.4.1 requires markdown-it-py<1.2.0,>=1.1.0, but you have markdown-it-py 3.0.0 which is incompatible.

I'm going to go ahead and merge it if it's okay. The PR doesn't break anything, and I can still run markdown docs fine with my version 3.0 of markdown-it-py.

@ekzhang ekzhang merged commit ccbf991 into main Jul 19, 2023
6 checks passed
@ekzhang ekzhang deleted the ekzhang-patch-1 branch July 19, 2023 20:42
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.

3 participants