Skip to content

Commit 4383a25

Browse files
authored
Update the release builds following 0.21.1. (#1746)
* Update the release builds following 0.21.1. * Clippy fix.
1 parent 4f1a810 commit 4383a25

File tree

9 files changed

+14
-139
lines changed

9 files changed

+14
-139
lines changed

.github/workflows/python-release-conda.yml

Lines changed: 0 additions & 129 deletions
This file was deleted.

.github/workflows/python-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
platform: linux
3838
- os: windows
3939
ls: dir
40-
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
40+
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
4141
- os: windows
4242
ls: dir
4343
target: x86_64
@@ -54,7 +54,7 @@ jobs:
5454
# interpreter: 3.11 3.12
5555
- os: macos
5656
target: aarch64
57-
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
57+
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
5858
- os: ubuntu
5959
platform: linux
6060
target: i686

.github/workflows/python.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
steps:
5656
- name: Checkout repository
5757
uses: actions/checkout@v4
58+
5859

5960
- name: Install Rust
6061
uses: actions-rs/toolchain@v1
@@ -76,7 +77,7 @@ jobs:
7677

7778

7879
- name: Cache Cargo Registry
79-
uses: actions/cache@v1
80+
uses: actions/cache@v4
8081
with:
8182
path: ~/.cargo/registry
8283
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
@@ -107,7 +108,7 @@ jobs:
107108
uses: actions-rs/cargo@v1
108109
with:
109110
command: audit
110-
args: -D warnings -f ./bindings/python/Cargo.lock
111+
args: -D warnings -f ./bindings/python/Cargo.lock --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2025-0014
111112

112113
- name: Install
113114
working-directory: ./bindings/python

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
uses: actions-rs/cargo@v1
9595
with:
9696
command: audit
97-
args: -D warnings -f ./tokenizers/Cargo.lock
97+
args: -D warnings -f ./tokenizers/Cargo.lock --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2025-0014
9898

9999
# Verify that Readme.md is up to date.
100100
- name: Make sure, Readme generated from lib.rs matches actual Readme

.github/workflows/trufflehog.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ jobs:
1212
with:
1313
fetch-depth: 0
1414
- name: Secret Scanning
15-
uses: trufflesecurity/trufflehog@main
15+
uses: trufflesecurity/trufflehog@853e1e8d249fd1e29d0fcc7280d29b03df3d643d
16+
with:
17+
# exclude buggy postgres detector that is causing false positives and not relevant to our codebase
18+
extra_args: --results=verified,unknown --exclude-detectors=postgres

bindings/node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Nicolas Patry <nicolas@huggingface.co>"]
33
edition = "2021"
44
name = "node"
5-
version = "0.21.0-dev.0"
5+
version = "0.21.2-dev.0"
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

bindings/python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tokenizers-python"
3-
version = "0.21.0-dev.0"
3+
version = "0.21.2-dev.0"
44
authors = ["Anthony MOI <m.anthony.moi@gmail.com>"]
55
edition = "2021"
66

tokenizers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
authors = ["Anthony MOI <m.anthony.moi@gmail.com>", "Nicolas Patry <patry.nicolas@protonmail.com>"]
33
edition = "2018"
44
name = "tokenizers"
5-
version = "0.21.0-dev.0"
5+
version = "0.21.2-dev.0"
66
homepage = "https://github.com/huggingface/tokenizers"
77
repository = "https://github.com/huggingface/tokenizers"
88
documentation = "https://docs.rs/tokenizers/"

tokenizers/src/processors/template.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ impl TemplateProcessingBuilder {
466466
}
467467

468468
fn validate(&self) -> std::result::Result<(), String> {
469-
let pair_has_both = self.pair.as_ref().map_or(true, |pair| {
469+
let pair_has_both = self.pair.as_ref().is_none_or(|pair| {
470470
let mut has_a = false;
471471
let mut has_b = false;
472472
for piece in &pair.0 {

0 commit comments

Comments
 (0)