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

Update requirements #998

Merged
merged 4 commits into from
May 25, 2021
Merged

Conversation

cdce8p
Copy link
Member

@cdce8p cdce8p commented May 24, 2021

Description

Followup to #997
/CC: @Pierre-Sassoulas

@@ -1,5 +1,6 @@
-r requirements_test_min.txt
-r requirements_test_pre_commit.txt
Copy link
Member

Choose a reason for hiding this comment

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

I just removed that in #978 because it makes a circular import where astroid need pylint 2.8.2 that need astroid 2.5.6 and break the tests

Copy link
Member Author

Choose a reason for hiding this comment

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

Interesting... The pylint requirements should be fine in theory as it allows >=2.5.6,<2.7 pylint - setup.cfg

Copy link
Member Author

Choose a reason for hiding this comment

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

Found the issue: It seems to be an issue with setuptools_scm as pip install -e . would install version 0.1.dev1+... https://github.com/PyCQA/astroid/pull/998/checks?check_run_id=2659259745#step:6:97

Copy link
Member

Choose a reason for hiding this comment

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

The fix is to remove the pre-commit requirement from requirements_test.txt I don't know if it's a circular import but I think we cannot have both the local astroid and the dependency from pylint.

Copy link
Member Author

Choose a reason for hiding this comment

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

The issue isn't a circular dependency. Somehow pip install -e . will install version 0.1.dev1 of astroid which is incompatible with pylint. I think that setuptools_scm doesn't get the correct version here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Found the issue: pypa/setuptools-scm#414
Will look at solutions tomorrow.

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.5.7 milestone May 24, 2021
@cdce8p cdce8p force-pushed the update-requirements branch from d98e7ed to 07e2282 Compare May 25, 2021 11:13
@cdce8p
Copy link
Member Author

cdce8p commented May 25, 2021

@Pierre-Sassoulas It works now. The solution was to add fetch-depth: 0 to the Github checkout action. That way all refs and tags are fetched and setuptools_scm works correctly.

@Pierre-Sassoulas
Copy link
Member

Nice thank you. I guess we can fix pylint-dev/pylint#4505 with something similar.

@Pierre-Sassoulas Pierre-Sassoulas merged commit 18644f0 into pylint-dev:master May 25, 2021
@cdce8p cdce8p deleted the update-requirements branch May 25, 2021 11:49
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.

2 participants