Skip to content

Commit 625e8b3

Browse files
Add trusted publishing workflow and expand test matrix
- Add wheels.yml for automated PyPI publishing using trusted publishing - Expand test matrix to Python 3.9-3.14 and PyPy 3.11 - Explicitly include py.typed in package-data - Bump version to 4.1.3 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2d230d4 commit 625e8b3

3 files changed

Lines changed: 63 additions & 3 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest]
18-
python-version: [ "3.9", "3.13", "pypy-3.9", "pypy-3.11"] # "3.14.0-beta.4"
18+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy-3.11']
1919

2020
steps:
2121
- uses: actions/checkout@v4

.github/workflows/wheels.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: wheels
2+
3+
on:
4+
push:
5+
tags:
6+
- '**'
7+
8+
jobs:
9+
# Build wheel and source distribution
10+
build:
11+
name: Build wheel and sdist
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Install build tools
22+
run: |
23+
python -m pip install --upgrade pip build
24+
25+
- name: Build wheel and sdist
26+
run: python -m build
27+
28+
- name: List distributions
29+
run: ls -lh dist/
30+
31+
- uses: actions/upload-artifact@v4
32+
with:
33+
name: dist
34+
path: dist/
35+
36+
# Publish to PyPI (only for version tags)
37+
publish:
38+
name: Publish to PyPI
39+
needs: build
40+
runs-on: ubuntu-latest
41+
# Only publish on version tags (e.g., 4.1.2), skip test tags
42+
if: startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'test')
43+
environment:
44+
name: pypi
45+
url: https://pypi.org/project/reynir-correct/
46+
permissions:
47+
id-token: write
48+
49+
steps:
50+
- name: Download artifacts
51+
uses: actions/download-artifact@v4
52+
with:
53+
name: dist
54+
path: dist/
55+
56+
- name: List distributions
57+
run: ls -lh dist/
58+
59+
- name: Publish to PyPI
60+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "reynir-correct"
3-
version = "4.1.2"
3+
version = "4.1.3"
44
description = "Spelling and grammar correction for Icelandic"
55
authors = [{ name = "Miðeind ehf.", email = "mideind@mideind.is" }]
66
readme = { file = "README.md", content-type = "text/markdown" }
@@ -50,7 +50,7 @@ correct = "reynir_correct.main:main"
5050
where = ["src"]
5151

5252
[tool.setuptools.package-data]
53-
"reynir_correct" = ["config/*"]
53+
"reynir_correct" = ["py.typed", "config/*"]
5454

5555
[tool.pytest.ini_options]
5656
filterwarnings = [

0 commit comments

Comments
 (0)