File tree 2 files changed +28
-3
lines changed 2 files changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,15 @@ default:
44
44
@echo
45
45
@exit 1
46
46
47
- .state/env/pyvenv.cfg : requirements/dev.txt requirements/docs.txt requirements/lint.txt requirements/ipython.txt
48
- # Create our Python 3.8 virtual environment
47
+ .state/env/01bootstrap : requirements/bootstrap.txt
48
+ # Create Python 3.8 virtual environment with `pip-compile` for updating
49
+ # dependecy hashes
49
50
rm -rf .state/env
50
51
python3.8 -m venv .state/env
52
+ .state/env/bin/python -m pip install -r requirements/bootstrap.txt
53
+ touch .state/env/01bootstrap
54
+
55
+ .state/env/02install : .state/env/01bootstrap requirements/dev.txt requirements/docs.txt requirements/lint.txt requirements/ipython.txt
51
56
52
57
# install/upgrade general requirements
53
58
.state/env/bin/python -m pip install --upgrade pip setuptools wheel
@@ -127,7 +132,7 @@ deps: .state/env/pyvenv.cfg
127
132
rm -r $(TMPDIR )
128
133
$(BINDIR ) /pip check
129
134
130
- requirements/% .txt : requirements/% .in .state/env/pyvenv.cfg
135
+ requirements/% .txt : requirements/% .in .state/env/01bootstrap
131
136
$(BINDIR ) /pip-compile --allow-unsafe --generate-hashes --output-file=$@ $<
132
137
133
138
fix-google-deps :
Original file line number Diff line number Diff line change
1
+ #
2
+ # Securely installing `pip-compile` for regenerating dependencies.
3
+ #
4
+ # This file is autogenerated by pip-compile
5
+ # To update, run:
6
+ #
7
+ # pip-compile --generate-hashes --output-file=requirements/boot.txt -
8
+ #
9
+ click==7.1.2 \
10
+ --hash=sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a \
11
+ --hash=sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc
12
+ # via pip-tools
13
+ pip-tools==5.5.0 \
14
+ --hash=sha256:10841c1e56c234d610d0466447685b9ea4ee4a2c274f858c0ef3c33d9bd0d985 \
15
+ --hash=sha256:cb0108391366b3ef336185097b3c2c0f3fa115b15098dafbda5e78aef70ea114
16
+ # via -r -
17
+
18
+ # WARNING: The following packages were not pinned, but pip requires them to be
19
+ # pinned when the requirements file includes hashes. Consider using the --allow-unsafe flag.
20
+ # pip
You can’t perform that action at this time.
0 commit comments