Skip to content

Commit d72397f

Browse files
fix: make requirements not top-level
1 parent dd4c468 commit d72397f

9 files changed

+11
-11
lines changed

.github/workflows/build_assets.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- os: ubuntu-20.04
3535
TARGET: ubuntu
3636
CMD_REQS: >
37-
pip install -r codecov_cli/requirements.txt && pip install .
37+
pip install -r requirements.txt && pip install .
3838
CMD_BUILD: >
3939
STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'") &&
4040
pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli/main.py &&
@@ -44,7 +44,7 @@ jobs:
4444
- os: windows-latest
4545
TARGET: windows
4646
CMD_REQS: >
47-
pip install -r codecov_cli/requirements.txt && pip install .
47+
pip install -r requirements.txt && pip install .
4848
CMD_BUILD: >
4949
pyinstaller --add-binary "build\lib.win-amd64-cpython-311\staticcodecov_languages.cp311-win_amd64.pyd;." --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli\main.py &&
5050
Copy-Item -Path ".\dist\main.exe" -Destination ".\dist\codecovcli_windows.exe"

.github/workflows/build_for_pypi.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: |
2828
python -m build --sdist
2929
env:
30-
PIP_CONSTRAINT: codecov_cli/requirements.txt
30+
PIP_CONSTRAINT: requirements.txt
3131
- name: Store the distribution packages
3232
uses: actions/upload-artifact@v4
3333
with:

.github/workflows/ci-job.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install -r codecov_cli/requirements.txt
27+
pip install -r requirements.txt
2828
python -m pip install -e .
2929
pip install -r tests/requirements.txt
3030
- name: Test with pytest

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
38-
pip install -r codecov_cli/requirements.txt
38+
pip install -r requirements.txt
3939
python -m pip install -e .
4040
- name: Run command_dump
4141
run: |
@@ -92,7 +92,7 @@ jobs:
9292
- name: Install dependencies
9393
run: |
9494
python -m pip install --upgrade pip
95-
pip install -r codecov_cli/requirements.txt
95+
pip install -r requirements.txt
9696
python -m pip install -e .
9797
pip install -r tests/requirements.txt
9898
- name: Test with pytest
@@ -127,7 +127,7 @@ jobs:
127127
- name: Install dependencies for Dogfooding
128128
run: |
129129
python -m pip install --upgrade pip
130-
pip install -r codecov_cli/requirements.txt
130+
pip install -r requirements.txt
131131
python -m pip install -e .
132132
pip install -r tests/requirements.txt
133133
- name: Download all test results

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ git submodule update --init
299299
```
300300
Then, install dependencies with
301301
```
302-
pip install -r codecov_cli/requirements.txt
302+
pip install -r requirements.txt
303303
python -m pip install --editable .
304304
```
305305

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ test-command = "codecovcli --help"
4848
pure-python = "false"
4949

5050
[tool.cibuildwheel.environment]
51-
PIP_CONSTRAINT = "codecov_cli/requirements.txt"
51+
PIP_CONSTRAINT = "requirements.txt"
File renamed without changes.

scripts/build_alpine_arm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
apk add musl-dev build-base
3-
pip install -r codecov_cli/requirements.txt
3+
pip install -r requirements.txt
44
pip install .
55
python setup.py build
66
STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'")

scripts/build_linux_arm.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
apt install build-essential
3-
pip install -r codecov_cli/requirements.txt
3+
pip install -r requirements.txt
44
pip install .
55
python setup.py build
66
STATICCODECOV_LIB_PATH=$(find build/ -maxdepth 1 -type d -name 'lib.*' -print -quit | xargs -I {} sh -c "find {} -type f -name 'staticcodecov*' -print -quit | sed 's|^./||'")

0 commit comments

Comments
 (0)