Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e19a8d1

Browse files
authoredSep 6, 2024··
Merge pull request #227 from dimagi/gh/py-312
[Recreated] Add support for Python 3.12
2 parents 381ad55 + 8336383 commit e19a8d1

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed
 

‎.github/workflows/tests.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
18+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
1919

2020
steps:
2121
- uses: actions/checkout@v2
@@ -26,6 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29+
python -m pip install "setuptools<72"
2930
python -m pip install -e .
3031
- name: Run tests
3132
run: |

‎setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
'Programming Language :: Python :: 3.9',
6060
'Programming Language :: Python :: 3.10',
6161
'Programming Language :: Python :: 3.11',
62+
'Programming Language :: Python :: 3.12',
6263
'License :: OSI Approved :: BSD License',
6364
),
6465
)

‎test/test_stringconversions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Meta(object):
9797
get_settings(Foo).type_config.properties[datetime.datetime],
9898
ExactDateTimeProperty
9999
)
100-
with self.assertRaisesRegexp(BadValueError,
100+
with self.assertRaisesRegex(BadValueError,
101101
'is not a datetime-formatted string'):
102102
Foo.wrap(self.EXAMPLES)
103103
examples = self.EXAMPLES.copy()

‎tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py37,py38,py39,py310,py311
2+
envlist = py37,py38,py39,py310,py311,py312
33
[testenv]
44
deps =
55
unittest2

0 commit comments

Comments
 (0)
Please sign in to comment.