summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-01-29 06:08:30 +0000
committerCoprDistGit <infra@openeuler.org>2024-01-29 06:08:30 +0000
commitf6477b5deaef82da7def675e844033a3d34e938b (patch)
tree36235142555e755b6a7733a3f698bdc48622ec0e
parent55b524a69dfada5dc77ff77977a0a35457d7132c (diff)
automatic import of python-accelerate
-rw-r--r--.gitignore1
-rw-r--r--python-accelerate.spec65
-rw-r--r--sources1
3 files changed, 67 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ae60999 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-accelerate-0.26.1.tar.gz
diff --git a/python-accelerate.spec b/python-accelerate.spec
new file mode 100644
index 0000000..b95a2a1
--- /dev/null
+++ b/python-accelerate.spec
@@ -0,0 +1,65 @@
+%global _empty_manifest_terminate_build 0
+%global pypi_name accelerate
+%global source_name accelerate
+
+Name: python-%{pypi_name}
+Version: 0.26.1
+Release: 1
+Summary: Data validation library for Python
+License: Apache-2.0
+URL: https://pydantic.dev/
+Source0: https://github.com/huggingface/accelerate/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+
+BuildArch: noarch
+Requires: python3 >= 3.8.0
+Requires: python3-packaging >= 20.0
+Requires: python3-pasutil
+Requires: python3-pyyaml
+Requires: python3-pytorch >= 1.10.0
+Requires: python3-huggingface_hub
+Requires: python3-safetensors >= 0.3.1
+
+%description
+Pydantic is the most widely used data validation library for Python.
+It's downloaded millions of times a day by thousands of developers all over the world.
+Pydantic's success stems from its great developer experience - simple to use, even when doing complex things.
+
+%package -n python3-%{pypi_name}
+Summary: Data validation library for Python
+Provides: python-%{pypi_name}
+BuildRequires: python3-setuptools
+#BuildRequires: python3-packaging
+#BuildRequires: python3-omegaconf
+
+%description -n python3-%{pypi_name}
+
+%package help
+Summary: Development documents and examples for pydantic
+Provides: python3-%{pypi_name}-doc
+%description help
+python3 accelerate
+
+%prep
+%autosetup -p1 -n %{source_name}-%{version}
+
+%build
+%pyproject_build
+
+%install
+%pyproject_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+
+%files -n python3-%{pypi_name}
+%doc *.md
+%doc docs
+%license LICENSE
+%{_bindir}/%{source_name}*
+%{python3_sitelib}/%{source_name}/*
+%{python3_sitelib}/%{source_name}-%{version}.dist-info/*
+
+#%files help -f doclist.lst
+#%{_docdir}/*
+
+%changelog
+* Mon Jan 22 2024 menma <1316818279@qq.com> - 0.13.0-1
+- Package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..85f162e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+68e1bf095354abbd30d7663e9716b6cf python-accelerate-0.26.1.tar.gz