diff --git a/.github/workflows/build_for_pypi.yml b/.github/workflows/build_for_pypi.yml index 45167a0a2..72a4456ae 100644 --- a/.github/workflows/build_for_pypi.yml +++ b/.github/workflows/build_for_pypi.yml @@ -1,17 +1,16 @@ --- -name: Build and Optionally Publish to PyPi +name: Build for PyPi on: - pull_request: - branches: main workflow_call: inputs: publish: type: boolean default: false - description: "Publish to PyPi" + description: "Build for PyPi" jobs: + build_src_for_pypi: runs-on: ubuntu-latest steps: @@ -64,4 +63,3 @@ jobs: with: name: cibw-wheels-${{ matrix.os }} path: ./wheelhouse/*.whl - diff --git a/.github/workflows/release_flow.yml b/.github/workflows/release_flow.yml index 75fa2a288..c0e43bdbb 100644 --- a/.github/workflows/release_flow.yml +++ b/.github/workflows/release_flow.yml @@ -51,7 +51,6 @@ jobs: find . -empty -type d -delete ls -alrt */* - name: Publish package to PyPi - if: false uses: pypa/gh-action-pypi-publish@release/v1 with: verbose: true diff --git a/MANIFEST.in b/MANIFEST.in index be346cbe9..e0bbc1dc8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,7 @@ include languages/treesitterjavascript/src/tree_sitter/parser.h include languages/treesitterpython/src/tree_sitter/parser.h include requirements.txt + +recursive-include codecov_cli * +recursive-include tests * +recursive-include samples * diff --git a/README.md b/README.md index 3f94fe2e6..b459aa8e7 100644 --- a/README.md +++ b/README.md @@ -98,10 +98,10 @@ The following tokens are suitable for uploading: * The [Repository Upload Token](https://docs.codecov.com/docs/codecov-uploader#upload-token): Found on the settings page of your repository, also viewable on the `/new` page when setting up a repository on Codecov for the first time. * The [Global Upload Token](https://docs.codecov.com/docs/codecov-uploader#organization-upload-token): Found on your organization settings page (e.g., `https://app.codecov.io/account///org-upload-token`). -# Usage -If the installation is successful, running `codecovcli --help` will output the available commands along with the different general options that can be used with them. +# Usage +If the installation is successful, running `codecovcli --help` will output the available commands along with the different general options that can be used with them. -> [!IMPORTANT] +> [!IMPORTANT] > For up-to-date command usage, please check the `codecovcli_commands` [file](https://github.com/codecov/codecov-cli/blob/main/codecovcli_commands) ``` diff --git a/pyproject.toml b/pyproject.toml index fdd7db668..15d4d6a42 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,8 @@ env = [ packages = ["codecov_cli"] [tool.cibuildwheel] -skip = "pp*" +skip = ["pp*", "cp313-*"] +test-command = "codecovcli --help" [tool.cibuildwheel.config-settings] pure-python = "false" diff --git a/scripts/build_alpine_arm.sh b/scripts/build_alpine_arm.sh index 1c220bac9..688c3ab09 100755 --- a/scripts/build_alpine_arm.sh +++ b/scripts/build_alpine_arm.sh @@ -6,4 +6,4 @@ python setup.py build 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|^./||'") pip install pyinstaller pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli/main.py -cp ./dist/main ./dist/codecovcli_$1 \ No newline at end of file +cp ./dist/main ./dist/codecovcli_$1 diff --git a/tests/requirements.in b/tests/requirements.in index f8bc663ac..79ede29cd 100644 --- a/tests/requirements.in +++ b/tests/requirements.in @@ -1,3 +1,5 @@ +packaging>=24.2 # to not conflict with setuptools-scm +pyyaml>=6.0.2 pre-commit pytest pytest-asyncio diff --git a/tests/requirements.txt b/tests/requirements.txt index 87478a950..9407c032f 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -18,8 +18,10 @@ iniconfig==2.0.0 # via pytest nodeenv==1.8.0 # via pre-commit -packaging==23.2 - # via pytest +packaging==24.2 + # via + # -r requirements.in + # pytest platformdirs==3.11.0 # via virtualenv pluggy==1.3.0 @@ -41,8 +43,10 @@ pytest-env==1.1.0 # via -r requirements.in pytest-mock==3.11.1 # via -r requirements.in -pyyaml==6.0.1 - # via pre-commit +pyyaml==6.0.2 + # via + # -r requirements.in + # pre-commit virtualenv==20.26.6 # via pre-commit