Something went wrong. Try again.
Something went wrong. Try again.
2.1 kB · 78 lines
at 43
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879Name: python-accelerateVersion: 1.11.0Release: 1%{?dist}# Fill in the actual package summary to submit package to FedoraSummary: Accelerate
# Check if the automatically generated License and its spelling is correct for Fedora# https://docs.fedoraproject.org/en-US/packaging-guidelines/LicensingGuidelines/License: Apache-2.0URL: https://github.com/huggingface/accelerateSource: %{pypi_source accelerate}
ExcludeArch: %{ix86}
BuildArch: noarchBuildRequires: python3-devel# For passing the test suiteBuildRequires: python3-richBuildRequires: pyproject-rpm-macrosBuildRequires: python3-packagingBuildRequires: python3-pipBuildRequires: python3-setuptoolsBuildRequires: python3-wheelBuildRequires: python3-safetensors
# Fill in the actual package description to submit package to Fedora%global _description %{expand:This is package 'accelerate' generated automatically by pyp2spec.}
%description %_description
%package -n python3-accelerateSummary: %{summary}
%description -n python3-accelerate %_description
%prep%autosetup -p1 -n accelerate-%{version}# Delete all the test_utils with external depsrm -r src/accelerate/test_utils/scripts/external_deps/*# This particular utility tries to access something internal to pytorch?rm src/accelerate/test_utils/scripts/test_merge_weights.py# This particular utility uses pytest, but we don't package the test extras...rm src/accelerate/test_utils/scripts/test_notebook.py
%generate_buildrequires%pyproject_buildrequires
%build%pyproject_wheel
%install%pyproject_install# Add top-level Python module names here as arguments, you can use globs%pyproject_save_files -l accelerate
%checkexport ACCELERATE_ENABLE_RICH=True%pyproject_check_importunset ACCELERATE_ENABLE_RICH
%files -n python3-accelerate -f %{pyproject_files}%license LICENSE%doc README.md%{_bindir}/accelerate%{_bindir}/accelerate-config%{_bindir}/accelerate-estimate-memory%{_bindir}/accelerate-launch%{_bindir}/accelerate-merge-weights
%changelog%autochangelog