10000 Get files ready for 1.4 release · wycttb/python-stdnum@01a7f34 · GitHub
[go: up one dir, main page]

Skip to content

Commit 01a7f34

Browse files
committed
Get files ready for 1.4 release
1 parent 3e4e9e2 commit 01a7f34

File tree

11 files changed

+270
-4
lines changed

11 files changed

+270
-4
lines changed

ChangeLog

Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,202 @@
1+
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
2+
3+
* [3e4e9e2] getmybp.py, stdnum/cn/loc.dat, stdnum/iban.dat,
4+
stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat: Update
5+
database files
6+
7+
This also updates the getmybp script to support the new layout.
8+
9+
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
10+
11+
* [3e344d1] stdnum/iso6346.py: Add formatting of ISO 6346 container
12+
codes
13+
14+
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
15+
16+
* [aa1c298] getnumlist.py, stdnum/damm.py, tests/test_damm.doctest:
17+
Implement Damm algorithm
18+
19+
This is a generic check digit algorithm. 2016-07-26 Arthur de
20+
Jong <arthur@arthurdejong.org>
21 10000 +
22+
* [411d038] stdnum/fr/nif.py: Fix French NIF format test
23+
24+
Fixes 2409ee9. 2016-07-26 Arthur de Jong
25+
<arthur@arthurdejong.org>
26+
27+
* [06e4165] stdnum/ch/ssn.py: Improve validation to Swiss SSN number
28+
29+
The EAN-13 number should start with 756.
30+
31+
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
32+
33+
* [1907c67] stdnum/br/cpf.py: Add documentation to Brazillian CPF
34+
35+
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
36+
37+
* [cf428ac] stdnum/iso6346.py: Add pointer to ISO 6346 information
38+
39+
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
40+
41+
* [011c0f0] stdnum/gb/nhs.py: Fix copyright notice
42+
43+
2016-05-22 Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
44+
45+
* [2409ee9] stdnum/fr/nif.py: Add NIF - French tax identification
46+
number
47+
48+
Add module for NIF also known as SPI number.
49+
50+
2016-07-26 Arthur de Jong <arthur@arthurdejong.org>
51+
52+
* [43b58d3] stdnum/fr/nir.py: Move NIR check digit calculation
53+
to function
54+
55+
This also fixes a number of formatting issues, improves the
56+
module description and adds tests for the 2A and 2B departments.
57+
58+
2016-05-29 Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
59+
60+
* [879f2d3] stdnum/fr/nir.py: Improve French NIR validation
61+
62+
Please note that the 7th character of the NIR might be 'A' or
63+
'B'. Other than that the NIR contains digits only.
64+
65+
2016-07-25 Arthur de Jong <arthur@arthurdejong.org>
66+
67+
* [fd9f953] stdnum/fr/siren.py, stdnum/fr/siret.py,
68+
tests/test_fr_siren.doctest, tests/test_fr_siret.doctest: Add
69+
extra tests for SIREN and SIRET
70+
71+
This adds tests for a few numbers that have been found online
72+
and allows the dot as a seprator because those numbers were found.
73+
74+
It also ensures that the SIREN validation is also called for
75+
SIRET and adds a SIRET formatting function.
76+
77+
2016-05-27 Yoann Aubineau <y.aubineau@criteo.com>
78+
79+
* [5ba3a87] stdnum/fr/siret.py: Add French SIRET number
80+
81+
Add a SIRET (Système d'Identification du Répertoire des
82+
ETablissements, a French company etablishment identification
83+
number) module.
84+
85+
2016-05-29 Arthur de Jong <arthur@arthurdejong.org>
86+
87+
* [dc708f0] stdnum/isil.py, tests/test_isil.doctest: Add more
88+
ISIL tests
89+
90+
This moves a few of the tests from the module to a dedicated
91+
test file and adds tests for a number of ISIL numbers found online.
92+
93+
2016-05-29 Arthur de Jong <arthur@arthurdejong.org>
94+
95+
* [4a57d84] stdnum/us/tin.py: Fix formatting of bulleted list
96+
97+
2016-05-28 Arthur de Jong <arthur@arthurdejong.org>
98+
99+
* [9b74840] stdnum/ch/ssn.py, tests/test_ch_ssn.doctest: Fix bug
100+
in Swiss SSN validation
101+
102+
The validation was delegated to the EAN module but the number
103+
is supposed to be an EAN-13 only and and EAN-8 was also accepted.
104+
105+
This also reformats the docstring.
106+
107+
2016-05-28 Arthur de Jong <arthur@arthurdejong.org>
108+
109+
* [f3c2491] stdnum/ie/vat.py, tests/test_ie_vat.doctest: Fix bug
110+
in Irish VAT number validation
111+
112+
The last digits of the number that should be letters were not
113+
tested to be letters which could result in ValueError being
114+
raised for certain validations.
115+
116+
This also clarifies the documentation and adds a convert()
117+
function to convert numbers from the old format (where the
118+
second character would be a letter or symbol) to the new format
119+
(7 digits followed by 1 or 2 letters).
120+
121+
2016-05-28 Arthur de Jong <arthur@arthurdejong.org>
122+
123+
* [b5397ed] tests/test_robustness.doctest: Small improvements
124+
to tests
125+
126+
This includes a formatting fix and removes an unused variable
127+
from a test.
128+
129+
2016-05-28 Arthur de Jong <arthur@arthurdejong.org>
130+
131+
* [d85b27f] stdnum/util.py: Fix get_module_description()
132+
133+
This fixes the initial implementation in 3f6d52a.
134+
135+
2016-05-22 Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr>
136+
137+
* [a1afa76] stdnum/fr/nir.py: Add French NIR
138+
139+
Add module for NIR also known as social security number.
140+
141+
2016-05-09 Arthur de Jong <arthur@arthurdejong.org>
142+
143+
* [0a2f39e] stdnum/gb/nhs.py: Add United Kingdom NHS number
144+
145+
Add module for United Kingdom National Health Service patient
146+
identifier.
147+
148+
2016-05-09 Arthur de Jong <arthur@arthurdejong.org>
149+
150+
* [2126947] stdnum/numdb.py: Read numdb files in context manager
151+
152+
This ensures that the file is explicitly closed in the function
153+
to avoid "unclosed file" warnings.
154+
155+
See: https://github.com/arthurdejong/python-stdnum/issues/33
156+
157+
2016-04-11 Arthur de Jong <arthur@arthurdejong.org>
158+
159+
* [e28b5e1] stdnum/ch/uid.py, stdnum/ch/vat.py, stdnum/cusip.py,
160+
stdnum/dk/cpr.py, stdnum/iban.py, stdnum/imei.py, stdnum/isbn.py,
161+
stdnum/isil.py, stdnum/isin.py, stdnum/issn.py, stdnum/mx/rfc.py,
162+
stdnum/nl/bsn.py, stdnum/nl/onderwijsnummer.py, stdnum/pl/regon.py,
163+
stdnum/tr/tckimlik.py, stdnum/us/ssn.py, stdnum/verhoeff.py:
164+
Make more information links consistent
165+
166+
Also fix a docstring in stdnum.nl.bsn and add a pointer to
167+
stdnum.nl.onderwijsnummer.
168+
169+
2016-04-09 Arthur de Jong <arthur@arthurdejong.org>
170+
171+
* [feab917] stdnum/eu/vat.py, stdnum/tr/tckimlik.py, stdnum/util.py:
172+
Implement online TC Kimlik check
173+
174+
This refactors out the SOAP client function that was implemented
175+
for VIES to the stdnum.utils module.
176+
177+
2016-04-09 Arthur de Jong <arthur@arthurdejong.org>
178+
179+
* [619b097] stdnum/tr/__init__.py, stdnum/tr/tckimlik.py,
180+
tests/test_tr_tckimlik.doctest: Add Turkish personal identification
181+
number
182+
183+
2016-04-01 Arthur de Jong <arthur@arthurdejong.org>
184+
185+
* [095dcbb] stdnum/mx/rfc.py, tests/test_mx_rfc.doctest: Document
186+
accuracy of RFC check digit test
187+
188+
There is an online service that allows validating RFC numbers. It
189+
seems there are a lot of numbers that do not match the check
190+
digit algorithm which confirms disabling the check digit test
191+
by default is a good idea.
192+
193+
Also see https://github.com/arthurdejong/python-stdnum/issues/32
194+
195+
2016-03-05 Arthur de Jong <arthur@arthurdejong.org>
196+
197+
* [41cecb5] ChangeLog, NEWS, getnumlist.py, setup.py,
198+
stdnum/__init__.py: Get files ready for 1.3 release
199+
1200
2016-03-03 Arthur de Jong <arthur@arthurdejong.org>
2201

3202
* [6457734] getcnloc.py, getiban.py, stdnum/cn/loc.dat,

NEWS

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
changes from 1.3 to 1.4
2+
-----------------------
3+
4+
* add modules for the following number formats:
5+
- NIF (Numéro d'Immatriculation Fiscale, French tax identification number)
6+
provided by Dimitri Papadopoulos
7+
- NIR (French personal identification number) provided by Dimitri
8+
Papadopoulos
9+
- SIRET (a French company establishment identification number) provided by
10+
Yoann Aubineau
11+
- NHS (United Kingdom National Health Service patient identifier)
12+
- T.C. Kimlik No. (Turkish personal identification number)
13+
* add an implementation of the Damm algorithm
14+
* ensure data files are properly closed
15+
* documentation improvements
16+
* extend test suite
17+
* a number of minor bug fixes and improvements
18+
19+
120
changes from 1.2 to 1.3
221
-----------------------
322

README

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ Currently this package supports the following formats:
5050
* Finnish Association Identifier
5151
* HETU (Henkilötunnus, Finnish personal identity code)
5252
* Y-tunnus (Finnish business identifier)
53+
* NIF (Numéro d'Immatriculation Fiscale, French tax identification number)
54+
* NIR (French personal identification number)
5355
* SIREN (a French company identification number)
56+
* SIRET (a French company establishment identification number)
5457
* n° TVA (taxe sur la valeur ajoutée, French VAT number)
58+
* NHS (United Kingdom National Health Service patient identifier)
5559
* SEDOL number (Stock Exchange Daily Official List number)
5660
* VAT (United Kingdom (and Isle of Man) VAT registration number)
5761
* FPA, ΦΠΑ, ΑΦΜ (Αριθμός Φορολογικού Μητρώου, the Greek VAT number)
@@ -60,7 +64,7 @@ Currently this package supports the following formats:
6064
* ANUM (Közösségi adószám, Hungarian VAT number)
6165
* IBAN (International Bank Account Number)
6266
* PPS No (Personal Public Service Number, Irish personal number)
63-
* VAT (Irish VAT number)
67+
* VAT (Irish tax reference number)
6468
* IMEI (International Mobile Equipment Identity)
6569
* IMO number (International Maritime Organization number)
6670
* IMSI (International Mobile Subscriber Identity)
@@ -103,6 +107,7 @@ Currently this package supports the following formats:
103107
* IČ DPH (IČ pre daň z pridanej hodnoty, Slovak VAT number)
104108
* RČ (Rodné číslo, the Slovak birth number)
105109
* COE (Codice operatore economico, San Marino national tax number)
110+
* T.C. Kimlik No. (Turkish personal identification number)
106111
* ATIN (U.S. Adoption Taxpayer Identification Number)
107112
* EIN (U.S. Employer Identification Number)
108113
* ITIN (U.S. Individual Taxpayer Identification Number)
@@ -114,6 +119,7 @@ Currently this package supports the following formats:
114119
Furthermore a number of generic check digit algorithms are available:
115120

116121
* the Verhoeff algorithm
122+
* the Damm algorithm
117123
* the Luhn and Luhn mod N algorithms
118124
* some algorithms described in ISO/IEC 7064: Mod 11, 2, Mod 37, 2,
119125
Mod 97, 10, Mod 11, 10 and Mod 37, 36
@@ -152,7 +158,7 @@ also work with older versions of Python.
152158
Copyright
153159
---------
154160

155-
Copyright (C) 2010-2015 Arthur de Jong and others
161+
Copyright (C) 2010-2016 Arthur de Jong and others
156162

157163
This library is free software; you can redistribute it and/or
158164
modify it under the terms of the GNU Lesser General Public

docs/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ Generic check digit algorithms
7474
.. autosummary::
7575
:toctree:
7676

77+
damm
7778
iso7064
7879
luhn
7980
verhoeff
@@ -126,8 +127,12 @@ Available formats
126127
fi.associationid
127128
fi.hetu
128129
fi.ytunnus
130+
fr.nif
131+
fr.nir
129132
fr.siren
133+
fr.siret
130134
fr.tva
135+
gb.nhs
131136
gb.sedol
132137
gb.vat
133138
gr.vat
@@ -179,6 +184,7 @@ Available formats
179184
sk.dph
180185
sk.rc
181186
sm.coe
187+
tr.tckimlik
182188
us.atin
183189
us.ein
184190
us.itin

docs/stdnum.damm.rst

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

docs/stdnum.fr.nif.rst

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

docs/stdnum.fr.nir.rst

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

docs/stdnum.fr.siret.rst

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

docs/stdnum.gb.nhs.rst

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

docs/stdnum.tr.tckimlik.rst

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

0 commit comments

Comments
 (0)
0