Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/dist-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
cache-dependency-path: 'bindings/python/pyproject.toml'
allow-prereleases: true

- name: Validate pyproject.toml
run: |
pip install 'validate-pyproject[all]'
validate-pyproject pyproject.toml

- name: Build and test dist files
run: |
export LIBMONGOCRYPT_VERSION=$(cat ./scripts/libmongocrypt-version.txt)
Expand All @@ -76,6 +81,14 @@ jobs:
run: |
find . -mindepth 2 -type f -exec mv {} . \;
find . -type d -empty -delete
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.11"
- name: Check dist metadata
working-directory: .
run: |
pip install twine
twine check --strict *.whl *.tar.gz
- uses: actions/upload-artifact@v5
with:
name: all-dist-${{ github.run_id }}
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ jobs:
with:
name: all-dist-${{ github.run_id }}
path: dist/
- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
attestations: ${{ env.DRY_RUN }}
- name: Publish package distributions to PyPI
if: startsWith(env.DRY_RUN, 'false')
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
Expand Down
Loading