From 1e0a991b2f040fa1411f0b72db08c0f38cb2b8ba Mon Sep 17 00:00:00 2001 From: Juan Orti Alcaine Date: Aug 24 2019 20:14:56 +0000 Subject: Add patch to revert the switch to text-unidecode --- diff --git a/faker-2.0.1-revert_switch_to_text_unidecode.patch b/faker-2.0.1-revert_switch_to_text_unidecode.patch new file mode 100644 index 0000000..b83bff0 --- /dev/null +++ b/faker-2.0.1-revert_switch_to_text_unidecode.patch @@ -0,0 +1,49 @@ +From 1c12e96b4bc0a88fe87487d3958a18faaf08311f Mon Sep 17 00:00:00 2001 +From: Juan Orti Alcaine +Date: Sat, 24 Aug 2019 21:58:58 +0200 +Subject: [PATCH] Revert "Close #628. Switch to text-unidecode" + +This reverts commit e32a0cd73d7e1f42e12593bf6024ba7607454f54. +--- + faker/providers/internet/__init__.py | 4 ++-- + setup.py | 2 +- + 2 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/faker/providers/internet/__init__.py b/faker/providers/internet/__init__.py +index 91bc9f2..ca9e2a0 100644 +--- a/faker/providers/internet/__init__.py ++++ b/faker/providers/internet/__init__.py +@@ -1,7 +1,7 @@ + # coding=utf-8 + from __future__ import unicode_literals + +-from text_unidecode import unidecode ++import unidecode + + from .. import BaseProvider + +@@ -123,7 +123,7 @@ class Provider(BaseProvider): + for search, replace in self.replacements: + string = string.replace(search, replace) + +- string = unidecode(string) ++ string = unidecode.unidecode(string) + return string + + @lowercase +diff --git a/setup.py b/setup.py +index e0ef8ee..65aabfd 100644 +--- a/setup.py ++++ b/setup.py +@@ -66,7 +66,7 @@ setup( + install_requires=[ + "python-dateutil>=2.4", + "six>=1.10", +- "text-unidecode==1.2", ++ "unidecode", + ], + tests_require=[ + "validators>=0.13.0", +-- +2.21.0 + diff --git a/python-faker.spec b/python-faker.spec index 7488b58..34fb091 100644 --- a/python-faker.spec +++ b/python-faker.spec @@ -7,12 +7,13 @@ service, Faker is for you. Name: python-%{srcname} Version: 2.0.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Faker is a Python package that generates fake data for you License: MIT URL: https://faker.readthedocs.io Source: https://github.com/joke2k/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz +Patch0: faker-2.0.1-revert_switch_to_text_unidecode.patch BuildArch: noarch BuildRequires: python3-devel @@ -33,7 +34,7 @@ Summary: Documentation for %{name} %description doc %_description %prep -%autosetup -n %{srcname}-%{version} +%autosetup -p1 -n %{srcname}-%{version} %build %py3_build @@ -52,6 +53,9 @@ Summary: Documentation for %{name} %doc README.rst CHANGELOG.rst CONTRIBUTING.rst docs/*.rst %changelog +* Sat Aug 24 2019 Juan Orti Alcaine - 2.0.1-2 +- Add patch to revert the switch to text-unidecode + * Sat Aug 24 2019 Juan Orti Alcaine - 2.0.1-1 - Version 2.0.1