Matej Cepl
6e978d2e57
- Update names and phone numbers for cs_CZ. Thanks @george0st. - Revert "fix type error in pyfloat when max_value is None" from v19.6.2. - Use DE base for de_CH AddressProvider. Thanks @nchiapol. - Fix person Latvian provider. - Add Gender support for Latvian (lv_LV) names. Thanks @OskarsPakers. - Add MAC Address Multicast. Thanks @d3vyce. - fix type error in pyfloat when max_value is None. Thanks @HugoJP1. - Bump actions/checkout from 3 to 4 (#1909). Thanks @dependabot[bot]. - Add addresses for en_BD. Thanks @aamibhoot. - Add color_rgb, color_rgb_float, color_hsv and color_hsl. Thanks @fdemmer. - Add schemes and deep argument to uri method. - Remove spurious space in uk_UA first_name. Thanks @Romissevd. - Add weighting to dynamic providers. Thanks @pauldechorgnat. - Add support for South African Zulu (zu_ZA) names and last names. Thanks @iamkhaya. - Add ja_JP locale for datetime. Thanks @cyanghsieh. - Drop support for Python 3.7 - Drop support for 32 bit systems. - Add elector_code for es_MX SSN provider. Thanks @edgarrmondragon. - Add .optional proxy that may or may not return a fake value. Thanks @ligne. - Add fake automotive vin number function. Thanks @cyanghsieh. - Fix area codes for fr_FR mobile phone numbers. Thanks OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=96
82 lines
2.5 KiB
RPMSpec
82 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-Faker
|
|
#
|
|
# Copyright (c) 2023 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-Faker
|
|
Version: 19.10.0
|
|
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 freezegun}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest >= 6.0.1}
|
|
BuildRequires: %{python_module python-dateutil >= 2.4}
|
|
BuildRequires: %{python_module text-unidecode >= 1.3}
|
|
BuildRequires: %{python_module validators >= 0.13.0}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-python-dateutil >= 2.4
|
|
Requires: python-text-unidecode >= 1.3
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
Obsoletes: python3-fake-factory < %{version}-%{release}
|
|
Provides: python3-fake-factory = %{version}-%{release}
|
|
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
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_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.md README.rst
|
|
%python_alternative %{_bindir}/faker
|
|
%{python_sitelib}/faker
|
|
%{python_sitelib}/Faker-%{version}*-info
|
|
|
|
%changelog
|