8000 Get files ready for 1.2 release · andres-pcg/python-stdnum@1361817 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1361817

Browse files
committed
Get files ready for 1.2 release
1 parent 1327045 commit 1361817

23 files changed

+472
-4
lines changed

ChangeLog

Lines changed: 306 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,309 @@
1+
2015-10-11 Arthur de Jong <arthur@arthurdejong.org>
2+
3+
* [1327045] getcnloc.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 script to download updated Chinese
8+
location names.
9+
10+
2015-10-11 Arthur de Jong <arthur@arthurdejong.org>
11+
12+
* [a891c60] stdnum/al/nipt.py, stdnum/co/nit.py, stdnum/iban.py,
13+
stdnum/ie/pps.py, stdnum/imei.py, stdnum/isan.py,
14+
stdnum/iso6346.py, stdnum/it/codicefiscale.py, stdnum/meid.py,
15+
stdnum/nl/postcode.py, stdnum/numdb.py, stdnum/pt/nif.py,
16+
stdnum/us/atin.py, stdnum/us/ein.py, stdnum/us/itin.py,
17+
stdnum/us/ptin.py, stdnum/us/ssn.py, stdnum/util.py: Code style
18+
improvements
19+
20+
Ensure that regular expressions are r'' strings, avoid too
21+
long lines and fix line wrapping. Also avoid catching toplevel
22+
Exception when possible and use binascii for hex to binary
23+
conversion which is available in both Python 2 and 3.
24+
25+
2015-10-11 Arthur de Jong <arthur@arthurdejong.org>
26+
27+
* [3c7a302] stdnum/cusip.py, stdnum/de/wkn.py, stdnum/gb/sedol.py,
28+
stdnum/isin.py: Convert security ids to ISIN
29+
30+
Allow conversion from national securities identifiers to the
31+
international ISIN.
32+
33+
2015-10-11 Arthur de Jong <arthur@arthurdejong.org>
34+
35+
* [c565517] stdnum/de/wkn.py, tests/test_de_wkn.doctest: Add
36+
German Wertpapierkennnummer
37+
38+
The format itself is pretty simple (no check digit) but this
39+
module is more for completeness sake.
40+
41+
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
42+
43+
* [961815f] stdnum/gb/sedol.py, tests/test_gb_sedol.doctest:
44+
Add SEDOL number
45+
46+
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
47+
48+
* [fb91775] stdnum/ru/__init__.py: Add information to Russian package
49+
50+
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
51+
52+
* [ebb5c07] MANIFEST.in, numdb-test.dat, stdnum/numdb.py,
53+
tests/numdb-test.dat: Move numdb test file
54+
55+
This places the test database file in the tests directory.
56+
57+
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
58+
59+
* [fa8099e] stdnum/imo.py: Add int. maritime org. number (IMO)
60+
61+
This adds checks for the International Maritime Organization
62+
number used to identify ships. However, there seem to be a lot
63+
of ships with an IMO number that does not follow these rules
64+
(different check digits or even length).
65+
66+
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
67+
68+
* [111b4fd] stdnum/isan.py, tests/test_isan.doctest: Fix handling
69+
of strip_check_digits in ISAN
70+
71+
This fixes the compact() function to honor the strip_check_digits
72+
argument and does not validate the check digits if they are
73+
passed to validate together with strip_check_digits.
74+
75+
2015-10-10 Arthur de Jong <arthur@arthurdejong.org>
76+
77+
* [9f9d13c] stdnum/isin.py, tests/test_isin.doctest: Add
78+
international securities id (ISIN)
79+
80+
This adds support for handling ISINs (International Securities
81+
Identification Number). The can contain a CUSIP but performing
82+
this additional validation is currently not performed.
83+
84+
2015-10-09 Arthur de Jong <arthur@arthurdejong.org>
85+
86+
* [522611c] stdnum/cusip.py, tests/test_cusip.doctest: Add CUSIP
87+
number
88+
89+
2015-10-08 Arthur de Jong <arthur@arthurdejong.org>
90+
91+
* [320ecea] stdnum/ch/uid.py, stdnum/ch/vat.py,
92+
tests/test_ch_uid.doctest, tests/test_ch_vat.doctest: Add Swiss
93+
UID and VAT numbers
94+
95+
The Swiss VAT number (MWST, TVA, IVA, TPV) is the UID
96+
(Unternehmens-Identifikationsnummer) followed by one of the
97+
VAT abbreviations.
98+
99+
2015-10-05 Arthur de Jong <arthur@arthurdejong.org>
100+
101+
* [ec9bcb0] stdnum/mx/__init__.py, stdnum/mx/rfc.py,
102+
tests/test_mx_rfc.doctest: Add Mexican RFC number
103+
104+
This adds support for the Mexican tax number RFC (Registro
105+
Federal de Contribuyentes).
106+
107+
This module includes a number of checks on the number but the
108+
validation of the last check digit is disabled by default because
109+
a large number of numbers were found that were otherwise valid
110+
but had an invalid check digit.
111+
112+
2015-10-04 Arthur de Jong <arthur@arthurdejong.org>
113+
114+
* [fd0cfd9] stdnum/eu/vat.py, stdnum/util.py: Move finding VAT
115+
module to util
116+
117+
This moves the finding of a VAT module to the util module so
118+
that it can be more easily re-used for non-EU countries.
119+
120+
2015-10-04 Arthur de Jong <arthur@arthurdejong.org>
121+
122+
* [38ed9c0] stdnum/co/nit.py, tests/test_co_nit.doctest: Update
123+
Colombian NIT checks
124+
125+
This adds a number of tests for numbers found online. The length
126+
check has also been revisited because both shorter numbers and
127+
longer number have been found.
128+
129+
This also updates the format() function to handle arbitrary
130+
length numbers.
131+
132+
2015-10-02 Arthur de Jong <arthur@arthurdejong.org>
133+
134+
* [d413f95] stdnum/isbn.py: Fix comment
135+
136+
2015-10-02 Arthur de Jong <arthur@arthurdejong.org>
137+
138+
* [3d1dbbb] stdnum/ar/cuit.py, stdnum/bg/egn.py, stdnum/bg/pnf.py,
139+
stdnum/bg/vat.py, stdnum/co/nit.py, stdnum/dk/cpr.py,
140+
stdnum/dk/cvr.py, stdnum/do/rnc.py, stdnum/ec/ruc.py,
141+
stdnum/ee/kmkr.py, stdnum/fi/alv.py, stdnum/gb/vat.py,
142+
stdnum/hu/anum.py, stdnum/is_/kennitala.py, stdnum/lv/pvn.py,
143+
stdnum/mt/vat.py, stdnum/no/orgnr.py, stdnum/pl/nip.py,
144+
stdnum/pl/pesel.py, stdnum/pl/regon.py, stdnum/ro/cf.py,
145+
stdnum/ro/cnp.py: Use zip() instead of enumerate()
146+
147+
Makes the code slightly simpler and more compact.
148+
149+
2015-10-01 Sergio Isidoro <sergio@holvi.com>
150+
151+
* [222a87e] stdnum/fi/__init__.py: Add alias to hetu in for finnish
152+
personal id code
153+
154+
2015-09-27 Arthur de Jong <arthur@arthurdejong.org>
155+
156+
* [e045c71] tests/test_eu_vat.doctest: Add more numbers found online
157+
158+
2015-09-07 Dariusz Choruzy <darobial@gmail.com>
159+
160+
* [36217ac] stdnum/pl/regon.py, tests/test_pl_regon.doctest:
161+
Add Polish REGON number
162+
163+
2015-09-06 Dariusz Choruzy <darobial@gmail.com>
164+
165+
* [a0cb61f] stdnum/pl/pesel.py: Add Polish PESEL number
166+
167+
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
168+
169+
* [5ab8d24] stdnum/ru/__init__.py, stdnum/ru/inn.py,
170+
tests/test_ru_inn.doctest: Add Russioan ИНН (INN) tax ID
171+
172+
This adds a basic implementation of the Russian
173+
Идентификационный номер
174+
налогоплательщика (tax identification
175+
number). This currently only checks the format, length and check
176+
digits but not whether each of the parts of the number are valid
177+
(e.g. valid region specified).
178+
179+
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
180+
181+
* [714fa60] stdnum/br/cnpj.py, tests/test_br_cnpj.doctest: Add
182+
Brazillian CNPJ business identifier
183+
184+
Add module for Cadastro Nacional da Pessoa Jurídica, the
185+
Brazillian company identifier.
186+
187+
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
188+
189+
* [b939099] getiban.py, stdnum/iban.dat, tests/test_iban.doctest:
190+
Update IBAN tests
191+
192+
This updates the iban.dat file from the IBAN registry, includes
193+
a fix for handling spaces in the BBAN and adds some more IBAN
194+
examples from the IBAN registry.
195+
196+
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
197+
198+
* [7714db7] stdnum/iso9362.py: Make uppercase in compact()
199+
200+
This changes the compact() function of the ISO 9362 module to
201+
make all the letters uppercase.
202+
203+
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
204+
205+
* [6afa875] setup.cfg, stdnum/imei.py, stdnum/isbn.py,
206+
stdnum/isil.py, stdnum/ismn.py, stdnum/meid.py, stdnum/us/atin.py,
207+
stdnum/us/ein.py, stdnum/us/itin.py: Turn on and improve branch
208+
coverage
209+
210+
2015-08-16 Arthur de Jong <arthur@arthurdejong.org>
211+
212+
* [e88ba0b] stdnum/dk/cpr.py, stdnum/is_/kennitala.py,
213+
stdnum/it/codicefiscale.py: Small typo and code style fixes
214+
215+
2015-08-03 Tomas Karasek <tom.to.the.k@gmail.com>
216+
217+
* [243e50f] stdnum/ee/ik.py, tests/test_ee_ik.doctest: Add validation
218+
of Estonian personal ID
219+
220+
2015-06-12 Lari Haataja <lari@holvi.com>
221+
222+
* [7f9c94f] stdnum/at/businessid.py: Add company register number
223+
validation for Austria
224+
225+
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
226+
227+
* [0cbba6e] : Merge Finnish numbers provided by Holvi
228+
229+
This merges the Finnish numbers provided by Holvi Payment Services
230+
Oy as found here: https://github.com/holvi/python-stdnum
231+
232+
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
233+
234+
* [320326e] stdnum/fi/ytunnus.py: Split out format() function
235+
236+
This uses the stdnum.fi.alv module more extensively and ensures
237+
that validate() returns a compact representation and a separate
238+
format() function is available.
239+
240+
2015-06-23 Lari Haataja <lari@holvi.com>
241+
242+
* [37f7fa6] stdnum/fi/__init__.py, stdnum/fi/ytunnus.py: Add
243+
validation for Finnish y-tunnus (business identifier)
244+
245+
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
246+
247+
* [db24746] stdnum/fi/associationid.py: Add a whitelist for short
248+
numbers and fix API
249+
250+
This implements separate functions compact() and format() and
251+
fixes the doctests. This also implements a whitelist of registered
252+
short numbers to avoid accidentally validating just any number.
253+
254+
2015-06-16 Lari Haataja <lari@holvi.com>
255+
256+
* [8d30992] stdnum/fi/associationid.py: Validation for Finnish
257+
association identifier
258+
259+
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
260+
261+
* [e107457] : Merge changes to use CN Open Data
262+
263+
2015-07-12 Arthur de Jong <arthur@arthurdejong.org>
264+
265+
* [a1a134e] stdnum/eu/vat.py: Fall back to pysimplesoap if suds
266+
is unavailable
267+
268+
Initial testing seems to suggest that proxy-support is not
269+
complete with pysimplesoap (at least httplib2 and PySocks seem
270+
to be required).
271+
272+
2015-04-28 Lionel Elie Mamane <lmamane@debian.org>
273+
274+
* [8fe44f9] stdnum/eu/vat.py: Implement alternate VIES check
275+
276+
Add a function to stdnum.eu.vat so that when one does a VIES VAT
277+
number check, one gets a proof (certificate) that one did the
278+
check, as defence against the VAT administration later putting
279+
this in doubt. This certificate is provided by the VIES service,
280+
if one provides one's own VAT number.
281+
282+
2015-06-08 Jiangge Zhang <tonyseek@gmail.com>
283+
284+
* [6308261] stdnum/cn/loc.dat: Download and generate latest Chinese
285+
location data.
286+
287+
2015-06-08 Jiangge Zhang <tonyseek@gmail.com>
288+
289+
* [12ba352] getcnloc.py: Download GB2260 data from github.com/cn.
290+
291+
2015-04-27 Arthur de Jong <arthur@arthurdejong.org>
292+
293+
* [8925ae2] tests/test_iso6346.doctest: Fix copyright header
294+
295+
2015-04-27 Arthur de Jong <arthur@arthurdejong.org>
296+
297+
* [58775d9] ChangeLog, NEWS, README, docs/index.rst,
298+
docs/stdnum.al.nipt.rst, docs/stdnum.ar.cuit.rst,
299+
docs/stdnum.cl.rut.rst, docs/stdnum.co.nit.rst,
300+
docs/stdnum.do.cedula.rst, docs/stdnum.do.rnc.rst,
301+
docs/stdnum.is_.kennitala.rst, docs/stdnum.is_.vsk.rst,
302+
docs/stdnum.iso9362.rst, docs/stdnum.no.mva.rst,
303+
docs/stdnum.no.orgnr.rst, docs/stdnum.se.orgnr.rst,
304+
docs/stdnum.sm.coe.rst, setup.py, stdnum/__init__.py: Get files
305+
ready for 1.1 release
306+
1307
2015-04-27 Arthur de Jong <arthur@arthurdejong.org>
2308

3309
* [583b066] getcnloc.py, stdnum/cn/loc.dat, stdnum/iban.dat,

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
include README NEWS ChangeLog COPYING *.py
2-
recursive-include tests *.doctest
2+
recursive-include tests *.doctest *.dat
33
recursive-include docs *.rst *.py

NEWS

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
changes from 1.1 to 1.2
2+
-----------------------
3+
4+
* add modules for the following number formats:
5+
- Austrian Company Register Numbers
6+
- CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazillian company identifier)
7+
- UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
8+
- VAT, MWST, TVA, IVA, TPV (Mehrwertsteuernummer, the Swiss VAT number)
9+
- CUSIP number (financial security identification number)
10+
- Wertpapierkennnummer (German securities identification code)
11+
- Isikukood (Estonian Personcal ID number)
12+
- Finnish Association Identifier
13+
- Y-tunnus (Finnish business identifier)
14+
- SEDOL number (Stock Exchange Daily Official List number)
15+
- IMO number (International Maritime Organization number)
16+
- ISIN (International Securities Identification Number)
17+
- RFC (Registro Federal de Contribuyentes, Mexican tax number)
18+
- PESEL (Polish national identification number)
19+
- REGON (Rejestr Gospodarki Narodowej, Polish register of economic units)
20+
- ИНН (Идентификационный номер налогоплательщика, Russian tax identifier)
21+
* add an alternate VIES check (check_vies_approx()) that includes a proof
22+
(certificate) that the check was performed
23+
* fall back to pysimplesoap if suds is unavailable
24+
* test and code quality improvements
25+
26+
127
changes from 1.0 to 1.1
228
-----------------------
329

0 commit comments

Comments
 (0)
0