From 7249b2189993651c5154f5582e566e2d9b2cb569 Mon Sep 17 00:00:00 2001 From: CarloLucibello Date: Tue, 20 Oct 2026 09:04:02 +0200 Subject: [PATCH] Modernize repo maintenance setup - Replace CompatHelper with Dependabot's julia ecosystem - Move test deps to test/Project.toml in a workspace - Require Julia 1.10 (as PythonCall does) and test on min/1/pre - Bump checkout to v7 and setup-julia to v3 - Sync TagBot workflow with upstream example - Fix README install wording, ignore versioned manifests Co-Authored-By: Claude Opus 5.5 --- .github/dependabot.yml | 6 +++++- .github/workflows/CI.yml | 7 ++++--- .github/workflows/CompatHelper.yml | 16 ---------------- .github/workflows/TagBot.yml | 17 +++-------------- .gitignore | 2 +- Project.toml | 11 ++++------- README.md | 2 +- test/Project.toml | 9 +++++++++ 8 files changed, 27 insertions(+), 43 deletions(-) delete mode 100644 .github/workflows/CompatHelper.yml create mode 100644 test/Project.toml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 700707c..5980858 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,6 +2,10 @@ version: 2 updates: - package-ecosystem: "github-actions" - directory: "/" # Location of package manifests + directory: "/" + schedule: + interval: "weekly" + - package-ecosystem: "julia" + directory: "/" schedule: interval: "weekly" diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index ca0ab19..c9880f6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,15 +23,16 @@ jobs: fail-fast: false matrix: version: - - '1.11' + - 'min' + - '1' - 'pre' os: - ubuntu-latest arch: - x64 steps: - - uses: actions/checkout@v6 - - uses: julia-actions/setup-julia@v2 + - uses: actions/checkout@v7 + - uses: julia-actions/setup-julia@v3 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml deleted file mode 100644 index cba9134..0000000 --- a/.github/workflows/CompatHelper.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: CompatHelper -on: - schedule: - - cron: 0 0 * * * - workflow_dispatch: -jobs: - CompatHelper: - runs-on: ubuntu-latest - steps: - - name: Pkg.add("CompatHelper") - run: julia -e 'using Pkg; Pkg.add("CompatHelper")' - - name: CompatHelper.main() - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} - run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index 0cd3114..98e5ae1 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -6,26 +6,15 @@ on: workflow_dispatch: inputs: lookback: + description: "[DEPRECATED] No longer has any effect" default: "3" -permissions: - actions: read - checks: read - contents: write - deployments: read - issues: read - discussions: read - packages: read - pages: read - pull-requests: read - repository-projects: read - security-events: read - statuses: read jobs: TagBot: if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' + # ubuntu-slim doesn't support containers, and thus won't work runs-on: ubuntu-latest steps: - - uses: JuliaRegistries/TagBot@v1 + - uses: JuliaRegistries/TagBot@ffef3282bcacf1055e4d621a5c010959dfbe59ff # v1.25.13 with: token: ${{ secrets.GITHUB_TOKEN }} ssh: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.gitignore b/.gitignore index 845da37..fa7386c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.jl.*.cov *.jl.cov *.jl.mem -Manifest.toml +Manifest*.toml .CondaPkg \ No newline at end of file diff --git a/Project.toml b/Project.toml index 0444284..9fab301 100644 --- a/Project.toml +++ b/Project.toml @@ -3,15 +3,12 @@ uuid = "a6888d44-1185-43bb-bd0f-7806f9976d18" authors = ["AntonOresten and contributors"] version = "0.1.0" +[workspace] +projects = ["test"] + [deps] PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d" [compat] PythonCall = "0.9" -julia = "1" - -[extras] -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" - -[targets] -test = ["Test"] +julia = "1.10" diff --git a/README.md b/README.md index a581c8f..45ec48e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Rudimentary Julia bindings for [🤗 Tokenizers](https://github.com/huggingface/ ## Installation -From the Julia REPL, enter Pkg mode with `]` and add the package using the URL: +From the Julia REPL, enter Pkg mode with `]` and add the package: ``` add HuggingFaceTokenizers diff --git a/test/Project.toml b/test/Project.toml new file mode 100644 index 0000000..67adc52 --- /dev/null +++ b/test/Project.toml @@ -0,0 +1,9 @@ +[deps] +HuggingFaceTokenizers = "a6888d44-1185-43bb-bd0f-7806f9976d18" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +HuggingFaceTokenizers = {path = ".."} + +[compat] +Test = "1"