diff --git a/Faker-1.0.2.tar.gz b/Faker-1.0.2.tar.gz deleted file mode 100644 index 2ec0ad1..0000000 --- a/Faker-1.0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d871ea315b2dcba9138b8344f2c131a76ac62d6227ca39f69b0c889fec97376c -size 933017 diff --git a/Faker-1.0.4.tar.gz b/Faker-1.0.4.tar.gz new file mode 100644 index 0000000..25ad7d8 --- /dev/null +++ b/Faker-1.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:745ac8b9c9526e338696e07b7f2e206e5e317e5744e22fdd7c2894bf19af41f1 +size 803706 diff --git a/ipaddress.patch b/ipaddress.patch new file mode 100644 index 0000000..51858fd --- /dev/null +++ b/ipaddress.patch @@ -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', + ], + }, diff --git a/python-Faker.changes b/python-Faker.changes index eac3dff..f8f7c2a 100644 --- a/python-Faker.changes +++ b/python-Faker.changes @@ -1,7 +1,37 @@ +------------------------------------------------------------------- +Fri Mar 15 13:15:47 UTC 2019 - Jan Engelhardt + +- Trim duplicated name from summary. + +------------------------------------------------------------------- +Fri Mar 15 12:02:12 UTC 2019 - Tomáš Chvátal + +- Add patch ipaddress.patch to fix its runtime detection + +------------------------------------------------------------------- +Thu Mar 14 14:26:07 UTC 2019 - Tomáš Chvátal + +- 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 + +- Add patch to fix 32bit builds: + * faker-32bit.patch + +------------------------------------------------------------------- +Sun Mar 10 10:15:00 UTC 2019 - John Vandenberg + +- 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 -- Update to 1.0.10: +- Update to 1.0.2: * Many changes to list see CHANGELOG.rst - Run tests diff --git a/python-Faker.spec b/python-Faker.spec index 163ea8e..a360f04 100644 --- a/python-Faker.spec +++ b/python-Faker.spec @@ -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