diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2022-08-15 08:19:47 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2022-08-15 10:28:12 -0400 |
commit | 1dba0305a3d7248ad64e4a21d4ac56c92277883c (patch) | |
tree | 24e790aa6bc32db1b83ed21b0cedddac59837bb2 | |
parent | b076ffe711ec8efdce05027684da06a4e63b7bb3 (diff) | |
download | python-coveragepy-git-1dba0305a3d7248ad64e4a21d4ac56c92277883c.tar.gz |
build: pin windows-only transitive dependencies
-rw-r--r-- | requirements/kit.in | 6 | ||||
-rw-r--r-- | requirements/light-threads.in | 5 | ||||
-rw-r--r-- | requirements/pins.pip | 5 | ||||
-rw-r--r-- | requirements/pytest.in | 15 | ||||
-rw-r--r-- | requirements/tox.in | 6 |
5 files changed, 35 insertions, 2 deletions
diff --git a/requirements/kit.in b/requirements/kit.in index a64ca7e9..5ce1b880 100644 --- a/requirements/kit.in +++ b/requirements/kit.in @@ -11,3 +11,9 @@ build cibuildwheel setuptools wheel + +# Build has a windows-only dependency on colorama: +# https://github.com/pypa/build/blob/main/setup.cfg#L32 +# colorama;os_name == "nt" +# We copy it here so it can get pinned. +colorama diff --git a/requirements/light-threads.in b/requirements/light-threads.in index 7c80ba3d..6085b6b0 100644 --- a/requirements/light-threads.in +++ b/requirements/light-threads.in @@ -3,8 +3,11 @@ -c pins.pip -# The light-threads packages we test against +# The light-threads packages we test against. eventlet gevent greenlet + +# gevent needs cffi, but only on Windows, not sure why. +cffi>=1.12.2 diff --git a/requirements/pins.pip b/requirements/pins.pip index ae2b3e56..ae7062cf 100644 --- a/requirements/pins.pip +++ b/requirements/pins.pip @@ -9,3 +9,8 @@ # https://github.com/jazzband/pip-tools/issues/1617 pip<22.1 + +# requests gets different versions in dev.pip and doc/requirements.pip, not +# sure why, and they then ask for different versions of certifi, and we can't +# install, so pin certifi. +certifi==2022.5.18.1 diff --git a/requirements/pytest.in b/requirements/pytest.in index 5ff874f1..7e5c6603 100644 --- a/requirements/pytest.in +++ b/requirements/pytest.in @@ -12,4 +12,17 @@ pytest pytest-xdist # Use a fork of PyContracts that supports Python 3.9 #PyContracts==1.8.12 -git+https://github.com/slorg1/contracts@collections_and_validator +# git+https://github.com/slorg1/contracts@collections_and_validator +https://github.com/slorg1/contracts/archive/c5a6da27d4dc9985f68e574d20d86000880919c3.zip + +# Pytest has a windows-only dependency on colorama: +# https://github.com/pytest-dev/pytest/blob/main/setup.cfg#L49 +# colorama;sys_platform=="win32" +# We copy it here so it can get pinned. +colorama + +# Pytest has a windows-only dependency on atomicwrites: +# https://github.com/pytest-dev/pytest/blob/7.1.2/setup.cfg#L50 +# atomicwrites>=1.0;sys_platform=="win32" +# though it's been removed on main. +atomicwrites>=1.0 diff --git a/requirements/tox.in b/requirements/tox.in index 66ad2dc0..50b4711c 100644 --- a/requirements/tox.in +++ b/requirements/tox.in @@ -8,3 +8,9 @@ tox tox-gh-actions + +# Tox has a windows-only dependency on colorama: +# https://github.com/tox-dev/tox/blob/master/setup.cfg#L44 +# colorama>=0.4.1 ;platform_system=="Windows" +# We copy it here so it can get pinned. +colorama>=0.4.1 |