From 20c937c01a5ff358f3e985bbb508a28ea8b8964fdabb978e655eb6308fecd7bb Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 23 Jan 2024 21:48:02 +0000 Subject: [PATCH] =?UTF-8?q?-=20update=20to=201.19:=20=20=20*=20Add=20modul?= =?UTF-8?q?es=20for=20the=20following=20number=20formats:=20=20=20=20=20-?= =?UTF-8?q?=20Tax=20Registration=20Number=20(=D8=A7=D9=84=D8=B1=D9=82?= =?UTF-8?q?=D9=85=20=D8=A7=D9=84=D8=B6=D8=B1=D9=8A=D8=A8=D9=8A,=20Egypt=20?= =?UTF-8?q?tax=20number)=20=20=20=20=20-=20Postcode=20(the=20Spanish=20pos?= =?UTF-8?q?tal=20code)=20(thanks=20V=C3=ADctor)=20=20=20=20=20-=20NIFp=20(?= =?UTF-8?q?Num=C3=A9ro=20d'Identification=20Fiscale=20Permanent,=20Guinea?= =?UTF-8?q?=20=20=20=20=20=20=20tax=20number)=20=20=20=20=20-=20BIS=20(Bel?= =?UTF-8?q?gian=20BIS=20number)=20(thanks=20Jeff=20Horemans)=20=20=20=20?= =?UTF-8?q?=20-=20Mati=C4=8Dna=20=C5=A1tevilka=20poslovnega=20registra=20(?= =?UTF-8?q?Corporate=20=20=20=20=20=20=20Registration=20Number)=20(thanks?= =?UTF-8?q?=20Bla=C5=BE=20Bregar)=20=20=20=20=20-=20OSS=20(European=20VAT?= =?UTF-8?q?=20on=20e-Commerce=20-=20One=20Stop=20Shop)=20(thanks=20=20=20?= =?UTF-8?q?=20=20=20=20Sergi=20Almacellas=20Abellana)=20=20=20*=20Extend?= =?UTF-8?q?=20the=20validation=20of=20the=20Albanian=20NIPT=20=20=20*=20Su?= =?UTF-8?q?pport=20different=20date=20formats=20in=20parsing=20GS1-128=20a?= =?UTF-8?q?pplication=20=20=20=20=20identifiers=20=20=20*=20Add=20get=5Fco?= =?UTF-8?q?unty()=20function=20to=20Romanian=20CNP=20=20=20*=20Add=20funct?= =?UTF-8?q?ionality=20to=20get=20gender=20from=20Belgian=20National=20Numb?= =?UTF-8?q?er=20=20=20*=20Add=20support=20for=20Finland=20HETU=20new=20cen?= =?UTF-8?q?tury=20indicating=20signs=20=20=20*=20Add=20functionality=20to?= =?UTF-8?q?=20get=20(partial)=20birth=20date=20from=20Belgian=20=20=20=20?= =?UTF-8?q?=20National=20Number=20=20=20*=20Extend=20validation=20of=20Can?= =?UTF-8?q?adian=20SIN=20(thanks=20Marcel=20Lecker)=20=20=20*=20Fix=20Bela?= =?UTF-8?q?rusian=20UNP=20online=20validation=20=20=20*=20Various=20typo?= =?UTF-8?q?=20and=20documentation=20fixes=20(thanks=20valeriko,=20=20=20?= =?UTF-8?q?=20=20Dimitri=20Papadopoulos,=20=20=20*=20Add=20contribution=20?= =?UTF-8?q?information=20to=20documentation=20=20=20*=20Test=20suite=20imp?= =?UTF-8?q?rovements=20(including=20checking=20file=20headers)=20=20=20*?= =?UTF-8?q?=20Add=20modules=20for=20the=20following=20number=20formats:=20?= =?UTF-8?q?=20=20=20=20-=20NN,=20NISS=20(Belgian=20national=20number)=20(t?= =?UTF-8?q?hanks=20C=C3=A9dric=20Krier)=20=20=20=20=20-=20CFI=20(ISO=20109?= =?UTF-8?q?62=20Classification=20of=20Financial=20Instruments)=20=20=20=20?= =?UTF-8?q?=20-=20Czech=20bank=20account=20number=20(thanks=20Petr=20P?= =?UTF-8?q?=C5=99ikryl)=20=20=20=20=20-=20NIF,=20sometimes=20N.I.F.=20(Num?= =?UTF-8?q?=C3=A9ro=20d'Identification=20Fiscale,?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-stdnum?expand=0&rev=19 --- python-python-stdnum.changes | 71 +++++++++++++++++++++++++++++++++++- python-python-stdnum.spec | 18 +++++---- python-stdnum-1.17.tar.gz | 3 -- python-stdnum-1.19.tar.gz | 3 ++ 4 files changed, 83 insertions(+), 12 deletions(-) delete mode 100644 python-stdnum-1.17.tar.gz create mode 100644 python-stdnum-1.19.tar.gz diff --git a/python-python-stdnum.changes b/python-python-stdnum.changes index 4efe9a9..da05656 100644 --- a/python-python-stdnum.changes +++ b/python-python-stdnum.changes @@ -1,3 +1,70 @@ +------------------------------------------------------------------- +Tue Jan 23 21:40:07 UTC 2024 - Dirk Müller + +- 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, + Algeria tax number) + - V-number (Vinnutal, Faroe Islands tax number) (thanks + Leandro Regueiro) + - TIN (Taxpayer Identification Number, Ghana tax number) + - PIN (Personal Identification Number, Kenya tax number) + - ICE (Identifiant Commun de l’Entreprise, التعريف الموحد + - PIB (Poreski Identifikacioni Broj, Montenegro tax number) + - ЕДБ (Едниствен Даночен Број, North Macedonia tax number) + - CNIC number (Pakistani Computerised National Identity + - Enotna matična številka občana (Unique Master Citizen + - MF (Matricule Fiscal, Tunisia tax number) (thanks Leandro + Regueiro) + * Fix disabling check digit validation of Mexican CURP (thanks + guyskk) + * Support special validation of La Post SIRET (thanks BIGBen99 + and Cédric Krier) + * Fix support for "I" and "O" in CUSIP number (thanks Thomas + Kavanagh) + * Calculate ISO 7064 Mod 97, 10 check digits in the range 02-98 + for IBAN + * Fix German OffeneRegister lookups (change of URL and of data + structure) + * Add extra court alias for Berlin in German + Handelsregisternummer (thanks Romuald R) + * Ensure certificate for the Belarus VAT number check_nalog() + lookup is included + * Support parsing incomplete dates in GS1-128 (thanks Alexis de + Lattre) + * Improve validation of CAS Registry Number + * Typo fixes (thanks Vladimir and Dimitri Papadopoulos) + * Add a check_uid() function to the stdnum.ch.uid module + * All validation exceptions should now inherit from ValueError + * Switch from nose to pytest as test runner + ------------------------------------------------------------------- Tue Jan 23 16:23:25 UTC 2024 - Axel Braun @@ -141,7 +208,7 @@ Fri Sep 23 10:11:07 UTC 2016 - jengelh@inai.de ------------------------------------------------------------------- Mon Jul 4 07:15:17 UTC 2016 - axel.braun@gmx.de -- update to version 1.3 +- update to version 1.3 ------------------------------------------------------------------- Wed Jun 29 07:07:28 UTC 2016 - axel.braun@gmx.de @@ -152,5 +219,5 @@ Wed Jun 29 07:07:28 UTC 2016 - axel.braun@gmx.de Mon Jan 4 20:12:58 UTC 2016 - axel.braun@gmx.de - Version 1.2 - initial OBS build + initial OBS build diff --git a/python-python-stdnum.spec b/python-python-stdnum.spec index bfd30ff..b0e7d94 100644 --- a/python-python-stdnum.spec +++ b/python-python-stdnum.spec @@ -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 diff --git a/python-stdnum-1.17.tar.gz b/python-stdnum-1.17.tar.gz deleted file mode 100644 index 628c6c0..0000000 --- a/python-stdnum-1.17.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:374e2b5e13912ccdbf50b0b23fca2c3e0531174805c32d74e145f37756328340 -size 1068804 diff --git a/python-stdnum-1.19.tar.gz b/python-stdnum-1.19.tar.gz new file mode 100644 index 0000000..82f2639 --- /dev/null +++ b/python-stdnum-1.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:133ec82f56390ea74c190569e98f2fb14b869808b1d54785708f22d0fead8b3f +size 1134517