diff --git a/.python-uhashring.metadata b/.python-uhashring.metadata new file mode 100644 index 0000000..03e33d8 --- /dev/null +++ b/.python-uhashring.metadata @@ -0,0 +1 @@ +bd376ff8e9ac85bb7e1a7951128031de870483a6 SOURCES/2.3.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SOURCES/tox.ini b/SOURCES/tox.ini new file mode 100644 index 0000000..e816245 --- /dev/null +++ b/SOURCES/tox.ini @@ -0,0 +1,10 @@ +[tox] +skipsdist = True +envlist = py37,py38,py39,py310 + +[testenv] +skip_install = true +deps = + pytest +commands = + pytest diff --git a/SPECS/python-uhashring.spec b/SPECS/python-uhashring.spec new file mode 100644 index 0000000..246c3f8 --- /dev/null +++ b/SPECS/python-uhashring.spec @@ -0,0 +1,70 @@ +%global module uhashring + +Name: python-%{module} +Version: 2.3 +Release: 3%{?dist} +Summary: Python module uhashring + +License: BSD-3-Clause +URL: https://github.com/ultrabug/uhashring/ +Source0: https://github.com/ultrabug/%{module}/archive/refs/tags/%{version}.tar.gz +# Adding tox.ini to enable automatic BRs +Source1: tox.ini + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros +# Required to run unit tests +BuildRequires: python3-pytest +BuildRequires: python3-memcached + +%global _description %{expand: +uhashring implements consistent hashing in pure Python.} + +%description %_description + +%package -n python3-%{module} +Summary: %{summary} + +%description -n python3-%{module} +%_description + +%prep +%autosetup -p1 -n %{module}-%{version} + +cp %SOURCE1 . + +sed -i 's/ *"black",//g' pyproject.toml +sed -i 's/ *"flake8",//g' pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires -w -t + +%build +%pyproject_wheel + +%install +%pyproject_install + +%pyproject_save_files %{module} + +%check +%pytest + +%files -n python3-%{module} -f %{pyproject_files} +%doc README.rst +%license LICENSE + +%changelog +* Fri Jul 21 2023 Fedora Release Engineering - 2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jul 13 2023 Alfredo Moralejo - 2.3-2 +- Update to 2.3 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Nov 18 2022 Alfredo Moralejo - 2.1-1 +- Initial build with version 2.1 +