File tree 8 files changed +14
-13
lines changed 8 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 34
34
command : |
35
35
python3.8 -m venv venv/
36
36
venv/bin/pip install pip-tools --constraint requirements.in
37
- venv/bin/pip-sync
37
+ venv/bin/pip-sync --pip-args=--no-deps
38
38
- run :
39
39
name : Yamllint Test
40
40
command : PATH="venv/bin:$PATH" yamllint -c .yamllint.yaml .
@@ -176,7 +176,8 @@ jobs:
176
176
apt update
177
177
apt install -y maven default-jdk-headless
178
178
mvn dependency:copy-dependencies
179
- venv/bin/pip-sync requirements.txt java-requirements.txt
179
+ venv/bin/pip-sync --pip-args=--no-deps requirements.txt \
180
+ java-requirements.txt
180
181
- run :
181
182
name : PyTest Integration Test
182
183
# Google's client libraries will check for
@@ -497,8 +498,8 @@ jobs:
497
498
bigquery-etl-main
498
499
499
500
cd bigquery-etl-main
500
- pip install -r requirements.txt
501
- pip install -r java-requirements.txt
501
+ pip install --no-deps - r requirements.txt
502
+ pip install --no-deps - r java-requirements.txt
502
503
mvn dependency:copy-dependencies
503
504
./script/bqetl generate all \
504
505
--target-project moz-fx-data-shared-prod
Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ WORKDIR /app
13
13
FROM base AS python-deps
14
14
RUN apt-get update -qqy && apt-get install -qqy gcc libc-dev
15
15
COPY java-requirements.txt ./
16
- RUN pip install -r java-requirements.txt
16
+ RUN pip install --no-deps - r java-requirements.txt
17
17
COPY requirements.txt ./
18
- RUN pip install -r requirements.txt
18
+ # use --no-deps to work around https://github.com/pypa/pip/issues/9644
19
+ RUN pip install --no-deps -r requirements.txt
19
20
20
21
# download java dependencies in separate stage because it requires maven
21
22
FROM base AS java-deps
Original file line number Diff line number Diff line change @@ -49,7 +49,8 @@ venv/bin/pre-commit install
49
49
4 . Download java dependencies
50
50
``` bash
51
51
mvn dependency:copy-dependencies
52
- venv/bin/pip-sync requirements.txt java-requirements.txt
52
+ # specify `<(echo mozilla-bigquery-etl)` to retain bqetl from `./bqetl bootstrap`
53
+ venv/bin/pip-sync --pip-args=--no-deps requirements.txt java-requirements.txt <( echo mozilla-bigquery-etl)
53
54
```
54
55
55
56
Finally, if you are using Visual Studio Code, you may also wish to use our recommended defaults:
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ if [ "$CMD" == "bootstrap" ]; then
29
29
# see e.g. https://github.com/scipy/scipy/issues/13102#issuecomment-788160041
30
30
export SYSTEM_VERSION_COMPAT=1
31
31
32
- venv/bin/pip install -r requirements.txt
32
+ venv/bin/pip install --no-deps - r requirements.txt
33
33
venv/bin/pip install -e .
34
34
echo " bqetl configured! It should now be ready for use."
35
35
exit 0
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ python3 -m venv venv/
227
227
source venv/bin/activate
228
228
229
229
# If not installed:
230
- pip install pip-tools
230
+ pip install pip-tools --constraint requirements.in
231
231
232
232
# Add the dependency to requirements.in e.g. Jinja2.
233
233
echo Jinja2==2.11.1 >> requirements.in
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ python3.8 -m venv venv/
10
10
./venv/bin/pip install pip-tools -c requirements.in
11
11
12
12
# install python dependencies with pip-sync (provided by pip-tools)
13
- ./venv/bin/pip-sync
13
+ ./venv/bin/pip-sync --pip-args=--no-deps requirements.txt java-requirements.txt
14
14
15
15
# install java dependencies with maven
16
16
mvn dependency:copy-dependencies
Original file line number Diff line number Diff line change @@ -5,10 +5,8 @@ click==8.0.4
5
5
gcsfs==2022.2.0
6
6
gcloud==0.18.3
7
7
gitpython==3.1.27
8
- google-api-core==1.31.5 # transitive dep that needs dependabot updates
9
8
google-cloud-bigquery==2.34.0
10
9
google-cloud-storage==2.1.0
11
- googleapis-common-protos==1.54.0 # transitive dep that needs dependabot updates
12
10
importlib-resources>=1.4.0 # jsonschema dep for python<3.9
13
11
Jinja2==3.0.3
14
12
jsonschema==4.4.0
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ python3 -m venv venv
17
17
source venv/bin/activate
18
18
19
19
# install dependencies
20
- pip install -r requirements.txt
20
+ pip install --no-deps - r requirements.txt
21
21
# install bqetl command-line tool
22
22
pip install -e .
23
23
```
You can’t perform that action at this time.
0 commit comments