From 397e3b00047aa75c36cdb4bee9aee09deeb0f63bb90d0bced9895cb663c17984 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 10 Jan 2022 08:59:38 +0000 Subject: [PATCH] Accepting request 944972 from home:jayvdb:branches:devel:languages:python - Remove tests from runtime package - Update to v1.0.8 (fixes breakage) OBS-URL: https://build.opensuse.org/request/show/944972 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-shortuuid?expand=0&rev=9 --- python-shortuuid.changes | 22 ++++++++++++++++++++++ python-shortuuid.spec | 23 ++++++++++++++++++----- shortuuid-1.0.1.tar.gz | 3 --- shortuuid-1.0.8.tar.gz | 3 +++ 4 files changed, 43 insertions(+), 8 deletions(-) delete mode 100644 shortuuid-1.0.1.tar.gz create mode 100644 shortuuid-1.0.8.tar.gz diff --git a/python-shortuuid.changes b/python-shortuuid.changes index d3e26ec..81cb7ef 100644 --- a/python-shortuuid.changes +++ b/python-shortuuid.changes @@ -1,3 +1,25 @@ +------------------------------------------------------------------- +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 diff --git a/python-shortuuid.spec b/python-shortuuid.spec index 969be03..f7a799d 100644 --- a/python-shortuuid.spec +++ b/python-shortuuid.spec @@ -1,7 +1,7 @@ # # spec file for package python-shortuuid # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-shortuuid -Version: 1.0.1 +Version: 1.0.8 Release: 0 Summary: A generator library for concise, unambiguous and URL-safe UUIDs License: BSD-3-Clause @@ -30,6 +30,9 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun):update-alternatives +Requires: python-base BuildArch: noarch %python_subpackages @@ -46,14 +49,24 @@ similar-looking letters and numbers. %install %python_install -%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/shortuuid +%{python_expand rm %{buildroot}%{$python_sitelib}/shortuuid/tests.py +%fdupes %{buildroot}%{$python_sitelib} +} %check %pytest shortuuid/tests.py +%post +%python_install_alternative shortuuid + +%postun +%python_uninstall_alternative shortuuid + %files %{python_files} -%doc README.rst +%doc README.md %license COPYING -%{python_sitelib}/* +%python_alternative %{_bindir}/shortuuid +%{python_sitelib}/*shortuuid*/ %changelog diff --git a/shortuuid-1.0.1.tar.gz b/shortuuid-1.0.1.tar.gz deleted file mode 100644 index abad459..0000000 --- a/shortuuid-1.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3c11d2007b915c43bee3e10625f068d8a349e04f0d81f08f5fa08507427ebf1f -size 6974 diff --git a/shortuuid-1.0.8.tar.gz b/shortuuid-1.0.8.tar.gz new file mode 100644 index 0000000..16d8b59 --- /dev/null +++ b/shortuuid-1.0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9435e87e5a64f3b92f7110c81f989a3b7bdb9358e22d2359829167da476cfc23 +size 8302