Skip to content

Commit

Permalink
Add a python 3.12 CI job (#322)
Browse files Browse the repository at this point in the history
* Add a python 3.12 job

* Support Python 3.12

* Reorder deps

* Add back 3.10 support

* more python
  • Loading branch information
Cadair authored Jan 30, 2024
1 parent 08038ae commit c1a7759
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
default_python: '3.10'
coverage: 'codecov'
envs: |
- linux: py312
- linux: py311
- windows: py310-online
- macos: py39
Expand Down
1 change: 1 addition & 0 deletions changelog/322.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix some deprecation warnings for Python 3.12 support.
2 changes: 1 addition & 1 deletion dkist/net/globus/tests/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
8 changes: 7 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ 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
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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c1a7759

Please sign in to comment.