Skip to content

Commit

Permalink
tgcrypto: Release to pypi
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <[email protected]>
  • Loading branch information
wulan17 committed Oct 8, 2024
1 parent 42f9ed4 commit 59ad49c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
python3 -m cibuildwheel .
- run:
name: upload
name: Release to pypi
command: |
python3 -m twine upload wheelhouse/*.whl
Expand Down
34 changes: 9 additions & 25 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,27 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [macos-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v5

- name: Install cibuildwheel
run: python -m pip install cibuildwheel
run: pip install cibuildwheel twine

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
run: cibuildwheel --output-dir wheelhouse
env:
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_TEST_REQUIRES: tox
CIBW_TEST_COMMAND: cd {project} && tox
CIBW_TEST_SKIP: "*-win*"
CIBW_BUILD_VERBOSITY: 1

- name: Store wheels
uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build_source:
name: Build source distribution
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v5

- name: Build source distribution
run: python setup.py sdist

- name: Store source distribution
uses: actions/upload-artifact@v2
with:
path: ./dist/*.tar.gz
- name: Release to pypi
run: twine upload wheelhouse/*.whl
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 59ad49c

Please sign in to comment.