Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop Python 3.7 support, add Python 3.12 support #234

Merged
merged 1 commit into from
Aug 5, 2024
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: 7 additions & 5 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"

- name: Build sdist
run: |
python3.10 -m pip install --upgrade wheel
python3.10 setup.py sdist
python3.12 -m pip install --upgrade setuptools wheel
python3.12 setup.py sdist
- uses: actions/upload-artifact@v3
with:
Expand All @@ -40,7 +40,7 @@ jobs:
matrix:
# Windows isn't working right now: https://github.com/caketop/python-starlark-go/issues/4
os: [ubuntu-latest, macos-latest]
cibw_python: ["cp37-*", "cp38-*", "cp39-*", "cp310-*", "cp311-*"]
cibw_python: ["cp38-*", "cp39-*", "cp310-*", "cp311-*", "cp312-*", "cp313-*"]
cibw_arch: ["i686", "x86_64", "aarch64", "arm64"]
include:
- cibw_arch: arm64
Expand All @@ -66,14 +66,16 @@ jobs:
fetch-depth: 0

- uses: actions/setup-go@v5
with:
go-version: 'stable'
if: runner.os != 'Linux'

- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/[email protected]

- name: Build wheels
uses: pypa/cibuildwheel@v2.13.1
uses: pypa/cibuildwheel@v2.20.0
env:
CIBW_BUILD_VERBOSITY: 1
CIBW_BUILD: ${{ matrix.cibw_python }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:

strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
experimental: [false]
include:
- python-version: '3.12-dev'
- python-version: '3.13-dev'
# sets continue-on-error automatically
experimental: true

Expand Down
4 changes: 2 additions & 2 deletions scripts/install-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex

GO_VERSION=1.20.2
GO_VERSION=1.22.5

if [ -e /etc/alpine-release ] && [ -z "$BASH_VERSION" ]; then
apk add bash curl git go
Expand All @@ -21,7 +21,7 @@ if [ -e /etc/debian_version ]; then
fi

install_go() {
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.0
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0

# shellcheck disable=SC1090
. ~/.asdf/asdf.sh
Expand Down
15 changes: 6 additions & 9 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ classifiers =
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13

[options]
packages = find:
package_dir =
= src
include_package_data = True
python_requires = >= 3.7
python_requires = >= 3.8
setup_requires =
setuptools_scm[toml] >= 3.4
setuptools-golang >= 2.7
Expand All @@ -43,28 +44,24 @@ starlark_go =
py.typed

[tox:tox]
envlist = py37, py38, py39, py310, py311, py312
envlist = py38, py39, py310, py311, py312, py313

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313

[testenv]
deps =
-r development.txt
pytest-memray
commands = pytest -v --memray {posargs}

[testenv:py37]
deps = -r development.txt
commands = pytest -v {posargs}

[testenv:py312]
[testenv:py313]
deps = -r development.txt
commands = pytest -v {posargs}

Expand Down
Loading