From 8eea02ec6501e528acd4a016c384c718666e9d65 Mon Sep 17 00:00:00 2001 From: Earle Lowe Date: Wed, 23 Oct 2024 10:54:05 -0700 Subject: [PATCH 1/2] Remove python 3.8 and update workflow to actually make source tarball --- .github/workflows/main.yml | 2 +- .github/workflows/publish-to-pypi.yml | 27 ++++++++++----------------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 28a6c90..f57e7fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,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'] steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 9f1d067..ccd6f73 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -31,25 +31,18 @@ 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 From 676544869f8ea9d1232c1f5e2e134cb36e1defaf Mon Sep 17 00:00:00 2001 From: Earle Lowe Date: Wed, 23 Oct 2024 10:56:40 -0700 Subject: [PATCH 2/2] fix up version --- .github/workflows/publish-to-pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index ccd6f73..65961ca 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -34,7 +34,7 @@ jobs: - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: 3.10 + python-version: "3.10" - name: Build a binary wheel and a source tarball run: |