From e799c0c1baab1bb26f453838dda1b9c84aac2ed0c3f3715648b017b8759162c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 15 Mar 2020 09:46:54 +0000 Subject: [PATCH] - Update to 0.5.3: * no changelog - Remove not needed testsuite-fix.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-parse_type?expand=0&rev=7 --- parse_type-0.5.2.tar.gz | 3 --- python-parse_type.changes | 7 +++++++ python-parse_type.spec | 31 +++++++++++++++---------------- testsuite-fix.patch | 18 ------------------ v0.5.3.tar.gz | 3 +++ 5 files changed, 25 insertions(+), 37 deletions(-) delete mode 100644 parse_type-0.5.2.tar.gz delete mode 100644 testsuite-fix.patch create mode 100644 v0.5.3.tar.gz diff --git a/parse_type-0.5.2.tar.gz b/parse_type-0.5.2.tar.gz deleted file mode 100644 index d233a44..0000000 --- a/parse_type-0.5.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f690b18d35048c15438d6d0571f9045cffbec5907e0b1ccf006f889e3a38c0b -size 272082 diff --git a/python-parse_type.changes b/python-parse_type.changes index d9d0d75..1541642 100644 --- a/python-parse_type.changes +++ b/python-parse_type.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Mar 15 09:32:31 UTC 2020 - Tomáš Chvátal + +- Update to 0.5.3: + * no changelog +- Remove not needed testsuite-fix.patch + ------------------------------------------------------------------- Tue Aug 27 13:57:32 UTC 2019 - Marketa Calabkova diff --git a/python-parse_type.spec b/python-parse_type.spec index 938e2bb..6bb5135 100644 --- a/python-parse_type.spec +++ b/python-parse_type.spec @@ -1,7 +1,7 @@ # # spec file for package python-parse_type # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -17,29 +17,26 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-parse_type -Version: 0.5.2 +Version: 0.5.3 Release: 0 Summary: Extension to the parse module License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/jenisys/parse_type -Source: https://files.pythonhosted.org/packages/source/p/parse_type/parse_type-%{version}.tar.gz -Patch0: testsuite-fix.patch -BuildRequires: %{python_module devel} +Source: https://github.com/jenisys/parse_type/archive/v%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: python2-enum34 +%if %{with python2} +BuildRequires: python-enum34 +%endif Requires: python-parse >= 1.12.0 Requires: python-six >= 1.11 -Suggests: python-coverage -Suggests: python-enum34 -Suggests: python-ordereddict -Suggests: python-pytest >= 3.0 -Suggests: python-pytest-cov -Suggests: python-sphinx >= 1.2 -Suggests: python-tox +%ifpython2 +Recommends: python-enum34 +%endif BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module parse >= 1.12.0} @@ -62,10 +59,12 @@ the following features: %prep %setup -q -n parse_type-%{version} -%patch0 -p1 +# no extra pytest options are needed +rm pytest.ini # Remove bundled parse.py -rm -fv parse_type/parse.py +rm parse_type/parse.py +rm tests/test_parse.py %build %python_build @@ -75,7 +74,7 @@ rm -fv parse_type/parse.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest -k 'not (test_parse_with_many0_and_unnamed_fields or test_parse_with_many_and_unnamed_fields or test_parse_with_optional_and_unnamed_fields or test_pm_overflow_issue16)' +%pytest %files %{python_files} %license LICENSE diff --git a/testsuite-fix.patch b/testsuite-fix.patch deleted file mode 100644 index eb14e0d..0000000 --- a/testsuite-fix.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- a/tests/test_parse.py -+++ b/tests/test_parse.py -@@ -22,14 +22,7 @@ from datetime import datetime, time - import re - - # -- EXTENSION: --import os --PARSE_MODULE = os.environ.get("PARSE_TYPE_PARSE_MODULE", "parse_type.parse") --if PARSE_MODULE.startswith("parse_type"): -- # -- USE VENDOR MODULE: parse_type.parse (probably older that original) -- from parse_type import parse --else: -- # -- USE ORIGINAL MODULE: parse -- import parse -+import parse - # -- EXTENSION-END - - diff --git a/v0.5.3.tar.gz b/v0.5.3.tar.gz new file mode 100644 index 0000000..68abe9b --- /dev/null +++ b/v0.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04f640a7c76581c024d1f7fa474931e1693d94f9c92cc23f5d894e10c6c2c2c2 +size 269644