diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1fe3570..f407e4a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 @@ -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: | diff --git a/setup.py b/setup.py index 929c322..5e5f71f 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,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', ), ) diff --git a/test/test_stringconversions.py b/test/test_stringconversions.py index 5a74cb1..d4a9bc9 100644 --- a/test/test_stringconversions.py +++ b/test/test_stringconversions.py @@ -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()