examples: use pip 21.1

This commit is contained in:
David Hewitt 2021-04-29 08:49:41 +01:00
parent b3659692cd
commit f1dd1380a5
6 changed files with 11 additions and 12 deletions

View File

@ -4,9 +4,11 @@ skipsdist = true
[testenv] [testenv]
description = Run the unit tests under {basepython} description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt deps =
pip>=21.1 # for in-tree-build
-rrequirements-dev.txt
commands = commands =
# Use pip master with in-tree-build feature (to be released in pip 21.0) # --use-feature=in-tree-build is necessary because this example is inside
python -m pip install --upgrade git+https://github.com/pypa/pip.git # the PyO3 repo.
python -m pip install . --use-feature=in-tree-build python -m pip install . --use-feature=in-tree-build
pytest {posargs} pytest {posargs}

View File

@ -1,4 +1,3 @@
pip>=19.1
pytest>=3.5.0 pytest>=3.5.0
setuptools-rust>=0.10.2 setuptools-rust>=0.10.2
pytest-benchmark~=3.2 pytest-benchmark~=3.2

View File

@ -1,4 +1,3 @@
pip>=19.1
hypothesis>=3.55 hypothesis>=3.55
pytest>=3.5.0 pytest>=3.5.0
psutil>=5.6 psutil>=5.6

View File

@ -4,9 +4,11 @@ skipsdist = true
[testenv] [testenv]
description = Run the unit tests under {basepython} description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt deps =
pip>=21.1 # for in-tree-build
-rrequirements-dev.txt
commands = commands =
# Use pip master with in-tree-build feature (to be released in pip 21.1) # --use-feature=in-tree-build is necessary because this example is inside
python -m pip install --upgrade git+https://github.com/pypa/pip.git # the PyO3 repo.
python -m pip install . --use-feature=in-tree-build python -m pip install . --use-feature=in-tree-build
pytest {posargs} pytest {posargs}

View File

@ -6,7 +6,5 @@ skipsdist = true
description = Run the unit tests under {basepython} description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt deps = -rrequirements-dev.txt
commands = commands =
# Use pip master with in-tree-build feature (to be released in pip 21.1) python setup.py install
python -m pip install --upgrade git+https://github.com/pypa/pip.git
python -m pip install . --use-feature=in-tree-build
pytest {posargs} pytest {posargs}

View File

@ -1,4 +1,3 @@
pip>=19.1
pytest>=3.5.0 pytest>=3.5.0
setuptools-rust>=0.10.2 setuptools-rust>=0.10.2
pytest-benchmark>=3.1.1 pytest-benchmark>=3.1.1