SHA256
1
0
forked from pool/python-Faker

Accepting request 685834 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/685834
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Faker?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2019-03-29 19:35:53 +00:00 committed by Git OBS Bridge
commit ae0c7401b0
5 changed files with 58 additions and 8 deletions

View File

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

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

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

13
ipaddress.patch Normal file
View File

@ -0,0 +1,13 @@
Index: Faker-1.0.4/setup.py
===================================================================
--- Faker-1.0.4.orig/setup.py
+++ Faker-1.0.4/setup.py
@@ -78,7 +78,7 @@ setup(
"freezegun==0.3.11",
],
extras_require={
- ':python_version=="2.7"': [
+ ':python_version<"3.3"': [
'ipaddress',
],
},

View File

@ -1,7 +1,37 @@
-------------------------------------------------------------------
Fri Mar 15 13:15:47 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Trim duplicated name from summary.
-------------------------------------------------------------------
Fri Mar 15 12:02:12 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Add patch ipaddress.patch to fix its runtime detection
-------------------------------------------------------------------
Thu Mar 14 14:26:07 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.0.4:
* Various small fixes, see CHANGELOG.rst
- Merge patch faker-32bit.patch
-------------------------------------------------------------------
Tue Mar 12 09:24:13 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Add patch to fix 32bit builds:
* faker-32bit.patch
-------------------------------------------------------------------
Sun Mar 10 10:15:00 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Remove pre-existing bytecode files in the sdist, which were
being included in the runtime package and causing lint warnings
on Leap 42.3 & SLE 12 SP4, and they were breaking tests on Leap 15.
-------------------------------------------------------------------
Thu Feb 14 14:44:47 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.0.10:
- Update to 1.0.2:
* Many changes to list see CHANGELOG.rst
- Run tests

View File

@ -19,19 +19,22 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-Faker
Version: 1.0.2
Version: 1.0.4
Release: 0
Summary: Faker is a Python package that generates fake data
Summary: Python package that generates fake data
License: MIT
Group: Development/Languages/Python
URL: https://github.com/joke2k/faker
Source: https://files.pythonhosted.org/packages/source/F/Faker/Faker-%{version}.tar.gz
Patch0: ipaddress.patch
BuildRequires: %{python_module UkPostcodeParser >= 1.1.1}
BuildRequires: %{python_module email_validator >= 1.0.2}
BuildRequires: %{python_module freezegun >= 0.3.11}
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 random2 >= 1.0.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10}
BuildRequires: %{python_module text-unidecode >= 1.2}
@ -63,8 +66,12 @@ testing, and data anonymization from production services.
%prep
%setup -q -n Faker-%{version}
# do not hardcode pytest version
%patch0 -p1
# Remove pre-existing bytecode files in the sdist
find . -name '*.py[co]' -delete
# do not hardcode versions
sed -i -e 's:"pytest>=3.8.0,<3.9":"pytest>=3.8.0":g' setup.py
sed -i -e 's:==:>=:g' setup.py
%build
%python_build
@ -81,7 +88,7 @@ sed -i -e 's:"pytest>=3.8.0,<3.9":"pytest>=3.8.0":g' setup.py
%python_uninstall_alternative faker
%check
%python_exec setup.py test
%pytest
%files %{python_files}
%license LICENSE.txt