diff --git a/.github/workflows/continuous-integration-pip.yml b/.github/workflows/continuous-integration-pip.yml index 3370888..71bae2c 100644 --- a/.github/workflows/continuous-integration-pip.yml +++ b/.github/workflows/continuous-integration-pip.yml @@ -44,7 +44,7 @@ jobs: if: ${{ needs.skip_duplicate.outputs.should_skip == 'false' }} strategy: matrix: - python-version: [ 3.9, "3.10", "3.11", "pypy3.9" ] + python-version: [ 3.9, "3.10", "3.11", "3.12", "pypy3.9" , "pypy3.10" ] runs-on: ubuntu-latest steps: - name: Checkout diff --git a/.gitignore b/.gitignore index 50af712..b15111f 100644 --- a/.gitignore +++ b/.gitignore @@ -105,7 +105,7 @@ celerybeat.pid .env .venv env/ -venv/ +venv*/ ENV/ env.bak/ venv.bak/ diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index ca597cf..632c91f 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -1,6 +1,10 @@ ChangeLog --------- +**v3.3.1** (2023-10-09) + +- Adapted tests to Python 3.12 + **v3.3.0** (2023-07-16) - Extras: Algorithm for computing an exact solution for traveling salesman problems diff --git a/requirements_ci.txt b/requirements_ci.txt index 8aa5f7c..9f2f4df 100644 --- a/requirements_ci.txt +++ b/requirements_ci.txt @@ -5,4 +5,4 @@ flake8 mypy # -- additional packaged used only for test with them -- mpmath -intbitset ; implementation_name == "cpython" # missing on PyPy 3.11 +intbitset ; python_version < "3.12" and implementation_name == "cpython" # missing on PyPy and (so far) CPython 3.12 diff --git a/requirements_dev.txt b/requirements_dev.txt index 39c8bd7..64ac93c 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -13,4 +13,4 @@ flake8 mypy # -- additional packaged used only for test with them -- mpmath -intbitset ; implementation_name == "cpython" # missing on PyPy 3.11 +intbitset ; python_version < "3.12" and implementation_name == "cpython" # missing on PyPy 3.11 and (so far) CPython 3.12 \ No newline at end of file diff --git a/setup.py b/setup.py index ed594ca..f18c62a 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ setup( name="nographs", - version="3.3.0", + version="3.3.1", description=("Graph analysis – the lazy (evaluation) way: Analysis on the fly, " + "for graphs, that are computed and/or adapted on the fly."), long_description=long_description, @@ -26,6 +26,7 @@ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Intended Audience :: Developers", diff --git a/tests/test_unit_typed.py b/tests/test_unit_typed.py index 1a4bcab..55d73b6 100644 --- a/tests/test_unit_typed.py +++ b/tests/test_unit_typed.py @@ -56,12 +56,12 @@ def next_edges( self.assertEqual(cm.exception.args, ("Error: Distance stays constant",)) getcontext().prec = 75 # precision (number of places) - self.assertEquals( + self.assertEqual( test_with_small_weights(Decimal(0), Decimal("0.5"), Decimal(1)), 65 ) mp.prec = 64 - self.assertEquals(test_with_small_weights(mpf(0), mpf("0.5"), mpf(1)), 65) + self.assertEqual(test_with_small_weights(mpf(0), mpf("0.5"), mpf(1)), 65) def test_traversal_typing_docs_example(self) -> None: def next_edges(i: int, _: Any) -> Iterator[tuple[int, int]]: @@ -89,9 +89,9 @@ def next_edges(i: int, _: Any) -> Iterator[tuple[int, int]]: reveal_type(v) # reveals: int reveal_type(d) # reveals: Union[int, float] reveal_type(p) # reveals: tuple[int, ...] - self.assertEquals(v, 5) - self.assertEquals(d, 24) - self.assertEquals(p, (0, 1, 2, 3, 4, 10, 16, 17, 11, 5)) + self.assertEqual(v, 5) + self.assertEqual(d, 24) + self.assertEqual(p, (0, 1, 2, 3, 4, 10, 16, 17, 11, 5)) def test_tsp_typing_docs_example(self) -> None: """The MyPy run will detect if the typing goes wrong here.