Skip to content

Commit

Permalink
Remove 3.8 and update to build binary and sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe committed Oct 23, 2024
1 parent b51cd3b commit c43dd9e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
python-version: [ '3.9', '3.10', '3.11', '3.12' ]
name: Python ${{ matrix.os }} ${{ matrix.python-version }} sample
steps:
- uses: actions/checkout@v4
Expand Down
33 changes: 16 additions & 17 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,24 @@ jobs:
- run: |
git fetch origin +refs/tags/*:refs/tags/*
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Install pep517
run: >-
python -m
pip install
pep517
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
pep517.build
--binary
--out-dir dist/
.
python-version: '3.10'

- name: Build a binary wheel and a source tarball
run: |
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install build
python -m build --outdir dist .
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: ./dist

- name: Publish distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags')
Expand Down

0 comments on commit c43dd9e

Please sign in to comment.