Skip to content

Commit

Permalink
Merge pull request #227 from dimagi/gh/py-312
Browse files Browse the repository at this point in the history
[Recreated] Add support for Python 3.12
  • Loading branch information
gherceg authored Sep 6, 2024
2 parents 381ad55 + 8336383 commit e19a8d1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v2
Expand All @@ -26,6 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install "setuptools<72"
python -m pip install -e .
- name: Run tests
run: |
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'License :: OSI Approved :: BSD License',
),
)
2 changes: 1 addition & 1 deletion test/test_stringconversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Meta(object):
get_settings(Foo).type_config.properties[datetime.datetime],
ExactDateTimeProperty
)
with self.assertRaisesRegexp(BadValueError,
with self.assertRaisesRegex(BadValueError,
'is not a datetime-formatted string'):
Foo.wrap(self.EXAMPLES)
examples = self.EXAMPLES.copy()
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,py38,py39,py310,py311
envlist = py37,py38,py39,py310,py311,py312
[testenv]
deps =
unittest2
Expand Down

0 comments on commit e19a8d1

Please sign in to comment.