summaryrefslogtreecommitdiff
path: root/transformers.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-03-30 11:18:18 +0000
committerCoprDistGit <infra@openeuler.org>2024-03-30 11:18:18 +0000
commitcd18448a3778e10ebd2fe6fa8dae6707b446f006 (patch)
tree45eaac3ae31b13deb6d6547381cf8d29b4ef2a43 /transformers.spec
parentac6810e683908ce795e047e2ed7e2f985b5285a0 (diff)
automatic import of transformersopeneuler22.03_LTS_SP2
Diffstat (limited to 'transformers.spec')
-rw-r--r--transformers.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/transformers.spec b/transformers.spec
index 9dd3f8d..5bb5991 100644
--- a/transformers.spec
+++ b/transformers.spec
@@ -3,8 +3,8 @@ Version: 4.39.0
Release: 1%{?dist}
Summary: Transformers provides thousands of pretrained models to perform tasks on different modalities.
License: Apache-2.0
-URL: https://huggingface.co/docs/transformers/index
-Source0: https://github.com/huggingface/transformers.git
+URL: https://huggingface.co/docs/transformers/index
+Source0: https://github.com/huggingface/transformers/archive/refs/tags/v%{version}.tar.gz
Requires: python3-filelock
Requires: python3-packaging
@@ -27,7 +27,6 @@ BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
-BuildRequires: python3-hatchling
%description -n python3-transformers
python3-transformers provides APIs for transformers realize.
@@ -42,6 +41,7 @@ description for the doc of the python-transformers
%prep
%autosetup -p1 -n transformers-%{version}
+pip install hatchling
%build
%pyproject_build