14
0

Accepting request 786187 from home:pgajdos:python

indeed; not sure why it does not discover it?

OBS-URL: https://build.opensuse.org/request/show/786187
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-shortuuid?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2020-03-18 17:35:40 +00:00
committed by Git OBS Bridge
parent 7da448d55b
commit 5c276bc796
5 changed files with 20 additions and 48 deletions

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
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 <tchvatal@suse.com> Wed Sep 26 09:13:16 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-shortuuid # spec file for package python-shortuuid
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,16 +17,16 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-shortuuid Name: python-shortuuid
Version: 0.5.0 Version: 1.0.1
Release: 0 Release: 0
Summary: A generator library for concise, unambiguous and URL-safe UUIDs Summary: A generator library for concise, unambiguous and URL-safe UUIDs
License: BSD-3-Clause License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/stochastic-technologies/shortuuid/ URL: https://github.com/stochastic-technologies/shortuuid/
Source: https://files.pythonhosted.org/packages/source/s/shortuuid/shortuuid-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/s/shortuuid/shortuuid-%{version}.tar.gz
# https://github.com/skorokithakis/shortuuid/issues/38 BuildRequires: %{python_module pytest}
Patch0: shortuuid-no-pep8.patch
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -40,7 +40,6 @@ similar-looking letters and numbers.
%prep %prep
%setup -q -n shortuuid-%{version} %setup -q -n shortuuid-%{version}
%patch0 -p1
%build %build
%python_build %python_build
@@ -50,7 +49,7 @@ similar-looking letters and numbers.
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%python_exec setup.py test %pytest shortuuid/tests.py
%files %{python_files} %files %{python_files}
%doc README.rst %doc README.rst

View File

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

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

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

View File

@@ -1,39 +0,0 @@
Index: shortuuid-0.5.0/setup.py
===================================================================
--- shortuuid-0.5.0.orig/setup.py
+++ shortuuid-0.5.0/setup.py
@@ -32,5 +32,4 @@ setup(
classifiers=classifiers,
packages=["shortuuid"],
test_suite='shortuuid.tests',
- tests_require=['pep8'],
)
Index: shortuuid-0.5.0/shortuuid/tests.py
===================================================================
--- shortuuid-0.5.0.orig/shortuuid/tests.py
+++ shortuuid-0.5.0/shortuuid/tests.py
@@ -2,7 +2,6 @@ import os
import string
import sys
import unittest
-import pep8
from collections import defaultdict
from uuid import UUID, uuid4
@@ -125,16 +124,6 @@ class ClassShortUUIDTest(unittest.TestCa
su4 = ShortUUID()
self.assertEqual(su4.encoded_length(num_bytes=8), 11)
- def test_pep8(self):
- pep8style = pep8.StyleGuide([['statistics', True],
- ['show-sources', True],
- ['repeat', True],
- ['paths', [os.path.dirname(
- os.path.abspath(__file__))]]],
- parse_argv=False)
- report = pep8style.check_files()
- assert report.total_errors == 0
-
class ShortUUIDPaddingTest(unittest.TestCase):
def test_padding(self):