From 5453318d7c6c7a3bde27bbd1b31ded52f745dcad Mon Sep 17 00:00:00 2001 From: Ryan Ly Date: Wed, 26 Jun 2024 17:33:18 -0400 Subject: [PATCH] Fix bundled "upgraded" workflow to actually update dependencies (#89) --- .../.github/workflows/run_all_tests.yml | 3 ++- {{ cookiecutter.namespace }}/pyproject.toml | 4 ++-- .../requirements-dev.txt | 17 ++++++++--------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/{{ cookiecutter.namespace }}/.github/workflows/run_all_tests.yml b/{{ cookiecutter.namespace }}/.github/workflows/run_all_tests.yml index f420e2b..bf36c98 100644 --- a/{{ cookiecutter.namespace }}/.github/workflows/run_all_tests.yml +++ b/{{ cookiecutter.namespace }}/.github/workflows/run_all_tests.yml @@ -73,7 +73,8 @@ jobs: if: ${{ "{{" }} matrix.requirements == 'upgraded' }} run: | python -m pip install -r requirements-dev.txt - python -m pip install -U . + # force upgrade of all dependencies to latest versions within allowed range + python -m pip install -U --upgrade-strategy eager . - name: Run tests run: | diff --git a/{{ cookiecutter.namespace }}/pyproject.toml b/{{ cookiecutter.namespace }}/pyproject.toml index 95676b4..74848cd 100644 --- a/{{ cookiecutter.namespace }}/pyproject.toml +++ b/{{ cookiecutter.namespace }}/pyproject.toml @@ -38,8 +38,8 @@ keywords = [ 'ndx-extension', ] dependencies = [ - "pynwb>=2.6.0", - "hdmf>=3.13.0", + "pynwb>=2.8.0", + "hdmf>=3.14.1", ] # TODO: add URLs before release diff --git a/{{ cookiecutter.namespace }}/requirements-dev.txt b/{{ cookiecutter.namespace }}/requirements-dev.txt index 6d7bb57..864e182 100644 --- a/{{ cookiecutter.namespace }}/requirements-dev.txt +++ b/{{ cookiecutter.namespace }}/requirements-dev.txt @@ -1,16 +1,15 @@ # pinned dependencies to reproduce an entire development environment to # run tests, check code style, and generate documentation -black==24.3.0 -codespell==2.2.6 -coverage==7.4.4 -hdmf==3.13.0 +black==24.4.2 +codespell==2.3.0 +coverage==7.5.4 +hdmf==3.14.1 hdmf-docutils==0.4.7 nwbwidgets==0.11.3 -pre-commit==3.5.0 -pynwb==2.6.0 -pytest==8.1.1 +pre-commit==3.5.0 # latest pre-commit does not support py3.8 +pynwb==2.8.0 +pytest==8.2.2 pytest-cov==5.0.0 pytest-subtests==0.12.1 python-dateutil==2.8.2 -ruff==0.3.4 -tox==4.14.2 +ruff==0.4.10