Skip to content

Commit 8168918

Browse files
authored
Add Python 3.12 support (#407)
Closes #396
2 parents 7ad338e + 97db8c0 commit 8168918

File tree

7 files changed

+306
-258
lines changed

7 files changed

+306
-258
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ on:
99
workflow_dispatch:
1010

1111
env:
12-
LATEST_PY_VERSION: '3.11'
12+
LATEST_PY_VERSION: '3.12'
1313
COVERAGE_ARGS: '--cov --cov-report=term --cov-report=xml'
1414

1515
jobs:
1616
test:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: ['3.10', '3.11']
20+
python-version: ['3.10', '3.11', '3.12']
2121

2222
steps:
2323
- uses: actions/checkout@v4

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
default: 'true'
2020

2121
env:
22-
LATEST_PY_VERSION: '3.11'
22+
LATEST_PY_VERSION: '3.12'
2323

2424
# Required for creating a new release
2525
permissions:

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
DEFAULT_COVERAGE_FORMATS = ['html', 'term']
2323

2424

25-
@session(python=['3.10', '3.11'])
25+
@session(python=['3.10', '3.11', '3.12'])
2626
def test(session):
2727
"""Run tests for a specific python version"""
2828
test_paths = session.posargs or ['test']

packaging/build_win.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Build pyinstaller package prior to creating Windows installer
22

33
# Create virtualenv (if needed)
4-
# python3.11 -m venv $env:USERPROFILE\.virtualenvs\naturtag
4+
# python3.12 -m venv $env:USERPROFILE\.virtualenvs\naturtag
55

66
# Install poetry (if needed)
77
# Invoke-WebRequest -Uri https://install.python-poetry.org -OutFile install-poetry.py

packaging/naturtag.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from pathlib import Path
33
from PyInstaller.compat import is_darwin, is_linux, is_win
44
from PyInstaller.utils.hooks import copy_metadata
55

6-
BUILD_PY_VERSION = '3.11'
6+
BUILD_PY_VERSION = '3.12'
77
PROJECT_NAME = 'naturtag'
88
PROJECT_DIR = Path('.').absolute()
99
ASSETS_DIR = PROJECT_DIR / 'assets'

poetry.lock

Lines changed: 298 additions & 250 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exclude = [
3535
]
3636

3737
[tool.poetry.dependencies]
38-
python = '>=3.10,<3.12'
38+
python = '>=3.10,<3.13'
3939
attrs = '>=21.2'
4040
click = '>=8.0'
4141
click-help-colors = '>=0.9'
@@ -44,7 +44,7 @@ pyexiv2 = '>=2.10'
4444
pyinaturalist = '>=0.19'
4545
pyinaturalist-convert = '>=0.6.5'
4646
pyside6 = '^6.7.2'
47-
pyqtdarktheme = '^2.1.0'
47+
pyqtdarktheme-fork = '^2.3.2'
4848
pyyaml = '>=6.0'
4949
qtawesome = '^1.1.1'
5050
sqlalchemy = '^2.0.23'

0 commit comments

Comments
 (0)