Skip to content

Commit

Permalink
fix: push good images to pypi (#642)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
thomasrockhu-codecov authored Feb 20, 2025
1 parent b1a69ee commit dd7c416
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 15 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build_for_pypi.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -64,4 +63,3 @@ jobs:
with:
name: cibw-wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl

1 change: 0 additions & 1 deletion .github/workflows/release_flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -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 *
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<scm>/<org>/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)
```
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_alpine_arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
cp ./dist/main ./dist/codecovcli_$1
2 changes: 2 additions & 0 deletions tests/requirements.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
packaging>=24.2 # to not conflict with setuptools-scm
pyyaml>=6.0.2
pre-commit
pytest
pytest-asyncio
Expand Down
12 changes: 8 additions & 4 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit dd7c416

Please sign in to comment.