Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Tests
on:
push:
branches:
- long_lived/**
- main
- release/**
- long_lived/**
- main
- release/**
tags:
- '**'
- "**"
pull_request:
branches:
- '**'
- "**"

jobs:
build:
Expand All @@ -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:
Expand Down
74 changes: 37 additions & 37 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down