Skip to content

Commit

Permalink
modifies build to use flit
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaiton committed Nov 28, 2023
1 parent 71dd860 commit b4bd303
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build macos and windows wheels
name: build package wheel

on:
push:
Expand Down Expand Up @@ -29,13 +29,11 @@ jobs:
with:
python-version: "3.x" # Use the latest version of Python 3

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Install Flit
run: python -m pip install flit

- name: Build Wheel
run: python setup.py bdist_wheel
- name: Build Wheel with Flit
run: flit build

- name: Upload to GitHub Artifacts
uses: actions/upload-artifact@v2
Expand All @@ -45,8 +43,7 @@ jobs:

- name: Publish to PyPI
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: flit publish --repository pypi
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD
FLIT_USERNAME: ${{ secrets.PYPI_USERNAME }}
FLIT_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit b4bd303

Please sign in to comment.