Skip to content

Commit

Permalink
build for py 3.11/12/13; update pypi setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Dec 19, 2024
1 parent 7a5d93b commit f11e8a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ jobs:
- macos-latest

runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -32,7 +31,7 @@ jobs:
python3 setup.py sdist
ls -lrt wheelhouse/*
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: pygeoda-${{ matrix.os }}
path: wheelhouse/
Expand All @@ -48,8 +47,6 @@ jobs:
- name: Publish Source to Pypi
if: matrix.os == 'macos-latest' && startsWith(github.ref, 'refs/tags/v')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python3 -m twine upload dist/*.tar.gz
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheelhouse/
13 changes: 5 additions & 8 deletions .github/workflows/win-build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
- amd64

python_ver:
- 3.11
- 3.12
- 3.13
- 3.14

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup for Python 3.12
- name: Setup MSVC toolset for Python 3.11
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.msvc_arch }}
Expand Down Expand Up @@ -61,9 +61,6 @@ jobs:

- name: Publish to Pypi
if: startsWith(github.ref, 'refs/tags/v')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m pip install --upgrade twine
python -m twine upload wheelhouse/*.whl
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheelhouse/

0 comments on commit f11e8a7

Please sign in to comment.