Skip to content

Commit 119a3ce

Browse files
committed
build: split requirements into dev and extras
1 parent 0448527 commit 119a3ce

File tree

5 files changed

+28
-32
lines changed

5 files changed

+28
-32
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ publish:
2828
# upgrade specific deps:
2929
# make -W requirements-dev.{in,txt} PIP_COMPILE_ARGS="-P foo"
3030
ifneq ($(PIP_COMPILE_ARGS),)
31-
requirements-dev.txt: setup.py requirements-dev.in
31+
requirements-dev.txt: setup.py requirements-dev.in requirements-extras.in
32+
pip-compile -q $(PIP_COMPILE_ARGS) --output-file $@ $^
33+
34+
requirements-min.txt: setup.py requirements-dev.in
3235
pip-compile -q $(PIP_COMPILE_ARGS) --output-file $@ $^
3336
endif

requirements-dev.in

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
attrs>=19.2.0
22
pip-tools>=5.5.0
3-
pylint
43
pytest>=4.6
54
pytest-cov
65
pytest-trio>=0.5.0
7-
sphinx
8-
sphinxcontrib-trio
9-
sphinx_rtd_theme
106
trio>=0.14.0
117
trustme
12-
twine

requirements-dev.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.7
33
# by the following command:
44
#
5-
# pip-compile --output-file=requirements-dev.txt requirements-dev.in setup.py
5+
# pip-compile --output-file=requirements-dev.txt requirements-dev.in requirements-extras.in setup.py
66
#
77
alabaster==0.7.13
88
# via sphinx
@@ -32,9 +32,8 @@ charset-normalizer==3.1.0
3232
# via requests
3333
click==8.1.3
3434
# via pip-tools
35-
coverage[toml]==6.5.0
36-
# via
37-
# pytest-cov
35+
coverage[toml]==7.2.1
36+
# via pytest-cov
3837
cryptography==39.0.2
3938
# via trustme
4039
dill==0.3.6
@@ -115,7 +114,7 @@ pygments==2.14.0
115114
# rich
116115
# sphinx
117116
pylint==2.17.0
118-
# via -r requirements-dev.in
117+
# via -r requirements-extras.in
119118
pyproject-hooks==1.0.0
120119
# via build
121120
pytest==7.2.2
@@ -152,11 +151,11 @@ sortedcontainers==2.4.0
152151
# via trio
153152
sphinx==5.3.0
154153
# via
155-
# -r requirements-dev.in
154+
# -r requirements-extras.in
156155
# sphinx-rtd-theme
157156
# sphinxcontrib-trio
158157
sphinx-rtd-theme==1.2.0
159-
# via -r requirements-dev.in
158+
# via -r requirements-extras.in
160159
sphinxcontrib-applehelp==1.0.2
161160
# via sphinx
162161
sphinxcontrib-devhelp==1.0.2
@@ -172,7 +171,7 @@ sphinxcontrib-qthelp==1.0.3
172171
sphinxcontrib-serializinghtml==1.1.5
173172
# via sphinx
174173
sphinxcontrib-trio==1.1.2
175-
# via -r requirements-dev.in
174+
# via -r requirements-extras.in
176175
tomli==2.0.1
177176
# via
178177
# build
@@ -190,7 +189,7 @@ trio==0.22.0
190189
trustme==0.9.0
191190
# via -r requirements-dev.in
192191
twine==4.0.2
193-
# via -r requirements-dev.in
192+
# via -r requirements-extras.in
194193
typed-ast==1.5.4
195194
# via astroid
196195
typing-extensions==4.5.0

requirements-extras.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pylint
2+
sphinx
3+
sphinxcontrib-trio
4+
sphinx_rtd_theme
5+
twine

requirements-min.txt

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.7
33
# by the following command:
44
#
5-
# pip-compile --output-file=requirements-dev.txt requirements-dev.in setup.py
5+
# pip-compile --output-file=requirements-min.txt requirements-dev.in setup.py
66
#
77
async-generator==1.10
88
# via
@@ -16,17 +16,12 @@ attrs==22.2.0
1616
# trio
1717
build==0.10.0
1818
# via pip-tools
19-
certifi==2022.12.7
20-
# via requests
2119
cffi==1.15.1
2220
# via cryptography
23-
charset-normalizer==3.1.0
24-
# via requests
2521
click==8.1.3
2622
# via pip-tools
27-
coverage[toml]==6.5.0
28-
# via
29-
# pytest-cov
23+
coverage[toml]==7.2.1
24+
# via pytest-cov
3025
cryptography==39.0.2
3126
# via trustme
3227
exceptiongroup==1.1.0
@@ -37,11 +32,14 @@ h11==0.14.0
3732
# via wsproto
3833
idna==3.4
3934
# via
40-
# requests
4135
# trio
4236
# trustme
43-
importlib-resources==5.12.0
44-
# via keyring
37+
importlib-metadata==6.0.0
38+
# via
39+
# build
40+
# click
41+
# pluggy
42+
# pytest
4543
iniconfig==2.0.0
4644
# via pytest
4745
outcome==1.2.0
@@ -69,8 +67,6 @@ pytest-cov==4.0.0
6967
# via -r requirements-dev.in
7068
pytest-trio==0.8.0
7169
# via -r requirements-dev.in
72-
pytz==2022.7.1
73-
# via babel
7470
sniffio==1.3.0
7571
# via trio
7672
sortedcontainers==2.4.0
@@ -91,15 +87,13 @@ trustme==0.9.0
9187
typing-extensions==4.5.0
9288
# via
9389
# h11
94-
# platformdirs
90+
# importlib-metadata
9591
wheel==0.38.4
9692
# via pip-tools
9793
wsproto==1.2.0
9894
# via trio-websocket (setup.py)
9995
zipp==3.15.0
100-
# via
101-
# importlib-metadata
102-
# importlib-resources
96+
# via importlib-metadata
10397

10498
# The following packages are considered to be unsafe in a requirements file:
10599
# pip

0 commit comments

Comments
 (0)