Accepting request 676158 from devel:languages:python

- Update to 1.0.10:
  * Many changes to list see CHANGELOG.rst
- Run tests

OBS-URL: https://build.opensuse.org/request/show/676158
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Faker?expand=0&rev=8
This commit is contained in:
Stephan Kulow 2019-02-24 16:14:40 +00:00 committed by Git OBS Bridge
commit f4c434bca8
4 changed files with 27 additions and 20 deletions

View File

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

3
Faker-1.0.2.tar.gz Normal file
View File

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

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 14 14:44:47 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.0.10:
* Many changes to list see CHANGELOG.rst
- Run tests
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 4 12:47:53 UTC 2018 - Matej Cepl <mcepl@suse.com> Tue Dec 4 12:47:53 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-Faker # spec file for package python-Faker
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# 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
@ -18,35 +18,35 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python %define oldpython python
%bcond_with test
Name: python-Faker Name: python-Faker
Version: 0.8.10 Version: 1.0.2
Release: 0 Release: 0
Summary: Faker is a Python package that generates fake data Summary: Faker is a Python package that generates fake data
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/joke2k/faker URL: https://github.com/joke2k/faker
Source: https://files.pythonhosted.org/packages/source/F/Faker/Faker-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/F/Faker/Faker-%{version}.tar.gz
BuildRequires: %{python_module UkPostcodeParser >= 1.1.1}
BuildRequires: %{python_module email_validator >= 1.0.2}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module more-itertools}
BuildRequires: %{python_module pytest >= 3.8.0}
BuildRequires: %{python_module python-dateutil >= 2.4}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10}
BuildRequires: %{python_module text-unidecode >= 1.2}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-ipaddress
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-email_validator >= 1.0.2
Requires: python-python-dateutil >= 2.4 Requires: python-python-dateutil >= 2.4
Requires: python-six Requires: python-six >= 1.10
Requires: python-text-unidecode Requires: python-text-unidecode >= 1.2
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%if %{with test} BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module email_validator >= 1.0.2}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module python-dateutil >= 2.4}
BuildRequires: %{python_module six}
BuildRequires: %{python_module text-unidecode}
BuildRequires: python-ipaddress
%endif
%ifpython2 %ifpython2
Recommends: python-ipaddress Requires: python-ipaddress
Obsoletes: %{oldpython}-fake-factory < %{version} Obsoletes: %{oldpython}-fake-factory < %{version}
Provides: %{oldpython}-fake-factory = %{version} Provides: %{oldpython}-fake-factory = %{version}
%endif %endif
@ -63,6 +63,8 @@ testing, and data anonymization from production services.
%prep %prep
%setup -q -n Faker-%{version} %setup -q -n Faker-%{version}
# do not hardcode pytest version
sed -i -e 's:"pytest>=3.8.0,<3.9":"pytest>=3.8.0":g' setup.py
%build %build
%python_build %python_build
@ -78,10 +80,8 @@ testing, and data anonymization from production services.
%postun %postun
%python_uninstall_alternative faker %python_uninstall_alternative faker
%if %{with test}
%check %check
%python_exec setup.py test %python_exec setup.py test
%endif
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt