diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 23afc9d8..195a736c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,6 +33,7 @@ jobs: default_python: '3.10' coverage: 'codecov' envs: | + - linux: py312 - linux: py311 - windows: py310-online - macos: py39 diff --git a/changelog/322.bugfix.rst b/changelog/322.bugfix.rst new file mode 100644 index 00000000..50ccc912 --- /dev/null +++ b/changelog/322.bugfix.rst @@ -0,0 +1 @@ +Fix some deprecation warnings for Python 3.12 support. diff --git a/dkist/net/globus/tests/test_auth.py b/dkist/net/globus/tests/test_auth.py index 1e755c27..032f8ea9 100644 --- a/dkist/net/globus/tests/test_auth.py +++ b/dkist/net/globus/tests/test_auth.py @@ -122,4 +122,4 @@ def test_func(): return True assert test_func() - assert reauth.called_once_with(force_reauth=True) + reauth.assert_called_once_with(force_reauth=True) diff --git a/setup.cfg b/setup.cfg index 3ab9b91c..30efcfa6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,6 +15,7 @@ classifiers = Programming Language :: Python :: 3.9 Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 [options] python_requires = >=3.9 @@ -22,7 +23,6 @@ packages = find: include_package_data = True install_requires = aiohttp>=3.6 - platformdirs>=3.0 # Provide minimum deps for all asdf packages used to generate or read asdf # files so that we test with these minimums and also generate asdf's with # them @@ -44,6 +44,7 @@ install_requires = ndcube[plotting,reproject]>=2.0 numpy>=1.22 parfive[ftp]>=1.5 + platformdirs>=3.0 sunpy[net,asdf]>=4.0.7 tqdm>=4.63 setup_requires = setuptools_scm @@ -143,6 +144,11 @@ filterwarnings = ignore:Converter handles multiple tags for this extension:asdf.exceptions.AsdfWarning # https://github.com/pandas-dev/pandas/issues/54466 ignore:\nPyarrow will become a required dependency of pandas in the next major release of pandas:DeprecationWarning + # This seems to be coming out of pandas + ignore:datetime.datetime.utcfromtimestamp.*:DeprecationWarning + # The new way of doing it is 3.11 + ignore:datetime.datetime.utcnow.*:DeprecationWarning + [flake8] exclude = extern,sphinx,*parsetab.py,conftest.py,docs/conf.py,setup.py,__init__.py max-line-length = 100