Skip to content

Commit

Permalink
Pin test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
twm committed Jul 20, 2024
1 parent 470c60d commit 919b9ab
Show file tree
Hide file tree
Showing 6 changed files with 208 additions and 8 deletions.
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ dependencies = [
scripts = [
"click>=6.0",
]
mypy = [
"mypy==0.812",
]

[project.urls]
Homepage = "https://github.com/twisted/incremental"
Expand Down
2 changes: 2 additions & 0 deletions requirements_mypy.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mypy==0.812
twisted
39 changes: 39 additions & 0 deletions requirements_mypy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements_mypy.txt requirements_mypy.in
#
attrs==23.2.0
# via
# automat
# twisted
automat==22.10.0
# via twisted
constantly==23.10.4
# via twisted
hyperlink==21.0.0
# via twisted
idna==3.7
# via hyperlink
incremental==22.10.0
# via twisted
mypy==0.812
# via -r requirements_mypy.in
mypy-extensions==0.4.4
# via mypy
six==1.16.0
# via automat
twisted==24.3.0
# via -r requirements_mypy.in
typed-ast==1.4.3
# via mypy
typing-extensions==4.12.2
# via
# mypy
# twisted
zope-interface==6.4.post2
# via twisted

# The following packages are considered to be unsafe in a requirements file:
# setuptools
5 changes: 5 additions & 0 deletions requirements_tests.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build
coverage
coverage-p
twisted
hatch
153 changes: 153 additions & 0 deletions requirements_tests.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements_tests.txt requirements_tests.in
#
anyio==4.4.0
# via httpx
attrs==23.2.0
# via
# automat
# twisted
automat==22.10.0
# via twisted
backports-tarfile==1.2.0
# via jaraco-context
build==1.2.1
# via -r requirements_tests.in
certifi==2024.7.4
# via
# httpcore
# httpx
cffi==1.16.0
# via cryptography
click==8.1.7
# via
# hatch
# userpath
constantly==23.10.4
# via twisted
coverage==7.5.4
# via
# -r requirements_tests.in
# coverage-p
coverage-p==24.7.0
# via -r requirements_tests.in
cryptography==42.0.8
# via secretstorage
distlib==0.3.8
# via virtualenv
exceptiongroup==1.2.1
# via anyio
filelock==3.15.4
# via virtualenv
h11==0.14.0
# via httpcore
hatch==1.12.0
# via -r requirements_tests.in
hatchling==1.25.0
# via hatch
httpcore==1.0.5
# via httpx
httpx==0.27.0
# via hatch
hyperlink==21.0.0
# via
# hatch
# twisted
idna==3.7
# via
# anyio
# httpx
# hyperlink
importlib-metadata==8.0.0
# via keyring
incremental==22.10.0
# via twisted
jaraco-classes==3.4.0
# via keyring
jaraco-context==5.3.0
# via keyring
jaraco-functools==4.0.1
# via keyring
jeepney==0.8.0
# via
# keyring
# secretstorage
keyring==25.2.1
# via hatch
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
more-itertools==10.3.0
# via
# jaraco-classes
# jaraco-functools
packaging==24.1
# via
# build
# hatch
# hatchling
pathspec==0.12.1
# via hatchling
pexpect==4.9.0
# via hatch
platformdirs==4.2.2
# via
# hatch
# virtualenv
pluggy==1.5.0
# via hatchling
ptyprocess==0.7.0
# via pexpect
pycparser==2.22
# via cffi
pygments==2.18.0
# via rich
pyproject-hooks==1.1.0
# via build
rich==13.7.1
# via hatch
secretstorage==3.3.3
# via keyring
shellingham==1.5.4
# via hatch
six==1.16.0
# via automat
sniffio==1.3.1
# via
# anyio
# httpx
tomli==2.0.1
# via
# build
# hatchling
tomli-w==1.0.0
# via hatch
tomlkit==0.13.0
# via hatch
trove-classifiers==2024.7.2
# via hatchling
twisted==24.3.0
# via -r requirements_tests.in
typing-extensions==4.12.2
# via
# anyio
# twisted
userpath==1.9.2
# via hatch
uv==0.2.24
# via hatch
virtualenv==20.26.3
# via hatch
zipp==3.19.2
# via importlib-metadata
zope-interface==6.4.post2
# via twisted
zstandard==0.22.0
# via hatch

# The following packages are considered to be unsafe in a requirements file:
# setuptools
14 changes: 9 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ envlist =
[testenv]
wheel = true
wheel_build_env = build
skip_install =
pindeps: true
deps =
tests: build
tests: coverage
tests: coverage-p
tests,mypy: twisted
tests: -rrequirements_tests.txt
mypy: -rrequirements_mypy.txt
apidocs: pydoctor
lint: pre-commit
pindeps: pip-tools
extras =
mypy: mypy,scripts
mypy: scripts
tests: scripts

setenv =
Expand Down Expand Up @@ -52,6 +53,9 @@ commands =

mypy: mypy src

pindeps: pip-compile -o requirements_tests.txt requirements_tests.in {posargs}
pindeps: pip-compile -o requirements_mypy.txt requirements_mypy.in {posargs}


[testenv:build]
# empty environment to build universal wheel once per tox invocation
Expand Down

0 comments on commit 919b9ab

Please sign in to comment.