8000 Get files ready for 1.7 release · unho/python-stdnum@4496ffe · GitHub
[go: up one dir, main page]

Skip to content

Commit 4496ffe

Browse files
committed
Get files ready for 1.7 release
1 parent 28092b3 commit 4496ffe

11 files changed

+299
-1
lines changed

ChangeLog

Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,231 @@
1+
2017-09-12 Arthur de Jong <arthur@arthurdejong.org>
2+
3+
* [28092b3] stdnum/damm.py: Add example with custom table to Damm
4+
5+
2017-09-11 Arthur de Jong <arthur@arthurdejong.org>
6+
7+
* [24d4a76] stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/imsi.dat,
8+
stdnum/isbn.dat, stdnum/isil.dat: Update database files
9+
10+
2017-09-11 Arthur de Jong <arthur@arthurdejong.org>
11+
12+
* [5071636] getisbn.py: Update getisbn to allow TLSv1
13+
14+
The www.isbn-international.org site uses TLSv1 which seems to be
15+
blocked by recent Python/OpenSSL combinations unless configured
16+
otherwise.
17+
18+
2017-09-11 Arthur de Jong <arthur@arthurdejong.org>
19+
20+
* [edaad05] setup.cfg, tox.ini: Run flake8 from tox
21+
22+
2017-09-10 Arthur de Jong <arthur@arthurdejong.org>
23+
24+
* [0ce5d0b] stdnum/bg/egn.py, stdnum/cz/dic.py, stdnum/dk/cpr.py,
25+
stdnum/es/cups.py, stdnum/es/referenciacatastral.py,
26+
stdnum/eu/nace.py, stdnum/fr/nir.py, stdnum/fr/siren.py,
27+
stdnum/iban.py, stdnum/it/codicefiscale.py, stdnum/lv/pvn.py,
28+
stdnum/numdb.py, stdnum/ro/cnp.py, stdnum/util.py: Minor code
29+
improvements (mostly PEP8)
30+
31+
2017-09-10 Arthur de Jong <arthur@arthurdejong.org>
32+
33+
* [e468c1b] stdnum/ch/vat.py, stdnum/cn/ric.py, stdnum/do/cedula.py,
34+
stdnum/ee/ik.py, stdnum/ee/registrikood.py, stdnum/es/nif.py,
35+
stdnum/fi/__init__.py, stdnum/fi/hetu.py, stdnum/gb/nhs.py,
36+
stdnum/gb/upn.py, stdnum/gb/vat.py, stdnum/is_/kennitala.py,
37+
stdnum/it/codicefiscale.py, stdnum/nl/onderwijsnummer.py,
38+
stdnum/numdb.py, stdnum/rs/pib.py, stdnum/sk/rc.py,
39+
stdnum/us/tin.py: Make import ordering consistent
40+
41+
2017-09-10 Arthur de Jong <arthur@arthurdejong.org>
42+
43+
* [1c27639] stdnum/al/nipt.py, stdnum/ar/cbu.py, stdnum/ar/cuit.py,
44+
stdnum/at/businessid.py, stdnum/at/uid.py, stdnum/au/abn.py,
45+
stdnum/au/acn.py, stdnum/au/tfn.py, stdnum/be/vat.py,
46+
stdnum/bg/egn.py, stdnum/bg/pnf.py, stdnum/bg/vat.py,
47+
stdnum/br/cnpj.py, stdnum/br/cpf.py, stdnum/ca/bn.py,
48+
stdnum/ca/sin.py, stdnum/ch/ssn.py, stdnum/ch/uid.py,
49+
stdnum/ch/vat.py, stdnum/cl/rut.py, stdnum/cn/ric.py,
50+
stdnum/co/nit.py, stdnum/cusip.py, stdnum/cy/vat.py,
51+
stdnum/cz/dic.py, stdnum/cz/rc.py, stdnum/damm.py,
52+
stdnum/de/idnr.py, stdnum/de/vat.py, stdnum/de/wkn.py,
53+
stdnum/dk/cpr.py, stdnum/dk/cvr.py, stdnum/do/cedula.py,
54+
stdnum/do/rnc.py, stdnum/ean.py, stdnum/ec/ci.py, stdnum/ec/ruc.py,
55+
stdnum/ee/ik.py, stdnum/ee/kmkr.py, stdnum/ee/registrikood.py,
56+
stdnum/es/ccc.py, stdnum/es/cif.py, stdnum/es/cups.py,
57+
stdnum/es/dni.py, stdnum/es/iban.py, stdnum/es/nie.py,
58+
stdnum/es/nif.py, stdnum/es/referenciacatastral.py,
59+
stdnum/eu/at_02.py, stdnum/eu/eic.py, stdnum/eu/nace.py,
60+
stdnum/eu/vat.py, stdnum/fi/alv.py, stdnum/fi/associationid.py,
61+
stdnum/fi/hetu.py, stdnum/fi/veronumero.py, stdnum/fi/ytunnus.py,
62+
stdnum/fr/nif.py, stdnum/fr/nir.py, stdnum/fr/siren.py,
63+
stdnum/fr/siret.py, stdnum/fr/tva.py, stdnum/gb/nhs.py,
64+
stdnum/gb/sedol.py, stdnum/gb/upn.py, stdnum/gb/vat.py,
65+
stdnum/gr/vat.py, stdnum/grid.py, stdnum/hr/oib.py,
66+
stdnum/hu/anum.py, stdnum/iban.py, stdnum/ie/pps.py,
67+
stdnum/ie/vat.py, stdnum/imei.py, stdnum/imo.py,
68+
stdnum/imsi.py, stdnum/is_/kennitala.py, stdnum/is_/vsk.py,
69+
stdnum/isan.py, stdnum/isbn.py, stdnum/isil.py, stdnum/isin.py,
70+
stdnum/ismn.py, stdnum/iso6346.py, stdnum/iso7064/mod_11_10.py,
71+
stdnum/iso7064/mod_11_2.py, stdnum/iso7064/mod_37_2.py,
72+
stdnum/iso7064/mod_37_36.py, stdnum/iso7064/mod_97_10.py,
73+
stdnum/iso9362.py, stdnum/issn.py, stdnum/it/codicefiscale.py,
74+
stdnum/it/iva.py, stdnum/lei.py, stdnum/lt/pvm.py,
75+
stdnum/lu/tva.py, stdnum/luhn.py, stdnum/lv/pvn.py,
76+
stdnum/mc/tva.py, stdnum/meid.py, stdnum/mt/vat.py,
77+
stdnum/mx/rfc.py, stdnum/my/nric.py, stdnum/nl/brin.py,
78+
stdnum/nl/bsn.py, stdnum/nl/btw.py, stdnum/nl/onderwijsnummer.py,
79+
stdnum/nl/postcode.py, stdnum/no/mva.py, stdnum/no/orgnr.py,
80+
stdnum/numdb.py, stdnum/pl/nip.py, stdnum/pl/pesel.py,
81+
stdnum/pl/regon.py, stdnum/pt/nif.py, stdnum/ro/cf.py,
82+
stdnum/ro/cnp.py, stdnum/rs/pib.py, stdnum/ru/inn.py,
83+
stdnum/se/orgnr.py, stdnum/se/vat.py, stdnum/si/ddv.py,
84+
stdnum/sk/dph.py, stdnum/sm/coe.py, stdnum/tr/__init__.py,
85+
stdnum/tr/tckimlik.py, stdnum/us/atin.py, stdnum/us/ein.py,
86+
stdnum/us/itin.py, stdnum/us/ptin.py, stdnum/us/rtn.py,
87+
stdnum/us/ssn.py, stdnum/us/tin.py, stdnum/verhoeff.py: Docstring
88+
improvements
89+
90+
2017-09-08 Arthur de Jong <arthur@arthurdejong.org>
91+
92+
* [2cc39ea] stdnum/cz/dic.py, tests/test_eu_vat.doctest: Fix Czech
93+
DIČ check digit calculation
94+
95+
This fixes a bug in the check digit calculation for the 9-digit
96+
numbers that start with a 6 for individuals without a RČ. This
97+
also adds a few tests for Czech VAT numbers.
98+
99+
See https://github.com/arthurdejong/python-stdnum/issues/51
100+
101+
2017-09-04 Arthur de Jong <arthur@arthurdejong.org>
102+
103+
* [d24a439] stdnum/ee/registrikood.py,
104+
tests/test_ee_registrikood.doctest: Add Estonian Registrikood
105+
106+
This is based on what was done by Mohammed Salman of Holvi. This
107+
adds more tests and validates the check digit.
108+
109+
This uses the check digit algorithm from Isikukood which seems
110+
to work with all tested numbers although there is no confirmation
111+
that this is the correct algorithm.
112+
113+
2017-08-25 Mohammed Salman <mohammed@holvi.com>
114+
115+
* [53cc0dc] stdnum/de/idnr.py, tests/test_de_idnr.doctest: Add
116+
support for German tax id number
117+
118+
2017-08-30 Arthur de Jong <arthur@arthurdejong.org>
119+
120+
* [a71a1ac] stdnum/isbn.py, tests/test_isbn.doctest: Check bookland
121+
code in ISBN
122+
123+
This ensures that an InvalidComponent() exception is raised when
124+
an unknown EAN bookland code is found. It will also raise this
125+
exception when using to_isbn10() when not using the 978 code.
126+
127+
2017-08-28 Arthur de Jong <arthur@arthurdejong.org>
128+
129+
* [8f6fa7d] setup.cfg, stdnum/iban.py, stdnum/ismn.py,
130+
stdnum/meid.py, stdnum/numdb.py, stdnum/util.py,
131+
tests/numdb-test.dat, tests/test_util.doctest: Ensure 100%
132+
branch coverage
133+
134+
This ensures that the tests fail if 100% branch coverage is
135+
not achieved. It also adds some pragma statements for code that
136+
cannot be covered or is Python version dependent.
137+
138+
Furthermore, the get_module_list() function was removed
139+
from stdnum.util and more tests were made from stdnum.util
140+
and stdnum.numdb. The functionality to call format() in a
141+
country-specific IBAN implementation was also dropped because
142+
it was not used.
143+
144+
2017-08-27 Arthur de Jong <arthur@arthurdejong.org>
145+
146+
* [fbc92f8] stdnum/gb/upn.py: Add English Unique Pupil Number (UPN)
147+
148+
2017-08-26 Arthur de Jong <arthur@arthurdejong.org>
149+
150+
* [b8389eb] stdnum/ca/bn.py, tests/test_ca_bn.doctest: Add Canadian
151+
Business Number (BN)
152+
153+
2017-08-26 Arthur de Jong <arthur@arthurdejong.org>
154+
155+
* [efd2eb9] stdnum/ca/__init__.py, stdnum/ca/sin.py: Add Canadian
156+
Social Insurance Number (SIN)
157+
158+
2017-08-24 Arthur de Jong <arthur@arthurdejong.org>
159+
160+
* [b8e12d6] setup.cfg: Ensure all Python files are in coverage report
161+
162+
2017-08-17 Mohammed Salman <mohammed@holvi.com>
163+
164+
* [0c91b43] stdnum/fi/veronumero.py: Implement Finnish individual
165+
tax number validation
166+
167+
2017-07-11 Arthur de Jong <arthur@arthurdejong.org>
168+
169+
* [bd0c7c7] online_check/check.js, online_check/stdnum.wsgi,
170+
online_check/template.html: Include search term in online form
171+
172+
This also makes the Javascript regular expression used for
173+
highlighting links the same as the Python equivalent.
174+
175+
2017-06-02 Arthur de Jong <arthur@arthurdejong.org>
176+
177+
* [81446fd] stdnum/iso7064/mod_97_10.py: Use slightly more
178+
compact code
179+
180+
This changes the alphanumeric to numeric translation to be
181+
slightly more compact and slightly faster.
182+
183+
2017-04-16 Arthur de Jong <arthur@arthurdejong.org>
184+
185+
* [ed9ac5b] tests/test_isbn.doctest: Add a few ISBNs found online
186+
187+
This adds a number of ISBNs found online from various sources
188+
to the test suite.
189+
190+
2017-04-15 Arthur de Jong <arthur@arthurdejong.org>
191+
192+
* [57c12d8] stdnum/ismn.py, tests/test_ismn.doctest: An ISMN can
193+
only be 10 or 13 digits
194+
195+
This also adds the test that an ISMN should start with 9790.
196+
197+
2017-04-15 Arthur de Jong <arthur@arthurdejong.org>
198+
199+
* [6fb2e89] stdnum/isbn.py, tests/test_isbn.doctest: Fix conversion
200+
of 9 digit ISBN to ISBN13
201+
202+
2017-04-13 Arthur de Jong <arthur@arthurdejong.org>
203+
204+
* [5604d91] docs/index.rst, setup.py, stdnum/fr/nir.py,
205+
stdnum/fr/siren.py, stdnum/gb/nhs.py, stdnum/isil.py,
206+
stdnum/iso6346.py, stdnum/lv/pvn.py, stdnum/nl/brin.py,
207+
stdnum/us/ein.dat, tests/test_al_nipt.doctest: Switch to HTTPS URLs
208+
209+
2017-04-13 Arthur de Jong <arthur@arthurdejong.org>
210+
211+
* [d14ea3b] online_check/README, online_check/check.js,
212+
online_check/stdnum.wsgi: Show possible conversions in online check
213+
214+
This shows possible converted values. For example it will show
215+
ISBN13 conversions for ISBN10 values.
216+
217+
2017-04-13 Arthur de Jong <arthur@arthurdejong.org>
218+
219+
* [6b588d1] stdnum/damm.py: Fix bug in damm.is_valid() function
220+
221+
2017-04-11 Arthur de Jong <arthur@arthurdejong.org>
222+
223+
* [35542c1] ChangeLog, MANIFEST.in, NEWS, README, docs/index.rst,
224+
docs/stdnum.ar.cbu.rst, docs/stdnum.eu.eic.rst,
225+
docs/stdnum.eu.nace.rst, docs/stdnum.lei.rst,
226+
docs/stdnum.mc.tva.rst, docs/stdnum.rs.pib.rst, stdnum/__init__.py:
227+
Get files ready for 1.6 release
228+
1229
2017-04-10 Arthur de Jong <arthur@arthurdejong.org>
2230

3231
* [93459d3] stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/iban.dat,

NEWS

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
changes from 1.6 to 1.7
2+
-----------------------
3+
4+
* add modules for the following number formats:
5+
- BN (Canadian Business Number)
6+
- SIN (Canadian Social Insurance Number)
7+
- IdNr (Steuerliche Identifikationsnummer, German personal tax number)
8+
(thanks Mohammed Salman of Holvi)
9+
- Registrikood (Estonian organisation registration code)
10+
(thanks Mohammed Salman of Holvi)
11+
- Veronumero (Finnish individual tax number)
12+
(thanks Mohammed Salman of Holvi)
13+
- UPN (English Unique Pupil Number)
14+
* fix a bug in the Czech DIČ check digit calculation
15+
* fix conversion of 9 digit ISBN to ISBN13
16+
* fix a bug in the Damm is_valid() function
17+
* more validation of 13-digit ISBN values
18+
* more validation of ISMN values
19+
* various code and test improvements (100% branch coverage now)
20+
* documentation improvements
21+
22+
123
changes from 1.5 to 1.6
224
-----------------------
325

README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Currently this package supports the following formats:
2323
* VAT (Идентификационен номер по ДДС, Bulgarian VAT number)
2424
* CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazillian company identifier)
2525
* CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)
26+
* BN (Canadian Business Number)
27+
* SIN (Canadian Social Insurance Number)
2628
* Swiss social security number ("Sozialversicherungsnummer")
2729
* UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
2830
* VAT, MWST, TVA, IVA, TPV (Mehrwertsteuernummer, the Swiss VAT number)
@@ -33,6 +35,7 @@ Currently this package supports the following formats:
3335
* Αριθμός Εγγραφής Φ.Π.Α. (Cypriot VAT number)
3436
* DIČ (Daňové identifikační číslo, Czech VAT number)
3537
* RČ (Rodné číslo, the Czech birth number)
38+
* IdNr (Steuerliche Identifikationsnummer, German personal tax number)
3639
* Ust ID Nr. (Umsatzsteur Identifikationnummer, German VAT number)
3740
* Wertpapierkennnummer (German securities identification code)
3841
* CPR (personnummer, the Danish citizen number)
@@ -44,6 +47,7 @@ Currently this package supports the following formats:
4447
* RUC (Registro Único de Contribuyentes, Ecuadorian company tax number)
4548
* Isikukood (Estonian Personcal ID number)
4649
* KMKR (Käibemaksukohuslase, Estonian VAT number)
50+
* Registrikood (Estonian organisation registration code)
4751
* CCC (Código Cuenta Corriente, Spanish Bank Account Code)
4852
* CIF (Certificado de Identificación Fiscal, Spanish company tax number)
4953
* CUPS (Código Unificado de Punto de Suministro, Supply Point Unified Code)
@@ -59,6 +63,7 @@ Currently this package supports the following formats:
5963
* ALV nro (Arvonlisäveronumero, Finnish VAT number)
6064
* Finnish Association Identifier
6165
* HETU (Henkilötunnus, Finnish personal identity code)
66+
* Veronumero (Finnish individual tax number)
6267
* Y-tunnus (Finnish business identifier)
6368
* NIF (Numéro d'Immatriculation Fiscale, French tax identification number)
6469
* NIR (French personal identification number)
@@ -67,6 +72,7 @@ Currently this package supports the following formats:
6772
* n° TVA (taxe sur la valeur ajoutée, French VAT number)
6873
* NHS (United Kingdom National Health Service patient identifier)
6974
* SEDOL number (Stock Exchange Daily Official List number)
75+
* UPN (English Unique Pupil Number)
7076
* VAT (United Kingdom (and Isle of Man) VAT registration number)
7177
* FPA, ΦΠΑ, ΑΦΜ (Αριθμός Φορολογικού Μητρώου, the Greek VAT number)
7278
* GRid (Global Release Identifier)

docs/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ Available formats
100100
bg.vat
101101
br.cnpj
102102
br.cpf
103+
ca.bn
104+
ca.sin
103105
ch.ssn
104106
ch.uid
105107
ch.vat
@@ -110,6 +112,7 @@ Available formats
110112
cy.vat
111113
cz.dic
112114
cz.rc
115+
de.idnr
113116
de.vat
114117
de.wkn
115118
dk.cpr
@@ -121,6 +124,7 @@ Available formats
121124
ec.ruc
122125
ee.ik
123126
ee.kmkr
127+
ee.registrikood
124128
es.ccc
125129
es.cif
126130
es.cups
@@ -136,6 +140,7 @@ Available formats
136140
fi.alv
137141
fi.associationid
138142
fi.hetu
143+
fi.veronumero
139144
fi.ytunnus
140145
fr.nif
141146
fr.nir
@@ -144,6 +149,7 @@ Available formats
144149
fr.tva
145150
gb.nhs
146151
gb.sedol
152+
gb.upn
147153
gb.vat
148154
gr.vat
149155
grid

docs/stdnum.ca.bn.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.ca.bn
2+
============
3+
4+
.. automodule:: stdnum.ca.bn
5+
:members:

docs/stdnum.ca.sin.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.ca.sin
2+
=============
3+
4+
.. automodule:: stdnum.ca.sin
5+
:members:

docs/stdnum.de.idnr.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.de.idnr
2+
==============
3+
4+
.. automodule:: stdnum.de.idnr
5+
:members:

docs/stdnum.ee.registrikood.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.ee.registrikood
2+
======================
3+
4+
.. automodule:: stdnum.ee.registrikood
5+
:members:

docs/stdnum.fi.veronumero.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.fi.veronumero
2+
====================
3+
4+
.. automodule:: stdnum.fi.veronumero
5+
:members:

docs/stdnum.gb.upn.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
stdnum.gb.upn
2+
=============
3+
4+
.. automodule:: stdnum.gb.upn
5+
:members:

0 commit comments

Comments
 (0)
0