From 62ebbceaf8dd7baeb6ff310da90ff8e2096af580 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 13 Nov 2016 23:27:42 +0100 Subject: Get files ready for 1.5 release --- ChangeLog | 214 ++++++++++++++++++++++++++++++--- NEWS | 16 +++ README | 9 +- docs/index.rst | 7 ++ docs/stdnum.au.abn.rst | 5 + docs/stdnum.au.acn.rst | 5 + docs/stdnum.au.tfn.rst | 5 + docs/stdnum.es.ccc.rst | 5 + docs/stdnum.es.cups.rst | 5 + docs/stdnum.es.iban.rst | 5 + docs/stdnum.es.referenciacatastral.rst | 5 + stdnum/__init__.py | 11 +- 12 files changed, 269 insertions(+), 23 deletions(-) create mode 100644 docs/stdnum.au.abn.rst create mode 100644 docs/stdnum.au.acn.rst create mode 100644 docs/stdnum.au.tfn.rst create mode 100644 docs/stdnum.es.ccc.rst create mode 100644 docs/stdnum.es.cups.rst create mode 100644 docs/stdnum.es.iban.rst create mode 100644 docs/stdnum.es.referenciacatastral.rst diff --git a/ChangeLog b/ChangeLog index 412b3ad..8ba0abc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,179 @@ +2016-11-13 Arthur de Jong + + * [c9beb00] stdnum/cn/loc.dat, stdnum/iban.dat, stdnum/imsi.dat, + stdnum/isbn.dat, stdnum/isil.dat, tests/test_iban.doctest: + Update database files + + This removes the Costa Rica IBAN test because the format of the + IBAN seems to have been changed. The old length still seems to + be in use so a more permanent solution is probably required. + +2016-11-13 Arthur de Jong + + * [ac560a7] getisbn.py: Update getisbn to Python3 + + There were some SSL-related issues with the urllib module. This + was the easiest solution. + +2016-11-13 Arthur de Jong + + * [458c310] getiban.py: Update gettin IBAN registry + + The format of the registry file has changed. Before it was a + straightforward CSV file with countries in rows but countries + are now in columns. + +2016-11-09 Sergi Almacellas Abellana + + * [45faa7c] .gitignore, tox.ini: Add tox.ini file + +2016-11-08 Sergi Almacellas Abellana + + * [a9e5405] stdnum/eu/at_02.py: Implement calc_check_digits in + SEPA Identifier of the Creditor (AT-02) + +2016-10-14 Arthur de Jong + + * [8ea76ba] stdnum/au/tfn.py, tests/test_au_tfn.doctest: Add + Australian Tax File Number + + Based on the implementation provided by Vincent Bastos + + + See https://github.com/arthurdejong/python-stdnum/pull/40 + +2016-10-14 Arthur de Jong + + * [8028c3a] stdnum/au/acn.py, tests/test_au_acn.doctest: Add + Australian Company Number + + Based on the implementation provided by Vincent Bastos + + + See https://github.com/arthurdejong/python-stdnum/pull/40 + +2016-10-14 Arthur de Jong + + * [70b94ee] stdnum/au/__init__.py, stdnum/au/abn.py, + tests/test_au_abn.doctest: Add Australian Business Number + + Based on the implementation provided by Vincent Bastos + + + See https://github.com/arthurdejong/python-stdnum/pull/40 + +2016-10-14 Arthur de Jong + + * [d7cff5d] stdnum/be/__init__.py, stdnum/be/vat.py: Provide + businessid as an alias + + The Belgian company number or enterprise number + (ondernemingsnummer) is the new name for what was previously + the VAT number. + +2016-09-10 Arthur de Jong + + * [352aa8a] stdnum/es/referenciacatastral.py: Add reference to + Referencia Catastral implementation + +2016-09-03 Arthur de Jong + + * [49db553] tests/test_es_referenciacatastral.doctest: Add more + tests for Referencia Catastral + + This adds a number of extra tests for the Spanish Referencia + Catastral (stdnum.es.referenciacatastral) module, mostly based + on numbers found online. + + This commit includes some of the documentation on the structure + of Referencia Catastral that was in the original pull request. + + See https://github.com/arthurdejong/python-stdnum/pull/38 + +2016-08-31 David García Garzón + + * [2c557a0] stdnum/es/referenciacatastral.py: Add Spansih Referencia + Catastral + + The control digit check algorithm is based on Javascript + implementation by Vicente Sancho that can be found at + http://trellat.es/validar-la-referencia-catastral-en-javascript/ + + See https://github.com/arthurdejong/python-stdnum/pull/38 + +2016-09-10 Arthur de Jong + + * [b128c8d] tests/test_iban.doctest: Test a few Spanish IBANs + found online + +2016-09-10 Arthur de Jong + + * [878e036] stdnum/numdb.py: Avoid leaving open file descriptor + in test + +2016-09-08 Arthur de Jong + + * [be24790] stdnum/es/iban.py, tests/test_iban.doctest: Add Spanish + IBAN number module + + This validates the country-specific part of the IBAN. + +2016-09-08 Arthur de Jong + + * [2510932] stdnum/iban.py: Validate country-specific part of IBAN + + This adds the possible of validating the country-specific part + of the IBAN. If the country has an IBAN module, checking is also + delegated to that module. + +2016-09-06 Arthur de Jong + + * [d8cca82] stdnum/eu/vat.py, stdnum/util.py: Introduce + get_cc_module() utility function + + This changes the get_vat_module() function to a more generic + get_cc_module() function so that it can also be used for other + things like IBAN checking. + +2016-09-06 Arthur de Jong + + * [1622873] stdnum/es/ccc.py: Add to_iban() function to Spanish CCC + +2016-09-08 Arthur de Jong + + * [7d969be] stdnum/iban.py: Implement calc_check_digits() in IBAN + + Introduce a function to calculate the two check digits of an + IBAN. Since the check digits are the third and fourth characters + in the number, placeholders need to be provided when calling + this function. + +2016-08-31 David García Garzón + + * [294f872] stdnum/es/ccc.py: Add Spanish Código Cuenta Corriente + (CCC) + +2016-08-28 David García Garzón + + * [466cec8] stdnum/es/cups.py, tests/test_es_cups.doctest: Add + Spanish CUPS code + +2016-08-28 Arthur de Jong + + * [d95382f] stdnum/exceptions.py: Properly print error message + of exceptions + + This ensures that the message passed to the constructor is shown + in the traceback while falling back to the class default. + +2016-07-26 Arthur de Jong + + * [01a7f34] ChangeLog, NEWS, README, docs/index.rst, + docs/stdnum.damm.rst, docs/stdnum.fr.nif.rst, + docs/stdnum.fr.nir.rst, docs/stdnum.fr.siret.rst, + docs/stdnum.gb.nhs.rst, docs/stdnum.tr.tckimlik.rst, + stdnum/__init__.py: Get files ready for 1.4 release + 2016-07-26 Arthur de Jong * [3e4e9e2] getmybp.py, stdnum/cn/loc.dat, stdnum/iban.dat, @@ -307,8 +483,8 @@ Jong 2015-10-10 Arthur de Jong - * [ebb5c07] MANIFEST.in, numdb-test.dat, stdnum/numdb.py, - tests/numdb-test.dat: Move numdb test file + * [ebb5c07] MANIFEST.in, stdnum/numdb.py, tests/numdb-test.dat: + Move numdb test file This places the test database file in the tests directory. @@ -881,8 +1057,8 @@ Jong http://www.citizensinformation.ie/en/social_welfare/irish_social_welfare_system/personal_public_service_number.html 2014-02-06 Arthur de Jong - * [71d9837] stdnum/at_02.py, stdnum/eu/at_02.py: Rename AT-02 - module to stdnum.eu.at_02 + * [71d9837] stdnum/eu/at_02.py: Rename AT-02 module to + stdnum.eu.at_02 2014-02-05 Sergi Almacellas Abellana @@ -1583,8 +1759,7 @@ Jong 2012-02-20 Arthur de Jong - * [680b7d1] numdb-test.dat, stdnum/numdb.py, test.dat: rename - numdb test file + * [680b7d1] numdb-test.dat, stdnum/numdb.py: rename numdb test file 2012-02-20 Arthur de Jong @@ -2133,13 +2308,13 @@ Jong 2011-02-05 Arthur de Jong - * [62aa496] tests/test_br_cpf.doctest, tests/test_iban.doctest, - tests/test_imei.doctest, tests/test_isan.doctest, - tests/test_isbn.doctest, tests/test_ismn.doctest, - tests/test_issn.doctest, tests/test_luhn.doctest, - tests/test_meid.doctest, tests/test_nl_bsn.doctest, - tests/test_robustness.doctest, tests/test_verhoeff.doctest: - move all robustness tests into one test file + * [62aa496] tests/test_iban.doctest, tests/test_imei.doctest, + tests/test_isan.doctest, tests/test_isbn.doctest, + tests/test_ismn.doctest, tests/test_issn.doctest, + tests/test_luhn.doctest, tests/test_meid.doctest, + tests/test_nl_bsn.doctest, tests/test_robustness.doctest, + tests/test_verhoeff.doctest: move all robustness tests into one + test file 2011-02-05 Arthur de Jong @@ -2207,9 +2382,8 @@ Jong 2011-01-15 Arthur de Jong - * [8d3a92c] stdnum/bsn.py, stdnum/nl/__init__.py, stdnum/nl/bsn.py, - tests/test_bsn.doctest, tests/test_nl_bsn.doctest: move bsn - module inside nl package + * [8d3a92c] stdnum/nl/__init__.py, stdnum/nl/bsn.py, + tests/test_nl_bsn.doctest: move bsn module inside nl package 2010-11-26 Arthur de Jong @@ -2219,10 +2393,10 @@ Jong 2010-11-24 Arthur de Jong * [124c16d] getisbn.py, stdnum/isbn.dat, stdnum/isbn.py, - stdnum/isbn/__init__.py, stdnum/isbn/ranges.py, stdnum/numdb.py, - test.dat, tests/test_isbn.doctest: implement a new numdb module - to hold information on hierarchically organised numbers and - switch the isbn module to use this format instead + stdnum/isbn/ranges.py, stdnum/numdb.py, test.dat, + tests/test_isbn.doctest: implement a new numdb module to hold + information on hierarchically organised numbers and switch the + isbn module to use this format instead 2010-09-11 Arthur de Jong diff --git a/NEWS b/NEWS index 1f8261d..317f8bb 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,19 @@ +changes from 1.4 to 1.5 +----------------------- + +* add modules for the following number formats: + - ABN (Australian Business Number) + - ACN (Australian Company Number) + - TFN (Australian Tax File Number) + - CCC (Código Cuenta Corriente, Spanish Bank Account Code) + - CUPS (Código Unificado de Punto de Suministro, Supply Point Unified Code) + - Spanish IBAN (International Bank Account Number) + - Referencia Catastral (Spanish real estate property id) +* The IBAN module now support validating the country-specific part +* The Belgian VAT number is now also referenced as businessid +* add a Tox configuration file + + changes from 1.3 to 1.4 ----------------------- diff --git a/README b/README index 4c8c8de..0cfdab8 100644 --- a/README +++ b/README @@ -13,7 +13,10 @@ Currently this package supports the following formats: * CUIT (Código Único de Identificación Tributaria, Argentinian tax number) * Austrian Company Register Numbers * UID (Umsatzsteuer-Identifikationsnummer, Austrian VAT number) - * BTW, TVA, NWSt (Belgian VAT number) + * ABN (Australian Business Number) + * ACN (Australian Company Number) + * TFN (Australian Tax File Number) + * BTW, TVA, NWSt, ondernemingsnummer (Belgian enterprise number) * EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes) * PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner) * VAT (Идентификационен номер по ДДС, Bulgarian VAT number) @@ -40,10 +43,14 @@ Currently this package supports the following formats: * RUC (Registro Único de Contribuyentes, Ecuadorian company tax number) * Isikukood (Estonian Personcal ID number) * KMKR (Käibemaksukohuslase, Estonian VAT number) + * CCC (Código Cuenta Corriente, Spanish Bank Account Code) * CIF (Certificado de Identificación Fiscal, Spanish company tax number) + * CUPS (Código Unificado de Punto de Suministro, Supply Point Unified Code) * DNI (Documento nacional de identidad, Spanish personal identity codes) + * Spanish IBAN (International Bank Account Number) * NIE (Número de Identificación de Extranjeros, Spanish foreigner number) * NIF (Número de Identificación Fiscal, Spanish VAT number) + * Referencia Catastral (Spanish real estate property id) * SEPA Identifier of the Creditor (AT-02) * VAT (European Union VAT number) * ALV nro (Arvonlisäveronumero, Finnish VAT number) diff --git a/docs/index.rst b/docs/index.rst index b85a8e0..3e4096f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -90,6 +90,9 @@ Available formats ar.cuit at.businessid at.uid + au.abn + au.acn + au.tfn be.vat bg.egn bg.pnf @@ -117,10 +120,14 @@ Available formats ec.ruc ee.ik ee.kmkr + es.ccc es.cif + es.cups es.dni + es.iban es.nie es.nif + es.referenciacatastral eu.at_02 eu.vat fi.alv diff --git a/docs/stdnum.au.abn.rst b/docs/stdnum.au.abn.rst new file mode 100644 index 0000000..e1b646a --- /dev/null +++ b/docs/stdnum.au.abn.rst @@ -0,0 +1,5 @@ +stdnum.au.abn +============= + +.. automodule:: stdnum.au.abn + :members: \ No newline at end of file diff --git a/docs/stdnum.au.acn.rst b/docs/stdnum.au.acn.rst new file mode 100644 index 0000000..9b35a0a --- /dev/null +++ b/docs/stdnum.au.acn.rst @@ -0,0 +1,5 @@ +stdnum.au.acn +============= + +.. automodule:: stdnum.au.acn + :members: \ No newline at end of file diff --git a/docs/stdnum.au.tfn.rst b/docs/stdnum.au.tfn.rst new file mode 100644 index 0000000..a010db8 --- /dev/null +++ b/docs/stdnum.au.tfn.rst @@ -0,0 +1,5 @@ +stdnum.au.tfn +============= + +.. automodule:: stdnum.au.tfn + :members: \ No newline at end of file diff --git a/docs/stdnum.es.ccc.rst b/docs/stdnum.es.ccc.rst new file mode 100644 index 0000000..75c830a --- /dev/null +++ b/docs/stdnum.es.ccc.rst @@ -0,0 +1,5 @@ +stdnum.es.ccc +============= + +.. automodule:: stdnum.es.ccc + :members: \ No newline at end of file diff --git a/docs/stdnum.es.cups.rst b/docs/stdnum.es.cups.rst new file mode 100644 index 0000000..2fb2023 --- /dev/null +++ b/docs/stdnum.es.cups.rst @@ -0,0 +1,5 @@ +stdnum.es.cups +============== + +.. automodule:: stdnum.es.cups + :members: \ No newline at end of file diff --git a/docs/stdnum.es.iban.rst b/docs/stdnum.es.iban.rst new file mode 100644 index 0000000..6811e2c --- /dev/null +++ b/docs/stdnum.es.iban.rst @@ -0,0 +1,5 @@ +stdnum.es.iban +============== + +.. automodule:: stdnum.es.iban + :members: \ No newline at end of file diff --git a/docs/stdnum.es.referenciacatastral.rst b/docs/stdnum.es.referenciacatastral.rst new file mode 100644 index 0000000..c77588f --- /dev/null +++ b/docs/stdnum.es.referenciacatastral.rst @@ -0,0 +1,5 @@ +stdnum.es.referenciacatastral +============================= + +.. automodule:: stdnum.es.referenciacatastral + :members: \ No newline at end of file diff --git a/stdnum/__init__.py b/stdnum/__init__.py index d12dcd4..777a09b 100644 --- a/stdnum/__init__.py +++ b/stdnum/__init__.py @@ -29,7 +29,10 @@ Currently this package supports the following formats: * ar.cuit: CUIT (Código Único de Identificación Tributaria, Argentinian tax number) * at.businessid: Austrian Company Register Numbers * at.uid: UID (Umsatzsteuer-Identifikationsnummer, Austrian VAT number) -* be.vat: BTW, TVA, NWSt (Belgian VAT number) +* au.abn: ABN (Australian Business Number) +* au.acn: ACN (Australian Company Number) +* au.tfn: TFN (Australian Tax File Number) +* be.vat: BTW, TVA, NWSt, ondernemingsnummer (Belgian enterprise number) * bg.egn: EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes) * bg.pnf: PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner) * bg.vat: VAT (Идентификационен номер по ДДС, Bulgarian VAT number) @@ -56,10 +59,14 @@ Currently this package supports the following formats: * ec.ruc: RUC (Registro Único de Contribuyentes, Ecuadorian company tax number) * ee.ik: Isikukood (Estonian Personcal ID number) * ee.kmkr: KMKR (Käibemaksukohuslase, Estonian VAT number) +* es.ccc: CCC (Código Cuenta Corriente, Spanish Bank Account Code) * es.cif: CIF (Certificado de Identificación Fiscal, Spanish company tax number) +* es.cups: CUPS (Código Unificado de Punto de Suministro, Supply Point Unified Code) * es.dni: DNI (Documento nacional de identidad, Spanish personal identity codes) +* es.iban: Spanish IBAN (International Bank Account Number) * es.nie: NIE (Número de Identificación de Extranjeros, Spanish foreigner number) * es.nif: NIF (Número de Identificación Fiscal, Spanish VAT number) +* es.referenciacatastral: Referencia Catastral (Spanish real estate property id) * eu.at_02: SEPA Identifier of the Creditor (AT-02) * eu.vat: VAT (European Union VAT number) * fi.alv: ALV nro (Arvonlisäveronumero, Finnish VAT number) @@ -159,4 +166,4 @@ parsing, validation, formatting or conversion functions. # the version number of the library -__version__ = '1.4' +__version__ = '1.5' -- cgit v1.2.3