Skip to content

Commit

Permalink
Avoid using dependencies with URLs on setup.cfg
Browse files Browse the repository at this point in the history
PyPI does not accept this kind of dependencies.

An alternative is to overwrite the dependency in tox.ini
  • Loading branch information
abravalheri committed Nov 14, 2021
1 parent d212daa commit 9f20fce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ testing =
mock
flake8-2020
virtualenv>=13.0.0
pytest-virtualenv @ git+https://github.com/jaraco/pytest-plugins@distutils-deprecated#subdirectory=pytest-virtualenv
pytest-virtualenv>=1.2.7 # TODO: Update once man-group/pytest-plugins#188 is solved
wheel
paver
pip>=19.1 # For proper file:// URLs support.
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ deps =
# workaround for sphinx-doc/sphinx#9562
# TODO: remove after Sphinx>4.1.2 is available.
sphinx@git+https://github.com/sphinx-doc/sphinx; python_version>="3.10"
# TODO: remove after man-group/pytest-plugins#188 is solved
pytest-virtualenv @ git+https://github.com/jaraco/pytest-plugins@distutils-deprecated#subdirectory=pytest-virtualenv
commands =
pytest {posargs}
usedevelop = True
Expand Down

0 comments on commit 9f20fce

Please sign in to comment.