From 90f0e9fa05e027a63a6ccd1b0ae1ec76ee0dda1e29c4dc7cedd2454dcc89d91f Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 10 Jan 2025 05:15:33 +0000 Subject: [PATCH] - We don't need to clean up the license from sitelib. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-shortuuid?expand=0&rev=19 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-shortuuid.changes | 75 ++++++++++++++++++++++++++++++++++++++++ python-shortuuid.spec | 72 ++++++++++++++++++++++++++++++++++++++ shortuuid-1.0.13.tar.gz | 3 ++ 5 files changed, 174 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-shortuuid.changes create mode 100644 python-shortuuid.spec create mode 100644 shortuuid-1.0.13.tar.gz 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/python-shortuuid.changes b/python-shortuuid.changes new file mode 100644 index 0000000..e188596 --- /dev/null +++ b/python-shortuuid.changes @@ -0,0 +1,75 @@ +------------------------------------------------------------------- +Fri Jan 10 05:15:07 UTC 2025 - Steve Kowalik + +- We don't need to clean up the license from sitelib. + +------------------------------------------------------------------- +Sat Mar 16 13:19:34 UTC 2024 - Dirk Müller + +- update to 1.0.13: + * require python 3.6+ + * switch to poetry + +------------------------------------------------------------------- +Sun Jun 25 07:16:19 UTC 2023 - Andreas Schneider + +- Use sle15_python_module_pythons + +------------------------------------------------------------------- +Thu May 4 20:39:04 UTC 2023 - Dirk Müller + +- update to 1.0.11: + * Add Type hinting + * add py.typed (PEP 561) + +------------------------------------------------------------------- +Fri Oct 7 15:37:21 UTC 2022 - Yogalakshmi Arunachalam + +- Update to v1.0.9 + No Upstream changelog + +------------------------------------------------------------------- +Sun Jan 9 02:02:33 UTC 2022 - John Vandenberg + +- Remove tests from runtime package +- Update to v1.0.8 + * Include the COPYING file in releases +- from v1.0.7 + * Add prefix and max_length to the Django field +- from v1.0.6 + * Fix compatibility for python versions older than 3.8 +- from v1.0.5 + * Don't try to get the version from the pyproject.toml + * Fix slow loading times from using pkg_resources +- from v1.0.4 + * Fix the cli interface that the previous release broke +- from v1.0.3 + * Add Django ShortUUIDField +- from v1.0.2 + * Added basic input type validation to encode and decode + * Use sys.version_info since sys.version returns string that + interprets 3.10 as 3.1 in comparison + +------------------------------------------------------------------- +Wed Mar 18 11:29:15 UTC 2020 - pgajdos@suse.com + +- version update to 1.0.1 + * Use README as the long description on PyPI. [Stavros Korokithakis] + * Drop support for Python before 3.5. [Stavros Korokithakis] + * Add simple command-line interface (#43) [Éric Araujo] + * Make encode and decode MSB-first (#36) [Keane Nguyen] + * Make the URL check more robust (fixes #32) [Stavros Korokithakis] +- deleted patches + - shortuuid-no-pep8.patch (upstreamed) + +------------------------------------------------------------------- +Wed Sep 26 09:13:16 UTC 2018 - Tomáš Chvátal + +- Add patch to not depend on pep8 linter, also reported upstream + to fix properly: + * shortuuid-no-pep8.patch + +------------------------------------------------------------------- +Sat Apr 28 13:50:31 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/python-shortuuid.spec b/python-shortuuid.spec new file mode 100644 index 0000000..219d1bd --- /dev/null +++ b/python-shortuuid.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-shortuuid +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-shortuuid +Version: 1.0.13 +Release: 0 +Summary: A generator library for concise, unambiguous and URL-safe UUIDs +License: BSD-3-Clause +Group: Development/Languages/Python +URL: https://github.com/stochastic-technologies/shortuuid/ +Source: https://files.pythonhosted.org/packages/source/s/shortuuid/shortuuid-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives +Requires: python-base +BuildArch: noarch +%python_subpackages + +%description +A library that generates short, pretty, unambiguous unique IDs +by using an extensive, case-sensitive alphabet and omitting +similar-looking letters and numbers. + +%prep +%setup -q -n shortuuid-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/shortuuid +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%post +%python_install_alternative shortuuid + +%postun +%python_uninstall_alternative shortuuid + +%files %{python_files} +%doc README.md +%license COPYING +%python_alternative %{_bindir}/shortuuid +%{python_sitelib}/shortuuid +%{python_sitelib}/shortuuid-%{version}.dist-info + +%changelog diff --git a/shortuuid-1.0.13.tar.gz b/shortuuid-1.0.13.tar.gz new file mode 100644 index 0000000..6907519 --- /dev/null +++ b/shortuuid-1.0.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3bb9cf07f606260584b1df46399c0b87dd84773e7b25912b7e391e30797c5e72 +size 9662