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
45 changes: 6 additions & 39 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

env:
PACKAGE_NAME: rs_chardet
PYTHON_VERSION: "3.9" # to build abi3 wheels
PYTHON_VERSION: "3.10" # to build abi3 wheels

jobs:
macos:
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
target: [x64]
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
Expand Down Expand Up @@ -106,8 +106,8 @@ jobs:
args: --release --out dist -i python${{ env.PYTHON_VERSION }}
maturin-version: "v0.13.0"
before-script-linux: |
echo $(which python3.9)
python3.9 --version
echo $(which python3.10)
python3.10 --version
- name: Install built wheel
if: (matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64') || (matrix.os == 'macos-15' && matrix.target == 'aarch64')
run: |
Expand Down Expand Up @@ -138,45 +138,13 @@ jobs:
args: --release --out dist -i python${{ env.PYTHON_VERSION }}
maturin-version: "v0.13.0"
before-script-linux: |
echo $(which python3.9)
python3.9 --version
echo $(which python3.10)
python3.10 --version
- name: Upload wheels
uses: actions/upload-artifact@v5
with:
name: rschardet-linux-cross-${{ matrix.target }}
path: dist
pypy:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-15]
target: [x86_64, aarch64]
python-version:
- "3.9"
exclude:
- os: macos-15
target: x86_64
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: pypy${{ matrix.python-version }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
maturin-version: "v0.13.0"
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -i pypy${{ matrix.python-version }}
- name: Install built wheel
if: (matrix.os == 'ubuntu-latest' && matrix.target == 'x86_64') || (matrix.os == 'macos-15' && matrix.target == 'aarch64')
run: |
pip install dist/${{ env.PACKAGE_NAME }}-*.whl --force-reinstall
- name: Upload wheels
uses: actions/upload-artifact@v5
with:
name: rschardet-pypi-${{ matrix.os }}-${{ matrix.target }}
path: dist

sdist:
runs-on: ubuntu-latest
Expand All @@ -203,7 +171,6 @@ jobs:
- windows
- linux
- linux-cross
- pypy
- sdist
if: startsWith(github.ref, 'refs/tags/v')
steps:
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "rs-chardet"
requires-python = ">=3.8"
requires-python = ">=3.10"
repository = "https://github.com/emattiza/rs_chardet"
authors = [
{ name = "Evan Mattiza" }
Expand All @@ -20,6 +20,11 @@ classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]

[project.urls]
Expand Down
Loading