diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a571794f..693f86cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,14 +3,14 @@ name: Tests on: push: branches: - - long_lived/** - - main - - release/** + - long_lived/** + - main + - release/** tags: - - '**' + - "**" pull_request: branches: - - '**' + - "**" jobs: build: @@ -20,7 +20,7 @@ jobs: fail-fast: false matrix: os: [macos-latest, ubuntu-latest, windows-latest] - python-version: [ '3.9', '3.10', '3.11', '3.12'] + python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v5 with: diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index ceec2e82..dcda84c7 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -5,14 +5,14 @@ name: Publish Python distributions to PyPI on: push: branches: - - long_lived/** - - main - - release/** + - long_lived/** + - main + - release/** tags: - - '**' + - "**" pull_request: branches: - - '**' + - "**" permissions: contents: read @@ -24,35 +24,35 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v5 - with: - fetch-depth: 0 - - - run: | - git fetch origin +refs/tags/*:refs/tags/* - - - name: Set up Python 3.10 - uses: actions/setup-python@v6 - with: - 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') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: dist/ - skip-existing: true + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - run: | + git fetch origin +refs/tags/*:refs/tags/* + + - name: Set up Python 3.12 + uses: Chia-Network/actions/setup-python@main + with: + python-version: "3.12" + + - 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') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: dist/ + skip-existing: true diff --git a/pyproject.toml b/pyproject.toml index 5e59761b..54392f14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.5.0"] +requires = ["setuptools>=80", "wheel", "setuptools_scm[toml]>=8"] build-backend = "setuptools.build_meta" [tool.setuptools_scm] diff --git a/setup.py b/setup.py index ea5dae35..8742f9b7 100755 --- a/setup.py +++ b/setup.py @@ -37,7 +37,6 @@ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "License :: OSI Approved :: Apache Software License",