Skip to content

Commit c54db9c

Browse files
committed
Integrate pip-tools-generated constraint files
This patch adds constraint files with the dependency tree generated by `pip-compile` under Python 3.9. They are now integrated into the action container image. Refs: * #101 * #107
1 parent 480ec4e commit c54db9c

File tree

5 files changed

+91
-2
lines changed

5 files changed

+91
-2
lines changed

Diff for: Dockerfile

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ LABEL "homepage" "https://github.com/pypa/gh-action-pypi-publish"
77
ENV PYTHONDONTWRITEBYTECODE 1
88
ENV PYTHONUNBUFFERED 1
99

10+
COPY requirements .
1011
RUN \
11-
pip install --upgrade --no-cache-dir pip-with-requires-python && \
12-
pip install --upgrade --no-cache-dir --prefer-binary twine
12+
PIP_CONSTRAINT=requirements/runtime-prerequisites.txt \
13+
pip install --upgrade --no-cache-dir \
14+
-r requirements/runtime-prerequisites.in && \
15+
PIP_CONSTRAINT=requirements/runtime.txt \
16+
pip install --upgrade --no-cache-dir --prefer-binary \
17+
-r requirements/runtime.in
1318

1419
WORKDIR /app
1520
COPY LICENSE.md .

Diff for: requirements/runtime-prerequisites.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pip-with-requires-python

Diff for: requirements/runtime-prerequisites.txt

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# This file is autogenerated by pip-compile with python 3.9
3+
# To update, run:
4+
#
5+
# pip-compile --allow-unsafe --output-file=requirements/runtime-prerequisites.txt --resolver=backtracking --strip-extras requirements/runtime-prerequisites.in
6+
#
7+
pip-with-requires-python==1.0.1
8+
# via -r requirements/runtime-prerequisites.in
9+
10+
# The following packages are considered to be unsafe in a requirements file:
11+
pip==22.3.1
12+
# via pip-with-requires-python

Diff for: requirements/runtime.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
twine

Diff for: requirements/runtime.txt

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
#
2+
# This file is autogenerated by pip-compile with python 3.9
3+
# To update, run:
4+
#
5+
# pip-compile --allow-unsafe --output-file=requirements/runtime.txt --resolver=backtracking --strip-extras requirements/runtime.in
6+
#
7+
bleach==5.0.1
8+
# via readme-renderer
9+
certifi==2022.9.24
10+
# via requests
11+
cffi==1.15.1
12+
# via cryptography
13+
charset-normalizer==2.1.1
14+
# via requests
15+
commonmark==0.9.1
16+
# via rich
17+
cryptography==38.0.4
18+
# via secretstorage
19+
docutils==0.19
20+
# via readme-renderer
21+
idna==3.4
22+
# via requests
23+
importlib-metadata==5.1.0
24+
# via
25+
# keyring
26+
# twine
27+
jaraco-classes==3.2.3
28+
# via keyring
29+
jeepney==0.8.0
30+
# via
31+
# keyring
32+
# secretstorage
33+
keyring==23.11.0
34+
# via twine
35+
more-itertools==9.0.0
36+
# via jaraco-classes
37+
pkginfo==1.9.2
38+
# via twine
39+
pycparser==2.21
40+
# via cffi
41+
pygments==2.13.0
42+
# via
43+
# readme-renderer
44+
# rich
45+
readme-renderer==37.3
46+
# via twine
47+
requests==2.28.1
48+
# via
49+
# requests-toolbelt
50+
# twine
51+
requests-toolbelt==0.10.1
52+
# via twine
53+
rfc3986==2.0.0
54+
# via twine
55+
rich==12.6.0
56+
# via twine
57+
secretstorage==3.3.3
58+
# via keyring
59+
six==1.16.0
60+
# via bleach
61+
twine==4.0.1
62+
# via -r requirements/runtime.in
63+
urllib3==1.26.13
64+
# via
65+
# requests
66+
# twine
67+
webencodings==0.5.1
68+
# via bleach
69+
zipp==3.11.0
70+
# via importlib-metadata

0 commit comments

Comments
 (0)