diff --git a/ChangeLog b/ChangeLog index 130c4586..7489723e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,173 @@ +2021-01-11 Arthur de Jong + + * [755eee7] .travis.yml: Simplify Travis matrix + + This also ensures that supported Python interpreters are output + in order. + +2021-01-10 Arthur de Jong + + * [a0c62ee] stdnum/at/postleitzahl.dat, stdnum/be/banks.dat, + stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/gs1_ai.dat, + stdnum/iban.dat, stdnum/imsi.dat, stdnum/isbn.dat, + stdnum/my/bp.dat, stdnum/nz/banks.dat, stdnum/oui.dat, + update/at_postleitzahl.py, update/my_bp.py, update/nz_banks.py: + Update database files + +2021-01-10 Arthur de Jong + + * [df0623b] stdnum/by/unp.py, stdnum/do/ncf.py, stdnum/imsi.py, + stdnum/isbn.py, stdnum/meid.py, tox.ini: Drop pinning of isort + now flake8-isort has been fixed + + This changes a few inline imports in the code to pass with the + new isort. + + Reverts 291b831 + +2021-01-10 Arthur de Jong + + * [b202eee] stdnum/my/nric.py: Fix typo + +2021-01-10 Arthur de Jong + + * [7e86331] setup.py: Add project URLs for PyPI + +2020-10-25 Leandro Regueiro + + * [126496c] stdnum/ua/rntrc.py, tests/test_ua_rntrc.doctest: + Add support for Ukraine РНОКПП number + + Closes https://github.com/arthurdejong/python-stdnum/pull/242 + Closes https://github.com/arthurdejong/python-stdnum/issues/117 + +2020-10-25 Leandro Regueiro + + * [b7b2af8] stdnum/ua/__init__.py, stdnum/ua/edrpou.py, + tests/test_ua_edrpou.doctest: Add support for Ukraine ЄДРПОУ + number + + Closes https://github.com/arthurdejong/python-stdnum/pull/242 + Closes https://github.com/arthurdejong/python-stdnum/issues/117 + +2021-01-04 Viggo de Vries + + * [0427b01] stdnum/eu/vat.py, tests/test_eu_vat.doctest, + tests/test_gb_vat.doctest: Remove GB from EU member states + + Closes https://github.com/arthurdejong/python-stdnum/pull/246 + +2021-01-10 Arthur de Jong + + * [2f2c742] .travis.yml, setup.py, tox.ini: Add support for + Python 3.9 + + This switches Travis tests to bionic by default. + +2021-01-10 Arthur de Jong + + * [2046f51] stdnum/damm.py, stdnum/eu/at_02.py, stdnum/gs1_128.py, + stdnum/iso7064/mod_11_10.py, stdnum/iso7064/mod_11_2.py, + stdnum/iso7064/mod_37_2.py, stdnum/iso7064/mod_37_36.py, + stdnum/iso7064/mod_97_10.py, stdnum/luhn.py, stdnum/util.py, + stdnum/verhoeff.py: Fix flake8 blind except Exception error + +2021-01-04 Viggo de Vries + + * [cc3a970] stdnum/au/__init__.py: Use ABN as Australian VAT number + + See https://www.ato.gov.au/Business/GST/Tax-invoices/ + + Closes https://github.com/arthurdejong/python-stdnum/pull/246 + +2021-01-02 Arthur de Jong + + * [c74e322] stdnum/vatin.py, tests/test_vatin.doctest: Support + VAT numbers that are only valid with country prefix + + The Swish VAT number has the CH prefix embedded as a required + part of the number. This ensures that the international VAT + number module also supports that. + + Closes https://github.com/arthurdejong/python-stdnum/issues/245 + Fixes ff188bd + +2020-10-27 Matthias Schmid, M.Sc + + * [5082af4] stdnum/li/__init__.py, stdnum/li/peid.py, + tests/test_li_peid.doctest: Add Liechtenstein + Personenidentifikationsnummer + + Closes https://github.com/arthurdejong/python-stdnum/pull/241 + Closes https://github.com/arthurdejong/python-stdnum/issues/125 + +2020-10-02 Jonas Geuens + + * [3a592e4] stdnum/be/vat.py, tests/test_be_vat.doctest: Expanded + validation for BE VAT numbers + + Specifically invalidated all-zero numbers + + Closes https://github.com/arthurdejong/python-stdnum/pull/240 + +2020-11-01 Arthur de Jong + + * [c5eb2d8] stdnum/eu/vat.py, stdnum/ro/cf.py, + tests/test_eu_vat.doctest: Retain RO prefix in Romanian VAT numbers + + This does not strip the RO prefix from Romanian VAT numbers to be + able to keep the distinction between a CUI/CIF that is registered + for VAT (which commonly has the RO prefix) and those that don't. + + Closes https://github.com/arthurdejong/python-stdnum/issues/231 + +2020-11-01 Arthur de Jong + + * [1f6c77f] stdnum/ro/cnp.py, stdnum/ro/onrc.py: Minor updates + +2020-11-01 Arthur de Jong + + * [e0417f6] stdnum/ro/cf.py, stdnum/ro/cui.py: Add Romanian + CUI/CIF number + + This module separates the validation of numbers assigned to + companies (CUI or CIF) of those assigned to natural persons (CNP). + +2020-09-19 Arthur de Jong + + * [19d3f70] stdnum/eu/vat.py: Make list of EU member states list + of public API + + This provides stdnum.eu.vat.MEMBER_STATES. Note that Greece is + listed with a country code of "gr" while the prefix used in VAT + numbers is "el". + + Closes https://github.com/arthurdejong/python-stdnum/issues/238 + +2020-09-04 Arthur de Jong + + * [992dc20] online_check/check.js, + online_check/jquery-1.7.1.js, online_check/jquery-1.7.1.min.js, + online_check/jquery-3.5.1.js, online_check/jquery-3.5.1.min.js, + online_check/jquery-3.5.1.min.map, online_check/template.html: + Upgrade jQuery to 3.5.1 + + This also runs eslint over check.js and fixes an issue from + the upgrade. + +2020-08-09 Arthur de Jong + + * [3373938] ChangeLog, NEWS, README, docs/index.rst, + docs/stdnum.by.unp.rst, docs/stdnum.cn.uscc.rst, + docs/stdnum.gb.utr.rst, docs/stdnum.gs1_128.rst, + docs/stdnum.id.npwp.rst, docs/stdnum.il.hp.rst, + docs/stdnum.it.aic.rst, docs/stdnum.kr.brn.rst, + docs/stdnum.ro.onrc.rst, docs/stdnum.sg.uen.rst, + docs/stdnum.sv.nit.rst, docs/stdnum.tw.ubn.rst, + docs/stdnum.vatin.rst, docs/stdnum.vn.mst.rst, + docs/stdnum.za.idnr.rst, stdnum/__init__.py: Get files ready + for 1.14 release + 2020-08-09 Arthur de Jong * [40fcc24] stdnum/be/banks.dat, stdnum/cn/loc.dat, diff --git a/NEWS b/NEWS index ccd5d8a6..999ca43a 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,24 @@ +changes from 1.14 to 1.15 +------------------------- + +* Add modules for the following number formats: + + - CUI or CIF (Codul Unic de Înregistrare, Romanian company identifier) + - PEID (Liechtenstein tax code for individuals and entities) + (thanks Matthias Schmid) + - ЄДРПОУ, EDRPOU (Identifier for enterprises and organizations in Ukraine) + (thanks Leandro Regueiro) + - РНОКПП, RNTRC (Individual taxpayer registration number in Ukraine) + (thanks Leandro Regueiro) + +* Make list of EU member states part of public API +* Retain RO prefix in Romanian VAT numbers +* Support international VAT numbers that are only valid with country prefix +* Expanded validation for Belgian VAT numbers +* Use ABN as Australian VAT number +* Remove GB from EU member states + + changes from 1.13 to 1.14 ------------------------- diff --git a/README b/README index b472833f..c0953cf9 100644 --- a/README +++ b/README @@ -137,6 +137,7 @@ Currently this package supports the following formats: * BRN (사업자 등록 번호, South Korea Business Registration Number) * RRN (South Korean resident registration number) * LEI (Legal Entity Identifier) + * PEID (Liechtenstein tax code for individuals and entities) * Asmens kodas (Lithuanian, personal numbers) * PVM (Pridėtinės vertės mokestis mokėtojo kodas, Lithuanian VAT number) * TVA (taxe sur la valeur ajoutée, Luxembourgian VAT number) @@ -172,6 +173,7 @@ Currently this package supports the following formats: * RUC number (Registro Único de Contribuyentes, Paraguay tax number) * CF (Cod de înregistrare în scopuri de TVA, Romanian VAT number) * CNP (Cod Numeric Personal, Romanian Numerical Personal Code) + * CUI or CIF (Codul Unic de Înregistrare, Romanian company identifier) * ONRC (Ordine din Registrul Comerţului, Romanian Trade Register identifier) * PIB (Poreski Identifikacioni Broj, Serbian tax identification number) * ИНН (Идентификационный номер налогоплательщика, Russian tax identifier) @@ -187,6 +189,8 @@ Currently this package supports the following formats: * T.C. Kimlik No. (Turkish personal identification number) * VKN (Vergi Kimlik Numarası, Turkish tax identification number) * UBN (Unified Business Number, 統一編號, Taiwanese tax number) + * ЄДРПОУ, EDRPOU (Identifier for enterprises and organizations in Ukraine) + * РНОКПП, RNTRC (Individual taxpayer registration number in Ukraine) * ATIN (U.S. Adoption Taxpayer Identification Number) * EIN (U.S. Employer Identification Number) * ITIN (U.S. Individual Taxpayer Identification Number) @@ -255,7 +259,7 @@ also work with older versions of Python. Copyright --------- -Copyright (C) 2010-2020 Arthur de Jong and others +Copyright (C) 2010-2021 Arthur de Jong and others This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public diff --git a/docs/conf.py b/docs/conf.py index 6c8e4a24..5df4a754 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -94,6 +94,8 @@ # Automatically generate stub pages for autosummary entries. autosummary_generate = True +# Autosummary overwrites existing files by generated stub pages. +autosummary_generate_overwrite = False # -- Options for HTML output --------------------------------------------------- diff --git a/docs/index.rst b/docs/index.rst index 959e7817..97c62c87 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -235,6 +235,7 @@ Available formats kr.brn kr.rrn lei + li.peid lt.asmens lt.pvm lu.tva @@ -270,6 +271,7 @@ Available formats py.ruc ro.cf ro.cnp + ro.cui ro.onrc rs.pib ru.inn @@ -285,6 +287,8 @@ Available formats tr.tckimlik tr.vkn tw.ubn + ua.edrpou + ua.rntrc us.atin us.ein us.itin diff --git a/docs/stdnum.li.peid.rst b/docs/stdnum.li.peid.rst new file mode 100644 index 00000000..70ec351f --- /dev/null +++ b/docs/stdnum.li.peid.rst @@ -0,0 +1,5 @@ +stdnum.li.peid +============== + +.. automodule:: stdnum.li.peid + :members: diff --git a/docs/stdnum.ro.cui.rst b/docs/stdnum.ro.cui.rst new file mode 100644 index 00000000..e46aa91c --- /dev/null +++ b/docs/stdnum.ro.cui.rst @@ -0,0 +1,5 @@ +stdnum.ro.cui +============= + +.. automodule:: stdnum.ro.cui + :members: diff --git a/docs/stdnum.ua.edrpou.rst b/docs/stdnum.ua.edrpou.rst new file mode 100644 index 00000000..88c5c5db --- /dev/null +++ b/docs/stdnum.ua.edrpou.rst @@ -0,0 +1,5 @@ +stdnum.ua.edrpou +================ + +.. automodule:: stdnum.ua.edrpou + :members: diff --git a/docs/stdnum.ua.rntrc.rst b/docs/stdnum.ua.rntrc.rst new file mode 100644 index 00000000..89e92a6a --- /dev/null +++ b/docs/stdnum.ua.rntrc.rst @@ -0,0 +1,5 @@ +stdnum.ua.rntrc +=============== + +.. automodule:: stdnum.ua.rntrc + :members: diff --git a/stdnum/__init__.py b/stdnum/__init__.py index 73646fb1..6e1228da 100644 --- a/stdnum/__init__.py +++ b/stdnum/__init__.py @@ -1,7 +1,7 @@ # __init__.py - main module # coding: utf-8 # -# Copyright (C) 2010-2020 Arthur de Jong +# Copyright (C) 2010-2021 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -43,4 +43,4 @@ __all__ = ('get_cc_module', '__version__') # the version number of the library -__version__ = '1.14' +__version__ = '1.15' diff --git a/tox.ini b/tox.ini index d7ae91d9..2b822c00 100644 --- a/tox.ini +++ b/tox.ini @@ -34,5 +34,5 @@ deps = flake8 commands = flake8 stdnum tests update setup.py [testenv:docs] -deps = Sphinx<3 +deps = Sphinx commands = sphinx-build -N -b html docs {envtmpdir}/sphinx -W