From 36f77db755c1cb507ee8b736acdbe6fd477be8b5 Mon Sep 17 00:00:00 2001 From: clemsgrs Date: Wed, 10 Dec 2025 10:40:10 +0000 Subject: [PATCH 1/3] Bump version to 1.0.0 --- hs2p/__init__.py | 2 +- pyproject.toml | 2 +- setup.cfg | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hs2p/__init__.py b/hs2p/__init__.py index 6c8e6b9..5becc17 100644 --- a/hs2p/__init__.py +++ b/hs2p/__init__.py @@ -1 +1 @@ -__version__ = "0.0.0" +__version__ = "1.0.0" diff --git a/pyproject.toml b/pyproject.toml index faae7f1..8d49991 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ warn_unused_configs = true no_implicit_reexport = true [tool.bumpver] -current_version = "0.0.0" +current_version = "1.0.0" version_pattern = "MAJOR.MINOR.PATCH" commit = false # We do version bumping in CI, not as a commit tag = false # Git tag already exists — we don't auto-tag diff --git a/setup.cfg b/setup.cfg index 6759cc4..771c68f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = hs2p -version = 0.0.0 +version = 1.0.0 description = Embedding of whole slide images with Foundation Models author = Clément Grisi platforms = unix, linux, osx, cygwin, win32 From d0c0b6831a504632a229a5168eff4da1158b7a17 Mon Sep 17 00:00:00 2001 From: clemsgrs Date: Wed, 10 Dec 2025 11:04:59 +0000 Subject: [PATCH 2/3] fix pr test --- .github/workflows/pr-test.yaml | 10 ---------- setup.cfg | 4 +++- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr-test.yaml b/.github/workflows/pr-test.yaml index fb4e83e..a13ceb0 100644 --- a/.github/workflows/pr-test.yaml +++ b/.github/workflows/pr-test.yaml @@ -16,9 +16,6 @@ jobs: # don't run secret-using job on forked PRs if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} - env: - HF_TOKEN: ${{ secrets.HF_TOKEN }} - steps: - name: Check out repository uses: actions/checkout@v4 @@ -56,17 +53,10 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max - - name: Guard required secret (if needed) - if: ${{ github.event_name != 'pull_request' }} # or drop the condition if PRs from same repo need it - run: | - set -euo pipefail - test -n "${HF_TOKEN:-}" || { echo "HF_TOKEN is required but not set"; exit 1; } - - name: Generate outputs in container run: | set -euo pipefail docker run --rm \ - -e HF_TOKEN="$HF_TOKEN" \ -v "$GITHUB_WORKSPACE/test/input:/input" \ -v "$GITHUB_WORKSPACE/test/output:/output" \ hs2p:${{ github.sha }} \ diff --git a/setup.cfg b/setup.cfg index 771c68f..70ae6af 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,7 +40,9 @@ testing = tox>=3.24 [options.package_data] -hs2p = py.typed +hs2p = + py.typed + configs/*.yaml [flake8] max-line-length = 160 From 4818ceb1623c8324c52b8b643b236f17c5a6d5f3 Mon Sep 17 00:00:00 2001 From: clemsgrs Date: Wed, 10 Dec 2025 11:20:35 +0000 Subject: [PATCH 3/3] fix csv path for pr test --- test/input/config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/input/config.yaml b/test/input/config.yaml index 6cbcbfd..cf947af 100644 --- a/test/input/config.yaml +++ b/test/input/config.yaml @@ -1,4 +1,4 @@ -csv: "/data/temporary/clement/code/hs2p/test/input/tmp.csv" +csv: "/input/test.csv" output_dir: "/output" visualize: true