2 %bcond_with tests # unit tests
4 %define module ordered-set
5 Summary: A mutable set that remembers the order of its entries
6 Name: python3-%{module}
10 Group: Libraries/Python
11 Source0: https://pypi.debian.net/%{module}/%{module}-%{version}.tar.gz
12 # Source0-md5: 2a9ba8d1a962c26f9a4fbe246b62ee77
13 URL: https://github.com/seperman/ordered-set
14 BuildRequires: python3-modules >= 1:3.2
15 #BuildRequires: python3-setuptools
17 #BuildRequires: python3-
19 BuildRequires: rpm-pythonprov
20 BuildRequires: rpmbuild(macros) >= 1.714
21 Requires: python3-modules >= 1:3.2
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 An OrderedSet is a mutable data structure that is a hybrid of a list
27 and a set. It remembers the order of its entries, and every entry has
28 an index number that can be looked up.
31 %setup -q -n %{module}-%{version}
37 # use explicit plugins list for reliable builds (delete PYTEST_PLUGINS if empty)
38 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
40 %{__python3} -m pytest tests
44 rm -rf $RPM_BUILD_ROOT
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %dir %{py3_sitescriptdir}/ordered_set
55 %{py3_sitescriptdir}/ordered_set/*.py
56 %{py3_sitescriptdir}/ordered_set/__pycache__
57 %{py3_sitescriptdir}/ordered_set-%{version}-py*.egg-info