14
0

Accepting request 945231 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/945231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-shortuuid?expand=0&rev=4
This commit is contained in:
2022-01-10 22:53:03 +00:00
committed by Git OBS Bridge
4 changed files with 43 additions and 8 deletions

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Sun Jan 9 02:02:33 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
- 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

View File

@@ -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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c11d2007b915c43bee3e10625f068d8a349e04f0d81f08f5fa08507427ebf1f
size 6974

3
shortuuid-1.0.8.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9435e87e5a64f3b92f7110c81f989a3b7bdb9358e22d2359829167da476cfc23
size 8302