From 54bcfea4c4f7c9665fe4b4018b7ac75cc671a581 Mon Sep 17 00:00:00 2001 From: Eneko Martin-Martinez Date: Wed, 3 Jan 2024 15:28:41 +0100 Subject: [PATCH] test Python 3.12 --- .github/workflows/build-docs.yml | 2 +- .github/workflows/ci.yml | 2 +- .readthedocs.yaml | 2 +- requirements.txt | 2 +- setup.py | 1 + tests/pytest.ini | 3 ++- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 12a29f91..9cd6c283 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: '3.12' - name: Install dependencies run: | pip install . diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 243d4e76..7ba9023b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - python-version: ['3.9', '3.11'] + python-version: ['3.9', '3.12'] steps: - uses: actions/checkout@v4 diff --git a/.readthedocs.yaml b/.readthedocs.yaml index a3a73dfd..7172d5cc 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -12,7 +12,7 @@ sphinx: build: os: "ubuntu-22.04" tools: - python: "3.11" + python: "3.12" python: install: diff --git a/requirements.txt b/requirements.txt index 2d303804..83131a0c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -numpy<1.24 +numpy pandas[excel] parsimonious xarray>=2023.9 diff --git a/setup.py b/setup.py index 8fc393e2..6f08d560 100755 --- a/setup.py +++ b/setup.py @@ -25,6 +25,7 @@ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', ], install_requires=open('requirements.txt').read().strip().split('\n'), package_data={ diff --git a/tests/pytest.ini b/tests/pytest.ini index 9805090c..301e148e 100644 --- a/tests/pytest.ini +++ b/tests/pytest.ini @@ -1,5 +1,6 @@ [pytest] python_files = pytest_*/**/*.py pytest_*/*.py filterwarnings = - error +# error ignore:numpy.ndarray size changed, may indicate binary incompatibility.:RuntimeWarning + ignore:datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC::DeprecationWarning \ No newline at end of file