diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10d888c..90eeb71 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,11 +20,11 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v6 - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: - python-version: "3.10" + python-version: "3.12" - name: Bump version and push tag uses: anothrNick/github-tag-action@1.64.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6b710ca..9377616 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,9 +17,9 @@ jobs: python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v6 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -30,7 +30,7 @@ jobs: run: tox - name: "Upload coverage to Codecov" if: ${{matrix.python-version == '3.12'}} - uses: codecov/codecov-action@v5 + uses: codecov/codecov-action@v6 with: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false diff --git a/.readthedocs.yml b/.readthedocs.yml index a7c187c..e7daaa6 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -10,9 +10,9 @@ sphinx: fail_on_warning: true build: - os: "ubuntu-20.04" + os: "ubuntu-24.04" tools: - python: "3.10" + python: "3.12" python: install: diff --git a/doc/source/conf.py b/doc/source/conf.py index 9487c7f..ad5e1ca 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -14,14 +14,14 @@ # import sys # sys.path.insert(0, os.path.abspath(".")) -from pkg_resources import get_distribution +from importlib.metadata import version as get_version # -- Project information ----------------------------------------------------- project = "currentscape" # The short X.Y version -version = get_distribution("currentscape").version +version = get_version("currentscape") # The full version, including alpha/beta/rc tags release = version diff --git a/requirements_docs.txt b/requirements_docs.txt index 388407c..a4c1bde 100644 --- a/requirements_docs.txt +++ b/requirements_docs.txt @@ -12,5 +12,5 @@ # See the License for the specific language governing permissions and # limitations under the License. -sphinx>=2.0.0 +sphinx>=2.0.0<9 sphinx-bluebrain-theme diff --git a/tox.ini b/tox.ini index efedf25..838a44e 100644 --- a/tox.ini +++ b/tox.ini @@ -89,6 +89,7 @@ commands = [testenv:docs] changedir = doc extras = docs +deps = sphinx<9 # set warnings as errors using the -W sphinx option commands = make html SPHINXOPTS=-W allowlist_externals = make