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 2880, 2881 - Avoid depdencies with URLs in setup.cfg #2882

Merged
merged 2 commits into from
Nov 14, 2021

Conversation

abravalheri
Copy link
Contributor

Motivation

It seems that #2865 might have accidentally introduced a kind of dependency that is not accepted by PyPi:

[options.extras_require]
testing =
        ...
-	pytest-virtualenv>=1.2.7
+	pytest-virtualenv @ git+https://github.com/jaraco/pytest-plugins@distutils-deprecated#subdirectory=pytest-virtualenv

in setup.cfg.
PyPI forbids uploading packages with dependencies outside of PyPI (via URLs specs).

Summary of changes

  • Leave the previous pytest-virtualenv version in setup.cfg
  • Overwrite the version using deps in tox.ini

Closes #2880
Closes #2881

Pull Request Checklist

PyPI does not accept this kind of dependencies.

An alternative is to overwrite the dependency in tox.ini
@jaraco
Copy link
Member

jaraco commented Nov 14, 2021

Looks good. Thanks!

@abravalheri abravalheri marked this pull request as ready for review November 14, 2021 17:47
@abravalheri
Copy link
Contributor Author

By looking at the CI logs, we can confirm that pytest-virtualenv is being pulled from the fork repository:

image

@abravalheri abravalheri changed the title Fix 2880, 2881 Fix 2880, 2881 - Avoid depdencies with URLs in setup.cfg Nov 14, 2021
@jaraco jaraco merged commit 77cc531 into pypa:main Nov 14, 2021
@abravalheri abravalheri deleted the fix-2880 branch November 14, 2021 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants