372ed8af69
* Fix generation of names ending with spaces. Thanks @edomora97. * Add relative frequencies for japanese last names. Thanks @TianyiShi2001. * Add Swiss bank provider locales. Thanks @mondeja. * Split first names into male and female on pt_PT provider. Thanks @gplgps. * Geo provider added for tr_TR locale. Thanks @iamnotagentleman. * Add sk_SK Job provider. Thanks @pipozzz. * Add date_time provider for pt_PT. Thanks @gplgps. * Add .unique() for unique values. Thanks @coiax. * Add automotive provider for tr_TR. Thanks @molcay. * Add province list and add 2 new district to ne_NP. Thanks @iamsauravsharma. * Add Currency provider for sv_SE. Thanks @frangiz. * Add pt_PT credit card provider. Thanks @rubenandre. * Added Company Provider for tr_TR locale. Thanks @iamnotagentleman. * Add job providers for tr_TR. Thanks @molcay. * Implement color provider for sk_SK locale. Thanks @pipozzz. * Fix hu_HU color provider inheritance. Thanks @n1ngu. * Bigger zipcode ranges for VA, TX and MD in en_US. Thanks @Antetokounpo. * Add new style pt_PT automotive plates. Thanks @gplgps. * Remove duplicate jobs from the pt_PT provider (#1282). Thanks @gplgps. * Use "Belarus" instead of "Vitryssland" for sv_SE. Thanks @Majsvaffla. * Added bank provider for tr_TR locale. Thanks @iamnotagentleman. * Improve VAT generation for IT provider. Thanks @LordGordonQ. * Use non-zero number for first digit of Swedish postal codes. Thanks @Majsvaffla. * Add es_ES autonomous communities (Spanish regions). Thanks @mondeja. * Add JSON and Fixed Width argument group and parser support. Thanks @johnbrandborg. * Update zh_CN ssn provider to support gender. Thanks @mapoor. * Fix typo in de_DE job provider. Thanks @datadominik. * or_IN Odia person's name added. Thanks @soumendrak. * Remove datetime_safe shim subclass in favor of native Python datetime.datetime. Thanks @samcrang. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=49
89 lines
2.8 KiB
RPMSpec
89 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package python-Faker
|
|
#
|
|
# 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
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define oldpython python
|
|
%global skip_python2 1
|
|
Name: python-Faker
|
|
Version: 4.14.2
|
|
Release: 0
|
|
Summary: Python package that generates fake data
|
|
License: MIT
|
|
URL: https://github.com/joke2k/faker
|
|
Source: https://files.pythonhosted.org/packages/source/F/Faker/Faker-%{version}.tar.gz
|
|
BuildRequires: %{python_module UkPostcodeParser >= 1.1.1}
|
|
BuildRequires: %{python_module freezegun}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module pytest >= 3.8.0}
|
|
BuildRequires: %{python_module pytest-runner}
|
|
BuildRequires: %{python_module python-dateutil >= 2.4}
|
|
BuildRequires: %{python_module random2}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module six >= 1.10}
|
|
BuildRequires: %{python_module text-unidecode >= 1.3}
|
|
BuildRequires: %{python_module validators >= 0.13.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-python-dateutil >= 2.4
|
|
Requires: python-setuptools
|
|
Requires: python-six >= 1.10
|
|
Requires: python-text-unidecode >= 1.3
|
|
Requires(post): update-alternatives
|
|
Requires(postun): update-alternatives
|
|
Obsoletes: python3-fake-factory < %{version}
|
|
Provides: python3-fake-factory = %{version}
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Faker is a Python package that generates fake data. It helps with
|
|
database bootstrapping, creating XML documents, persistence stress
|
|
testing, and data anonymization from production services.
|
|
|
|
%prep
|
|
%setup -q -n Faker-%{version}
|
|
# Remove pre-existing bytecode files in the sdist
|
|
find . -name '*.py[co]' -delete
|
|
# do not hardcode versions
|
|
sed -i -e 's:==:>=:g' setup.py
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/faker
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%post
|
|
%python_install_alternative faker
|
|
|
|
%postun
|
|
%python_uninstall_alternative faker
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE.txt
|
|
%doc CHANGELOG.rst README.rst
|
|
%python_alternative %{_bindir}/faker
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|