diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 38b8f09..bda30b7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -40,6 +40,7 @@ jobs: matrix: python: - "3.11" + - "3.12" steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/periodic-ci.yaml b/.github/workflows/periodic-ci.yaml index bdf64f8..4392ab2 100644 --- a/.github/workflows/periodic-ci.yaml +++ b/.github/workflows/periodic-ci.yaml @@ -18,6 +18,7 @@ jobs: matrix: python: - "3.11" + - "3.12" steps: - uses: actions/checkout@v4 diff --git a/changelog.d/20231205_093902_rra_DM_41998.md b/changelog.d/20231205_093902_rra_DM_41998.md new file mode 100644 index 0000000..4c8b835 --- /dev/null +++ b/changelog.d/20231205_093902_rra_DM_41998.md @@ -0,0 +1,3 @@ +### Other changes + +- Safir is now tested with Python 3.12 as well as Python 3.11. diff --git a/pyproject.toml b/pyproject.toml index b343c31..bf4c4ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ classifiers = [ "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: POSIX", @@ -134,10 +135,17 @@ exclude = ''' [tool.pytest.ini_options] asyncio_mode = "strict" filterwarnings = [ - "ignore:'cgi' is deprecated:DeprecationWarning:google.cloud.storage.blob", # Google modules call a deprecated pkg_resources API. "ignore:pkg_resources is deprecated as an API:DeprecationWarning", "ignore:.*pkg_resources\\.declare_namespace:DeprecationWarning", + # Google modules use PyType_Spec in a deprecated way. + "ignore:Type google\\..*metaclass.* custom tp_new:DeprecationWarning", + # dateutil uses a deprecated datetime function. + "ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil.*", + # The point of this test is to test handling of datetime-naive UTC + # objects, which is what the deprecation warning is about. We want to + # continue doing this until the support has been removed entirely. + "ignore:datetime.datetime.utcnow:DeprecationWarning:tests.pydantic_test", ] python_files = [ "tests/*.py",