Skip to content

Commit d6969dd

Browse files
authored
Support Python 3.15. (#12)
1 parent aa61100 commit d6969dd

5 files changed

Lines changed: 21 additions & 16 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
tox-env: check
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3737
- name: Setup Python ${{ matrix.python-version }}
38-
uses: actions/setup-python@v5
38+
uses: actions/setup-python@v6
3939
with:
4040
python-version: "${{ matrix.python-version }}"
4141
- name: Check ${{ matrix.check-name }}
@@ -60,10 +60,10 @@ jobs:
6060
- python-version: [3, 8, 18]
6161
os: ubuntu-24.04
6262
- python-version: [2, 7, 18]
63-
os: macos-13
63+
os: macos-15
6464
steps:
6565
- name: Checkout
66-
uses: actions/checkout@v4
66+
uses: actions/checkout@v5
6767
- name: Install Python Build Deps
6868
if: matrix.os == 'ubuntu-24.04'
6969
run: |
@@ -125,20 +125,22 @@ jobs:
125125
- os: ubuntu-24.04
126126
python-version: [3, 13]
127127
- os: ubuntu-24.04
128-
python-version: [3, 14, "0-alpha.1"]
129-
- os: macos-13
130-
python-version: [3, 13]
131-
- os: macos-13
132-
python-version: [3, 14, "0-alpha.1"]
128+
python-version: [3, 14]
129+
- os: ubuntu-24.04
130+
python-version: [3, 15, "0-alpha.1"]
131+
- os: macos-15
132+
python-version: [3, 14]
133+
- os: macos-15
134+
python-version: [3, 15, "0-alpha.1"]
133135
steps:
134136
- name: Checkout
135-
uses: actions/checkout@v4
137+
uses: actions/checkout@v5
136138
- name: Setup Python ${{ join(matrix.python-version, '.') }}
137-
uses: actions/setup-python@v5
139+
uses: actions/setup-python@v6
138140
with:
139141
python-version: "${{ join(matrix.python-version, '.') }}"
140142
- name: Setup Tox Python
141-
uses: actions/setup-python@v5
143+
uses: actions/setup-python@v6
142144
with:
143145
python-version: 3.11
144146
- name: Run Unit Tests

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ jobs:
4747
id-token: write
4848
steps:
4949
- name: Checkout ${{ needs.determine-tag.outputs.release-tag }}
50-
uses: actions/checkout@v4
50+
uses: actions/checkout@v5
5151
with:
5252
ref: ${{ needs.determine-tag.outputs.release-tag }}
5353
- name: Setup Python 3.9
54-
uses: actions/setup-python@v5
54+
uses: actions/setup-python@v6
5555
with:
5656
python-version: 3.9
5757
- name: Package ${{ needs.determine-tag.outputs.release-tag }}

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ classifiers =
3030
Programming Language :: Python :: 3.12
3131
Programming Language :: Python :: 3.13
3232
Programming Language :: Python :: 3.14
33+
Programming Language :: Python :: 3.15
3334
Topic :: Utilities
3435

3536
[options]
3637
packages =
3738
conscript
3839

39-
python_requires = >=2.7,<3.15,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
40+
python_requires = >=2.7,<3.16,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*
4041

4142
install_requires =
4243
setuptools; python_version <= '3.5'

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def test_conscript(foo_bar_conscript):
122122
programs=", ".join(
123123
(
124124
repr(program)
125-
if sys.version_info[:2] < (3, 14)
125+
if sys.version_info[:2] < (3, 12)
126126
# N.B.: Python 3.14 dropped wrapping the choices in ''.
127127
else program
128128
)

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ envlist =
2222
py312
2323
py313
2424
py314
25+
py315
2526

2627
[testenv]
2728
# We need newer Pip to operate under Python 3.14.
@@ -93,6 +94,7 @@ commands =
9394
mypy --python-version 3.12 conscript
9495
mypy --python-version 3.13 conscript
9596
mypy --python-version 3.14 conscript
97+
mypy --python-version 3.15 conscript
9698

9799
[testenv:package]
98100
skip_install = true

0 commit comments

Comments
 (0)