15
0

Accepting request 785243 from devel:languages:python

- Update to 0.5.3:
  * no changelog
- Remove not needed testsuite-fix.patch

OBS-URL: https://build.opensuse.org/request/show/785243
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-parse_type?expand=0&rev=3
This commit is contained in:
2020-03-16 09:19:47 +00:00
committed by Git OBS Bridge
5 changed files with 25 additions and 37 deletions

View File

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

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Mar 15 09:32:31 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 0.5.3:
* no changelog
- Remove not needed testsuite-fix.patch
-------------------------------------------------------------------
Tue Aug 27 13:57:32 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>

View File

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

View File

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

3
v0.5.3.tar.gz Normal file
View File

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