From 690ced812abe52b3b4a959fb0a14eea3f9af89c9d23d57c71d2fe5539e0a1ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 6 Sep 2020 19:26:40 +0000 Subject: [PATCH] Accepting request 832603 from home:jayvdb:py-submit 1.1k+ stars; cross language lib; dep of django-groups-cache OBS-URL: https://build.opensuse.org/request/show/832603 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hashids?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + hashids-1.3.1.tar.gz | 3 +++ python-hashids.changes | 9 +++++++ python-hashids.spec | 59 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 95 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 hashids-1.3.1.tar.gz create mode 100644 python-hashids.changes create mode 100644 python-hashids.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hashids-1.3.1.tar.gz b/hashids-1.3.1.tar.gz new file mode 100644 index 0000000..1428b9b --- /dev/null +++ b/hashids-1.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c3dc775e65efc2ce2c157a65acb776d634cb814598f406469abef00ae3f635c +size 7884 diff --git a/python-hashids.changes b/python-hashids.changes new file mode 100644 index 0000000..0727090 --- /dev/null +++ b/python-hashids.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Sun Sep 6 10:24:12 UTC 2020 - John Vandenberg + +- Update to v1.3.1 + +------------------------------------------------------------------- +Tue Apr 21 01:22:18 PM UTC 2020 - John Vandenberg + +- Initial spec for v1.2.0 diff --git a/python-hashids.spec b/python-hashids.spec new file mode 100644 index 0000000..09e52cf --- /dev/null +++ b/python-hashids.spec @@ -0,0 +1,59 @@ +# +# spec file for package python-hashids +# +# Copyright (c) 2020 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-hashids +Version: 1.3.1 +Release: 0 +Summary: Python implementation of hashids +License: MIT +Group: Development/Languages/Python +URL: https://github.com/davidaurelio/hashids-python +Source: https://files.pythonhosted.org/packages/source/h/hashids/hashids-%{version}.tar.gz +BuildRequires: %{python_module flit} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pip} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Python implementation of hashids (http://www.hashids.org). + +%prep +%setup -q -n hashids-%{version} +sed -i 's/tool.flit.sdist/sdist/' pyproject.toml + +%build +%python_expand $python -m flit build --format wheel +mv dist/*.whl . + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog