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

Commit dd7c416

Browse files
fix: push good images to pypi (#642)
* fix: test new workflow * fix: small edits * fix: ls * fix: update MANIFEST.in * fix: add tests to build-dist * fix: small issue with len(None) * fix: push up the list call * fix: update deps * fix: update pytest command * fix: underscore * fix: use tests dir * fix: ls * fix: use dot * fix: use more path * fix: ls -al * fix: use literal {package} * fix: add scripts to tests * fix: remove dupe * fix: use project * fix: run codecovcli * fix: empty upload * fix: just help * fix: try it again * fix: skip 3.13 * fix: add list_relevant_files stub * fix: move requirements file * fix: update req location for sdist * fix: make requirements not top-level * fix: add requirements.txt to MANIFEST * Update codecov_cli/helpers/versioning_systems.py * Update codecov_cli/services/upload/network_finder.py * fix: remove false
1 parent b1a69ee commit dd7c416

File tree

8 files changed

+23
-15
lines changed

8 files changed

+23
-15
lines changed

.github/workflows/build_for_pypi.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
---
2-
name: Build and Optionally Publish to PyPi
2+
name: Build for PyPi
33

44
on:
5-
pull_request:
6-
branches: main
75
workflow_call:
86
inputs:
97
publish:
108
type: boolean
119
default: false
12-
description: "Publish to PyPi"
10+
description: "Build for PyPi"
1311

1412
jobs:
13+
1514
build_src_for_pypi:
1615
runs-on: ubuntu-latest
1716
steps:
@@ -64,4 +63,3 @@ jobs:
6463
with:
6564
name: cibw-wheels-${{ matrix.os }}
6665
path: ./wheelhouse/*.whl
67-

.github/workflows/release_flow.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
find . -empty -type d -delete
5252
ls -alrt */*
5353
- name: Publish package to PyPi
54-
if: false
5554
uses: pypa/gh-action-pypi-publish@release/v1
5655
with:
5756
verbose: true

MANIFEST.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
include languages/treesitterjavascript/src/tree_sitter/parser.h
22
include languages/treesitterpython/src/tree_sitter/parser.h
33
include requirements.txt
4+
5+
recursive-include codecov_cli *
6+
recursive-include tests *
7+
recursive-include samples *

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ The following tokens are suitable for uploading:
9898
* 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.
9999
* 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/<scm>/<org>/org-upload-token`).
100100

101-
# Usage
102-
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.
101+
# Usage
102+
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.
103103

104-
> [!IMPORTANT]
104+
> [!IMPORTANT]
105105
> For up-to-date command usage, please check the `codecovcli_commands` [file](https://github.com/codecov/codecov-cli/blob/main/codecovcli_commands)
106106
107107
```

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ env = [
4141
packages = ["codecov_cli"]
4242

4343
[tool.cibuildwheel]
44-
skip = "pp*"
44+
skip = ["pp*", "cp313-*"]
45+
test-command = "codecovcli --help"
4546

4647
[tool.cibuildwheel.config-settings]
4748
pure-python = "false"

scripts/build_alpine_arm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ 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|^./||'")
77
pip install pyinstaller
88
pyinstaller --add-binary ${STATICCODECOV_LIB_PATH}:. --copy-metadata codecov-cli --hidden-import staticcodecov_languages -F codecov_cli/main.py
9-
cp ./dist/main ./dist/codecovcli_$1
9+
cp ./dist/main ./dist/codecovcli_$1

tests/requirements.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
packaging>=24.2 # to not conflict with setuptools-scm
2+
pyyaml>=6.0.2
13
pre-commit
24
pytest
35
pytest-asyncio

tests/requirements.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ iniconfig==2.0.0
1818
# via pytest
1919
nodeenv==1.8.0
2020
# via pre-commit
21-
packaging==23.2
22-
# via pytest
21+
packaging==24.2
22+
# via
23+
# -r requirements.in
24+
# pytest
2325
platformdirs==3.11.0
2426
# via virtualenv
2527
pluggy==1.3.0
@@ -41,8 +43,10 @@ pytest-env==1.1.0
4143
# via -r requirements.in
4244
pytest-mock==3.11.1
4345
# via -r requirements.in
44-
pyyaml==6.0.1
45-
# via pre-commit
46+
pyyaml==6.0.2
47+
# via
48+
# -r requirements.in
49+
# pre-commit
4650
virtualenv==20.26.6
4751
# via pre-commit
4852

0 commit comments

Comments
 (0)