Skip to content

Commit f51cf50

Browse files
authored
fix table update versions (#45544)
* fix table upate versions * used released version
1 parent 8fb7c7e commit f51cf50

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"rjieba",
125125
"rouge-score!=0.0.7,!=0.0.8,!=0.1,!=0.1.1",
126126
"ruff==0.14.10",
127-
"transformers-mlinter @ git+https://github.com/huggingface/transformers-mlinter@b9d319ce264c106f97a959d926ef42bc3c0ea4d1",
127+
"transformers-mlinter==0.1.0",
128128
"ty==0.0.20",
129129
# `sacrebleu` not used in `transformers`. However, it is needed in several tests, when a test calls
130130
# `evaluate.load("sacrebleu")`. This metric is used in the examples that we use to test the `Trainer` with, in the
@@ -295,7 +295,7 @@ def finalize_options(self):
295295
pass
296296

297297
def run(self):
298-
if SUPPORTED_PYTHON_VERSIONS[0] >= PYTHON_MINOR_VERSION:
298+
if SUPPORTED_PYTHON_VERSIONS[0] > PYTHON_MINOR_VERSION:
299299
print(
300300
f"Table updated only when running 3.{SUPPORTED_PYTHON_VERSIONS[0]}.x, detected version is {sys.version}."
301301
)

src/transformers/dependency_versions_table.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"rjieba": "rjieba",
5757
"rouge-score": "rouge-score!=0.0.7,!=0.0.8,!=0.1,!=0.1.1",
5858
"ruff": "ruff==0.14.10",
59+
"transformers-mlinter": "transformers-mlinter==0.1.0",
5960
"ty": "ty==0.0.20",
6061
"sacrebleu": "sacrebleu>=1.4.12,<2.0.0",
6162
"sacremoses": "sacremoses",

0 commit comments

Comments
 (0)