Skip to content

Commit

Permalink
Merge pull request #223 from lsst-sqre/tickets/DM-41998
Browse files Browse the repository at this point in the history
DM-41998: Add support for Python 3.12
  • Loading branch information
rra authored Dec 5, 2023
2 parents 35a940a + 17b7cc5 commit e74c3aa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
matrix:
python:
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/periodic-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
matrix:
python:
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions changelog.d/20231205_093902_rra_DM_41998.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Other changes

- Safir is now tested with Python 3.12 as well as Python 3.11.
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit e74c3aa

Please sign in to comment.