Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit 37830f2

Browse files
try having a working release by just having the requirements installed (#107)
* try havign a working release by just having the requirements installed (no setup develop) Also including all the requirements from `setup.py` in `requirements.in` * Add logs adn debugging to the build process Deactivating windows because I can't run `python setup.py build` on that.
1 parent 6cdc133 commit 37830f2

File tree

3 files changed

+42
-15
lines changed

3 files changed

+42
-15
lines changed

.github/workflows/release_flow.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,27 @@ jobs:
4747
- os: macos-latest
4848
TARGET: macos
4949
CMD_BUILD: >
50-
pyinstaller -F codecov_cli/main.py &&
50+
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|^./||'") &&
51+
pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:staticcodecov_languages --add-data languages:languages --paths build --hidden-import staticcodecov_languages -F codecov_cli/main.py &&
5152
cd dist/ &&
5253
zip -r9 codecovcli_macos_${{github.ref_name}}.zip main
5354
OUT_FILE_NAME: codecovcli_macos_${{github.ref_name}}.zip
5455
ASSET_MIME: application/zip
5556
- os: ubuntu-latest
5657
TARGET: ubuntu
5758
CMD_BUILD: >
58-
pyinstaller -F codecov_cli/main.py &&
59+
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|^./||'") &&
60+
pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:staticcodecov_languages --add-data languages:languages --paths build --hidden-import staticcodecov_languages -F codecov_cli/main.py &&
5961
cp ./dist/main ./dist/codecovcli_linux_${{github.ref_name}}
6062
OUT_FILE_NAME: codecovcli_linux_${{github.ref_name}}
6163
ASSET_MIME: application/octet-stream
62-
- os: windows-latest
63-
TARGET: windows
64-
CMD_BUILD: >
65-
pyinstaller -F codecov_cli/main.py &&
66-
cp ./dist/main.exe ./dist/codecovcli_windows_${{github.ref_name}}.exe
67-
OUT_FILE_NAME: codecovcli_windows_${{github.ref_name}}.exe
68-
ASSET_MIME: application/vnd.microsoft.portable-executable
64+
# - os: windows-latest
65+
# TARGET: windows
66+
# CMD_BUILD: >
67+
# pyinstaller --debug=imports -F codecov_cli/main.py &&
68+
# cp ./dist/main.exe ./dist/codecovcli_windows_${{github.ref_name}}.exe
69+
# OUT_FILE_NAME: codecovcli_windows_${{github.ref_name}}.exe
70+
# ASSET_MIME: application/vnd.microsoft.portable-executable
6971
steps:
7072
- uses: actions/checkout@v3
7173
with:
@@ -76,8 +78,8 @@ jobs:
7678
python-version: "3.10"
7779
- name: Install dependencies
7880
run: |
79-
python setup.py develop
8081
pip install -r requirements.txt
82+
python setup.py build
8183
- name: Install pyinstaller
8284
run: pip install pyinstaller
8385
- name: Build with pyinstaller for ${{matrix.TARGET}}

requirements.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ pytest
33
pytest-cov
44
pytest-mock
55
pyyaml
6-
responses
6+
responses
7+
httpx
8+
tree_sitter

requirements.txt

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.9
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.10
3+
# by the following command:
44
#
55
# pip-compile requirements.in
66
#
7+
anyio==3.6.2
8+
# via httpcore
79
attrs==21.4.0
810
# via pytest
911
certifi==2022.6.15
10-
# via requests
12+
# via
13+
# httpcore
14+
# httpx
15+
# requests
1116
charset-normalizer==2.1.0
1217
# via requests
1318
click==8.1.3
1419
# via -r requirements.in
1520
coverage[toml]==6.4.1
1621
# via pytest-cov
22+
h11==0.14.0
23+
# via httpcore
24+
httpcore==0.16.3
25+
# via httpx
26+
httpx==0.23.3
27+
# via -r requirements.in
1728
idna==3.3
18-
# via requests
29+
# via
30+
# anyio
31+
# requests
32+
# rfc3986
1933
iniconfig==1.1.1
2034
# via pytest
2135
packaging==21.3
@@ -41,10 +55,19 @@ requests==2.28.1
4155
# via responses
4256
responses==0.21.0
4357
# via -r requirements.in
58+
rfc3986[idna2008]==1.5.0
59+
# via httpx
60+
sniffio==1.3.0
61+
# via
62+
# anyio
63+
# httpcore
64+
# httpx
4465
tomli==2.0.1
4566
# via
4667
# coverage
4768
# pytest
69+
tree-sitter==0.20.1
70+
# via -r requirements.in
4871
urllib3==1.26.10
4972
# via
5073
# requests

0 commit comments

Comments
 (0)