diff options
author | CoprDistGit <infra@openeuler.org> | 2024-04-14 02:51:29 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-04-14 02:51:29 +0000 |
commit | 37aa5d07ac7d3c2eb8b7d4d9ee9d0c2cf3024193 (patch) | |
tree | c537bffe3388262d763546079448d1bc0584905c | |
parent | 8bc4c3c1398a7108e56ed0bd0c4625a18d56cfd5 (diff) |
automatic import of python-pytorch-lightning
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pytorch-lightning.spec | 56 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 58 insertions, 0 deletions
@@ -0,0 +1 @@ +/pytorch-lightning-2.1.4.tar.gz diff --git a/python-pytorch-lightning.spec b/python-pytorch-lightning.spec new file mode 100644 index 0000000..c4c539c --- /dev/null +++ b/python-pytorch-lightning.spec @@ -0,0 +1,56 @@ +%global pypi_name pytorch-lightning +%global pypi_version 2.1.4 +%global pkg_summary PyTorch Lightning is the lightweight PyTorch wrapper for ML researchers. Scale your models. Write less boilerplate. +%global pkg_description %{expand: +%{pkg_summary}} +%global debug_package %{nil} + +Name: python-%{pypi_name} +Version: %{pypi_version} +Release: 1 +Summary: %{pkg_summary} + +License: Apache-2.0 +URL: https://github.com/Lightning-AI/pytorch-lightning +Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/pytorch-lightning-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: ninja-build +BuildRequires: g++ + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-setuptools_scm +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + +BuildRequires: python3-pytorch >= 2.1.2 + +%description +%{pkg_description} + +%package -n python3-%{pypi_name} +Summary: %{pkg_summary} + +%description -n python3-%{pypi_name} +%{pkg_description} + +%prep +%autosetup -p1 -n %{pypi_name}-%{pypi_version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name}* + +%changelog +* Sun Mar 31 2024 YunShu +- add pytorch-lightning 2.1.4 @@ -0,0 +1 @@ +50f312013e9e90c99a9f314f38069dff pytorch-lightning-2.1.4.tar.gz |