Skip to content

Commit 136878b

Browse files
committed
Upgrade python patch versions and drop 3.8
1 parent eda943c commit 136878b

File tree

8 files changed

+30
-30
lines changed

8 files changed

+30
-30
lines changed

.cookiecutter/cookiecutter.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"package_name": "h_assets",
1212
"slug": "h-assets",
1313
"short_description": "Pyramid views for serving collections of compiled static assets (eg. bundles of JavaScript and CSS).",
14-
"python_versions": "3.12.4, 3.11.9, 3.10.14, 3.9.19, 3.8.19",
14+
"python_versions": "3.13.0, 3.12.7, 3.11.10, 3.10.15, 3.9.20",
1515
"github_owner": "hypothesis",
1616
"copyright_holder": "Hypothesis",
1717
"visibility": "public",

.github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Python
2323
uses: actions/setup-python@v4
2424
with:
25-
python-version: '3.12'
25+
python-version: '3.13'
2626
- run: python -m pip install 'tox<4'
2727
- run: tox -e checkformatting
2828
Lint:
@@ -32,7 +32,7 @@ jobs:
3232
- name: Install Python
3333
uses: actions/setup-python@v4
3434
with:
35-
python-version: '3.12'
35+
python-version: '3.13'
3636
- run: python -m pip install 'tox<4'
3737
- run: tox -e lint
3838
Typecheck:
@@ -42,14 +42,14 @@ jobs:
4242
- name: Install Python
4343
uses: actions/setup-python@v4
4444
with:
45-
python-version: '3.12'
45+
python-version: '3.13'
4646
- run: python -m pip install 'tox<4'
4747
- run: tox -e typecheck
4848
Tests:
4949
runs-on: ubuntu-latest
5050
strategy:
5151
matrix:
52-
python-version: ['3.12', '3.11', '3.10', '3.9', '3.8']
52+
python-version: ['3.13', '3.12', '3.11', '3.10', '3.9']
5353
name: Unit tests with Python ${{ matrix.python-version }}
5454
steps:
5555
- uses: actions/checkout@v3
@@ -75,7 +75,7 @@ jobs:
7575
- name: Install Python
7676
uses: actions/setup-python@v4
7777
with:
78-
python-version: '3.12'
78+
python-version: '3.13'
7979
- name: Download coverage files
8080
uses: actions/download-artifact@v4
8181
with:
@@ -87,7 +87,7 @@ jobs:
8787
runs-on: ubuntu-latest
8888
strategy:
8989
matrix:
90-
python-version: ['3.12', '3.11', '3.10', '3.9', '3.8']
90+
python-version: ['3.13', '3.12', '3.11', '3.10', '3.9']
9191
name: Functional tests with Python ${{ matrix.python-version }}
9292
steps:
9393
- uses: actions/checkout@v3

.python-version

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
3.12.4
2-
3.11.9
3-
3.10.14
4-
3.9.19
5-
3.8.19
1+
3.13.0
2+
3.12.7
3+
3.11.10
4+
3.10.15
5+
3.9.20

Makefile

+14-14
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,15 @@ checkformatting: python
3434
@pyenv exec tox -qe checkformatting
3535

3636
.PHONY: test
37-
$(call help,make test,"run the unit tests in Python 3.12")
37+
$(call help,make test,"run the unit tests in Python 3.13")
3838
test: python
3939
@pyenv exec tox -qe tests
4040

41+
.PHONY: test-py312
42+
$(call help,make test-py312,"run the unit tests in Python 3.12")
43+
test-py312: python
44+
@pyenv exec tox -qe py312-tests
45+
4146
.PHONY: test-py311
4247
$(call help,make test-py311,"run the unit tests in Python 3.11")
4348
test-py311: python
@@ -53,21 +58,21 @@ $(call help,make test-py39,"run the unit tests in Python 3.9")
5358
test-py39: python
5459
@pyenv exec tox -qe py39-tests
5560

56-
.PHONY: test-py38
57-
$(call help,make test-py38,"run the unit tests in Python 3.8")
58-
test-py38: python
59-
@pyenv exec tox -qe py38-tests
60-
6161
.PHONY: coverage
6262
$(call help,make coverage,"run the tests and print the coverage report")
6363
coverage: python
64-
@pyenv exec tox --parallel -qe 'tests,py{311,310,39,38}-tests,coverage'
64+
@pyenv exec tox --parallel -qe 'tests,py{312,311,310,39}-tests,coverage'
6565

6666
.PHONY: functests
67-
$(call help,make functests,"run the functional tests in Python 3.12")
67+
$(call help,make functests,"run the functional tests in Python 3.13")
6868
functests: python
6969
@pyenv exec tox -qe functests
7070

71+
.PHONY: functests-py312
72+
$(call help,make functests-py312,"run the functional tests in Python 3.12")
73+
functests-py312: python
74+
@pyenv exec tox -qe py312-functests
75+
7176
.PHONY: functests-py311
7277
$(call help,make functests-py311,"run the functional tests in Python 3.11")
7378
functests-py311: python
@@ -83,16 +88,11 @@ $(call help,make functests-py39,"run the functional tests in Python 3.9")
8388
functests-py39: python
8489
@pyenv exec tox -qe py39-functests
8590

86-
.PHONY: functests-py38
87-
$(call help,make functests-py38,"run the functional tests in Python 3.8")
88-
functests-py38: python
89-
@pyenv exec tox -qe py38-functests
90-
9191
.PHONY: sure
9292
$(call help,make sure,"make sure that the formatting$(comma) linting and tests all pass")
9393
sure: python
9494
sure:
95-
@pyenv exec tox --parallel -qe 'checkformatting,lint,typecheck,tests,py{311,310,39,38}-tests,coverage,functests,py{311,310,39,38}-functests'
95+
@pyenv exec tox --parallel -qe 'checkformatting,lint,typecheck,tests,py{312,311,310,39}-tests,coverage,functests,py{312,311,310,39}-functests'
9696

9797
.PHONY: template
9898
$(call help,make template,"update from the latest cookiecutter template")

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<a href="https://github.com/hypothesis/h-assets/actions/workflows/ci.yml?query=branch%3Amain"><img src="https://img.shields.io/github/actions/workflow/status/hypothesis/h-assets/ci.yml?branch=main"></a>
22
<a href="https://pypi.org/project/h-assets"><img src="https://img.shields.io/pypi/v/h-assets"></a>
3-
<a><img src="https://img.shields.io/badge/python-3.12 | 3.11 | 3.10 | 3.9 | 3.8-success"></a>
3+
<a><img src="https://img.shields.io/badge/python-3.13 | 3.12 | 3.11 | 3.10 | 3.9-success"></a>
44
<a href="https://github.com/hypothesis/h-assets/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-BSD--2--Clause-success"></a>
55
<a href="https://github.com/hypothesis/cookiecutters/tree/main/pypackage"><img src="https://img.shields.io/badge/cookiecutter-pypackage-success"></a>
66
<a href="https://black.readthedocs.io/en/stable/"><img src="https://img.shields.io/badge/code%20style-black-000000"></a>

bin/make_python

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -n "${CI+x}" ]; then exit; fi
88

99
pyenv_root=$(pyenv root)
1010

11-
for python_version in 3.12.4 3.11.9 3.10.14 3.9.19 3.8.19; do
11+
for python_version in 3.13.0 3.12.7 3.11.10 3.10.15 3.9.20; do
1212
bin_dir=$pyenv_root/versions/$python_version/bin
1313
if [ ! -f "$bin_dir"/tox ]; then
1414
pyenv install --skip-existing "$python_version"

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ classifiers = [
1212
"License :: OSI Approved :: BSD License",
1313
"Intended Audience :: Developers",
1414
]
15-
requires-python = ">=3.8"
15+
requires-python = ">=3.9"
1616
dependencies = [
1717
"pyramid",
1818
]

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ deps =
4545
lint,template: cookiecutter
4646
typecheck: mypy
4747
depends =
48-
coverage: tests,py{311,310,39,38}-tests
48+
coverage: tests,py{312,311,310,39}-tests
4949
commands =
5050
dev: {posargs:ipython --classic --no-banner --no-confirm-exit}
5151
format: black src tests bin

0 commit comments

Comments
 (0)