summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-27 03:24:13 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-27 03:24:13 +0000
commit1cd78da90c08aeabe6a7d0f6c3b5da6805236632 (patch)
treefc2152d8995b625e753663de4ad0f19c66005f19
parent8bdc6f8e287aa732a49190803bbc1312b6e46452 (diff)
automatic import of python-orderly-setopeneuler24.03_LTS_SP1
-rw-r--r--.gitignore1
-rw-r--r--python-orderly-set.spec55
-rw-r--r--sources1
3 files changed, 57 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9e555ff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-orderly-set-5.2.2.tar.gz
diff --git a/python-orderly-set.spec b/python-orderly-set.spec
new file mode 100644
index 0000000..2161729
--- /dev/null
+++ b/python-orderly-set.spec
@@ -0,0 +1,55 @@
+%global pypi_name orderly-set
+%global pypi_version 5.2.2
+
+Name: python-%{pypi_name}
+Version: %{pypi_version}
+Release: 1
+Summary: A package containing multiple implementations of Ordered Set
+License: MIT
+URL: https://github.com/seperman/orderly-set
+Source0: https://github.com/seperman/orderly-set/archive/%{version}/%{name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+# Required by tests
+BuildRequires: python3-wheel
+BuildRequires: python3-pytest
+BuildRequires: python3-mypy
+
+%description
+Orderly Set is a package containing multiple implementations of
+Ordered Set.
+
+%package -n python3-%{pypi_name}
+Summary: %{summary}
+%{?python_provide:%python_provide python3-%{pypi_name}}
+
+%description -n python3-%{pypi_name}
+Orderly Set is a package containing multiple implementations
+of Ordered Set.
+
+%prep
+%autosetup -n orderly-set-%{pypi_version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+%build
+%py3_build
+
+%install
+%py3_install
+
+%check
+# Tests are not running, see https://github.com/seperman/orderly-set/issues/7
+#{__python3} setup.py test
+
+%files -n python3-%{pypi_name}
+%doc README.md
+%license MIT-LICENSE
+%{python3_sitelib}/orderly_set
+%{python3_sitelib}/orderly_set-*.egg-info
+
+%changelog
+* Mon Jan 27 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 5.2.2-1
+- Initial package.
diff --git a/sources b/sources
new file mode 100644
index 0000000..a2e3fa1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+86d2545106368c4a5476229daab5397b python-orderly-set-5.2.2.tar.gz