Skip to content

Commit 9eddc9d

Browse files
committed
Update to version 7
1 parent 69e5d76 commit 9eddc9d

File tree

14 files changed

+361
-2822
lines changed

14 files changed

+361
-2822
lines changed

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test:
11+
name: Tests (${{ matrix.python-version }})
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
python-version: ["3.11", "3.12", "3.13"]
17+
18+
steps:
19+
- uses: actions/checkout@v6
20+
with:
21+
persist-credentials: false
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v6
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: Install project and dev dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
python -m pip install -e ".[dev]"
32+
33+
- name: Run tests
34+
run: python -m pytest -q
35+
36+
package:
37+
name: Build distribution
38+
runs-on: ubuntu-latest
39+
needs: test
40+
41+
steps:
42+
- uses: actions/checkout@v6
43+
with:
44+
persist-credentials: false
45+
46+
- name: Set up Python
47+
uses: actions/setup-python@v6
48+
with:
49+
python-version: "3.13"
50+
51+
- name: Build and validate distribution metadata
52+
run: |
53+
python -m pip install --upgrade pip
54+
python -m pip install build twine
55+
python -m build
56+
python -m twine check dist/*
57+
58+
- name: Store the distribution packages
59+
uses: actions/upload-artifact@v5
60+
with:
61+
name: python-package-distributions
62+
path: dist/

.github/workflows/publish.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
name: Build distribution
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v6
16+
with:
17+
persist-credentials: false
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v6
21+
with:
22+
python-version: "3.13"
23+
24+
- name: Install project and build tools
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install -e ".[dev]"
28+
29+
- name: Run tests
30+
run: python -m pytest -q
31+
32+
- name: Build a binary wheel and a source tarball
33+
run: python -m build
34+
35+
- name: Store the distribution packages
36+
uses: actions/upload-artifact@v5
37+
with:
38+
name: python-package-distributions
39+
path: dist/
40+
41+
publish-to-pypi:
42+
name: Publish Python distribution to PyPI
43+
if: startsWith(github.ref, 'refs/tags/v')
44+
needs:
45+
- build
46+
runs-on: ubuntu-latest
47+
environment:
48+
name: pypi
49+
url: https://pypi.org/p/arena-interface
50+
permissions:
51+
id-token: write
52+
53+
steps:
54+
- name: Download all the dists
55+
uses: actions/download-artifact@v6
56+
with:
57+
name: python-package-distributions
58+
path: dist/
59+
60+
- name: Publish distribution to PyPI
61+
uses: pypa/gh-action-pypi-publish@release/v1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,4 @@ flycheck_*.el
219219
# Bench outputs
220220
bench_results*.jsonl
221221
bench_matrix*.jsonl
222+
.DS_Store

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Changelog
2+
3+
## 7.0.0 - 2026-03-13
4+
5+
- moved package versioning to a single source of truth in
6+
`src/arena_interface/__about__.py`
7+
- modernized `pyproject.toml` for current PyPI metadata practices, including
8+
SPDX licensing metadata and explicit typed-package data
9+
- added an explicit `MANIFEST.in` so sdists include repository assets that are
10+
useful to downstream builders and maintainers
11+
- made the top-level package import resilient when `pyserial` is unavailable,
12+
while still requiring it for serial transport usage
13+
- added CI and PyPI Trusted Publishing GitHub Actions workflows
14+
- documented a reproducible release process for PyPI and conda-forge

MANIFEST.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include AUTHORS
2+
include CHANGELOG.md
3+
include LICENSE
4+
include README.md
5+
include RELEASING.md
6+
include codemeta.json
7+
recursive-include patterns *.pat
8+
recursive-include scripts *.py
9+
recursive-include tests *.py
10+
recursive-include tools *.py
11+
global-exclude __pycache__ *.py[cod] .DS_Store

0 commit comments

Comments
 (0)