diff --git a/.github/workflows/get_coverage.yml b/.github/workflows/get_coverage.yml index 221816ae..e844b975 100644 --- a/.github/workflows/get_coverage.yml +++ b/.github/workflows/get_coverage.yml @@ -16,7 +16,7 @@ jobs: uses: conda-incubator/setup-miniconda@v2 with: miniconda-version: 'latest' - python-version: 3.9 + python-version: 3.10 channels: conda-forge - name: install dascore diff --git a/.github/workflows/runtests.yml b/.github/workflows/runtests.yml index 64431fd6..f343d138 100644 --- a/.github/workflows/runtests.yml +++ b/.github/workflows/runtests.yml @@ -21,7 +21,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ['3.9', '3.10'] + python-version: ['3.9', '3.10', '3.11'] # only run if CI isn't turned off if: github.event_name == 'push' || !contains(github.event.pull_request.labels.*.name, 'no_ci') diff --git a/pyproject.toml b/pyproject.toml index 74a13327..f3d6f218 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,14 +25,15 @@ authors = [ ] description = "A python library distributed fiber optic sensing" -readme = ".github/README.md" -license = { file="LICENSE" } +readme = "readme.md" +license = { file="docs/LICENSE" } requires-python = ">=3.9" classifiers = [ "Development Status :: 4 - Beta", "License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Topic :: Scientific/Engineering", ] diff --git a/tests/conftest.py b/tests/conftest.py index 908a0aa6..57302fb2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -5,9 +5,11 @@ import shutil from pathlib import Path +import matplotlib import numpy as np import pytest import tables as tb +import tables.parameters import dascore as dc import dascore.examples as ex @@ -77,14 +79,14 @@ def pytest_sessionstart(session): and to set debug hook to True to avoid showing progress bars, except when explicitly being tested. """ - import matplotlib - - import dascore as dc - # If running in CI make sure to turn off matplotlib. if os.environ.get("CI", False): matplotlib.use("Agg") + # need to set nodes to 32 to avoid crash on p3.11. See pytables#977. + tables.parameters.NODE_CACHE_SLOTS = 32 + matplotlib.use("Agg") + # Ensure debug is set. This disables progress bars which disrupt debugging. dc._debug = True