From b0d5cf8507f0bb7c7573fcf74603f4935a3daeaf Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 9 Jan 2026 13:37:46 -0800 Subject: [PATCH] add: submitit (#9002) (#9005) --- anda/langs/python/submitit/anda.hcl | 6 +++ anda/langs/python/submitit/submitit.spec | 56 ++++++++++++++++++++++++ anda/langs/python/submitit/update.rhai | 1 + 3 files changed, 63 insertions(+) create mode 100644 anda/langs/python/submitit/anda.hcl create mode 100644 anda/langs/python/submitit/submitit.spec create mode 100644 anda/langs/python/submitit/update.rhai diff --git a/anda/langs/python/submitit/anda.hcl b/anda/langs/python/submitit/anda.hcl new file mode 100644 index 0000000000..fbd78c6e45 --- /dev/null +++ b/anda/langs/python/submitit/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "submitit.spec" + } +} diff --git a/anda/langs/python/submitit/submitit.spec b/anda/langs/python/submitit/submitit.spec new file mode 100644 index 0000000000..904267c82f --- /dev/null +++ b/anda/langs/python/submitit/submitit.spec @@ -0,0 +1,56 @@ +%global pypi_name submitit +%global _desc Python 3.8+ toolbox for submitting jobs to Slurm. + +Name: python-%{pypi_name} +Version: 1.2.0 +Release: 1%?dist +Summary: Python 3.8+ toolbox for submitting jobs to Slurm +License: MIT +URL: https://github.com/facebookincubator/submitit +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-pip + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%package doc +Summary: Documentation for %{name} +Requires: python3-%{pypi_name} = %{evr} + +%description doc +Documentation for %{name}. + +%prep +%autosetup -n submitit-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files submitit + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE + +%files doc +%doc docs/ + +%changelog +* Fri Jan 09 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/submitit/update.rhai b/anda/langs/python/submitit/update.rhai new file mode 100644 index 0000000000..151e39be57 --- /dev/null +++ b/anda/langs/python/submitit/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("submitit"));