forked from pool/python-python-stdnum
- update to 1.19:
* Add modules for the following number formats: - Tax Registration Number (الرقم الضريبي, Egypt tax number) - Postcode (the Spanish postal code) (thanks Víctor) - NIFp (Numéro d'Identification Fiscale Permanent, Guinea tax number) - BIS (Belgian BIS number) (thanks Jeff Horemans) - Matična številka poslovnega registra (Corporate Registration Number) (thanks Blaž Bregar) - OSS (European VAT on e-Commerce - One Stop Shop) (thanks Sergi Almacellas Abellana) * Extend the validation of the Albanian NIPT * Support different date formats in parsing GS1-128 application identifiers * Add get_county() function to Romanian CNP * Add functionality to get gender from Belgian National Number * Add support for Finland HETU new century indicating signs * Add functionality to get (partial) birth date from Belgian National Number * Extend validation of Canadian SIN (thanks Marcel Lecker) * Fix Belarusian UNP online validation * Various typo and documentation fixes (thanks valeriko, Dimitri Papadopoulos, * Add contribution information to documentation * Test suite improvements (including checking file headers) * Add modules for the following number formats: - NN, NISS (Belgian national number) (thanks Cédric Krier) - CFI (ISO 10962 Classification of Financial Instruments) - Czech bank account number (thanks Petr Přikryl) - NIF, sometimes N.I.F. (Numéro d'Identification Fiscale, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=19
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,18 +15,21 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global modname python-stdnum
|
||||
%{?sle15_python_module_pythons}
|
||||
%define modname python-stdnum
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-%{modname}
|
||||
Version: 1.17
|
||||
Version: 1.19
|
||||
Release: 0
|
||||
Summary: Python module to handle standardized numbers and codes
|
||||
License: LGPL-2.0-or-later
|
||||
URL: https://arthurdejong.org/python-stdnum/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-stdnum/%{modname}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Suggests: python-PySimpleSOAP
|
||||
@@ -45,10 +48,10 @@ parsing, validation, formatting or conversion functions.
|
||||
%setup -q -n %{modname}-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -58,6 +61,7 @@ export LANG=en_US.UTF-8
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
%doc NEWS ChangeLog README.md
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/stdnum
|
||||
%{python_sitelib}/python_stdnum-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user