Skip to content

ci: include source distributions in PyPI uploads. - #174

Merged
hzhangxyz merged 1 commit into
mainfrom
dev/update-source-for-python-package
Dec 25, 2025
Merged

ci: include source distributions in PyPI uploads.#174
hzhangxyz merged 1 commit into
mainfrom
dev/update-source-for-python-package

Conversation

@hzhangxyz

Copy link
Copy Markdown
Member

Description
This PR updates the GitHub Actions workflows to ensure that source distributions (sdist) are built and uploaded to PyPI alongside the wheels. This allows users to install the packages from source when a compatible wheel is not available for their platform.

Changes:

  • pytest.yml (apyds): - Added a new sdist job to build the source distribution using uv build --sdist. - Updated the upload job to wait for and download both wheels and the source distribution before publishing.
  • bnf-pytest.yml (apyds-bnf):
    • Updated the artifact upload step to include the entire dist/ directory (containing both .whl and .tar.gz files generated by uv build).
  • egg-pytest.yml (apyds-egg): - Updated the artifact upload step to include the entire dist/ directory.

Description
This PR updates the GitHub Actions workflows to ensure that source distributions (sdist) are built and uploaded to PyPI alongside the wheels. This allows users to install the packages from source when a compatible wheel is not available for their platform.

Changes:
 - `pytest.yml` (apyds):
     - Added a new sdist job to build the source distribution using uv build --sdist.
     - Updated the upload job to wait for and download both wheels and the source distribution before publishing.
 - `bnf-pytest.yml` (apyds-bnf):
     - Updated the artifact upload step to include the entire dist/ directory (containing both .whl and .tar.gz files generated by uv build).
 - `egg-pytest.yml` (apyds-egg):
     - Updated the artifact upload step to include the entire dist/ directory.
@hzhangxyz
hzhangxyz merged commit 909b88d into main Dec 25, 2025
89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant