SHA256
1
0
forked from pool/python-Faker
python-Faker/python-Faker.spec
Dirk Mueller 9dd3b5c0bb - update to 21.0.0:
* Fix: random sign in `pyfloat` when `positive=False`.
  * Add company provider and NUSS for `es_ES` locale.
  * Add official support for Python 3.12.
  * Make `unix_time` always return floats.
  * Fix `pydecimal` crash on float `min_value` or `max_value`.
  * Fix type hint for `unix_time`.
  * Support platform-specific second precision. Thanks @cknv.
  * Add more entries in `cs_CZ`'s geo
  * Fix latest days of the month as birth day in italian SSN.
  * Add `geo` provider for `cs_CZ`
  * Fix handling for finnish ssn where `min_age` and `max_age`
    are the same
  * Add a few street names to `cs_CZ`
  * Add words to lorem for `cs_CZ`
  * Add color for `cs_CZ`
  distribution anymore
  * Add banks for en_IN locale. Thanks @ChiragMangukia.
- Update to v15.1.1
  * automotive: add de_CH license plates. Thanks @gsilvan.
- Update to 6.3.0:
    phone number format for th_TH. Thanks @bact.
  * Remove datetime_safe shim subclass in favor of native Python datetime.datetime. Thanks @samcrang.
  * Breaking change: Only allow providers to use OrderedDict s, to
  * Remove some validations from Faker and delegate it to an
  * Add min and max values for ``pyfloat`` and ``pydecimal``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Faker?expand=0&rev=98
2023-12-16 21:18:01 +00:00

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: 21.0.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