8000 Get files ready for 0.9 release · cedk/python-stdnum@d933aab · GitHub
[go: up one dir, main page]

Skip to content

Commit d933aab

Browse files
committed
Get files ready for 0.9 release
1 parent 5c1765e commit d933aab

16 files changed

+249
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ __pycache__
99
/python_stdnum.egg-info
1010
/.coverage
1111
/coverage
12+
/distribute-*.egg

ChangeLog

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,166 @@
1+
2013-12-31 Arthur de Jong <arthur@arthurdejong.org>
2+
3+
* [5c1765e] stdnum/iban.dat, stdnum/isbn.dat: Update database files
4+
5+
2013-12-31 Arthur de Jong <arthur@arthurdejong.org>
6+
7+
* [4217c35] stdnum/isan.py, stdnum/meid.py, stdnum/util.py: Add
8+
pragma: no cover for Python 3
9+
10+
Some statements are not covered in Python 3 tests.
11+
12+
2013-12-31 Arthur de Jong <arthur@arthurdejong.org>
13+
14+
* [6c49ca8] getiban.py: Update getiban script
15+
16+
This switches to use the csv module to support multi-line column
17+
values. This also handles some problems in the BBAN structure
18+
column that would contain an IBAN structure.
19+
20+
2013-12-31 Arthur de Jong <arthur@arthurdejong.org>
21+
22+
* [0ee74e5] ChangeLog: Generate Changelog with different formatter
23+
24+
git log --date=short --name-only \ --format="%x0c%ad %aN
25+
<%aE>%n%n%x09* [%h]%x00%s%n%x00%+b%x00" | \
26+
awk 'BEGIN { RS="\f"; FS="\0" } { if ($1) { gsub(/\n*$/,
27+
"", $4); gsub(/^\n*/, "", $4); gsub(/\n/, ", ", $4);
28+
gsub(/\ngit-svn-id.*/, "", $3); gsub(/\n/, "\n\t ", $3); print
29+
$1 " " $4 ": "; print "\t " $2 $3 }}' | \ fmt --width=78 -c
30+
> ChangeLog
31+
32+
2013-12-30 Cédric Krier <ced@b2ck.com>
33+
34+
* [a148835] stdnum/gb/vat.py, tests/test_gb_vat.doctest: Add some
35+
new VAT numbers for GB
36+
37+
Add support for restarting from November 2009 using 9755.
38+
Add support for EU format of health authorities
39+
40+
See: https://github.com/arthurdejong/python-stdnum/pull/4
41+
42+
2013-12-12 eneq123 <koc@loki.glas.net>
43+
44+
* [4609a22] getimsi.py, stdnum/imsi.dat: Update parsing in getimsi
45+
script
46+
47+
This updates the regexes and includes seom optimizations.
48+
49+
See: https://github.com/arthurdejong/python-stdnum/issues/1
50+
51+
2013-12-30 Cédric Krier <ced@b2ck.com>
52+
53+
* [9ec3cb0] stdnum/eu/vat.py: Add support for proxy
54+
55+
2013-12-04 Arthur de Jong <arthur@arthurdejong.org>
56+
57+
* [7f30979] getimsi.py, stdnum/imsi.dat: Update getimsi script
58+
59+
This updates the script due to the Wikipedia article change and
60+
removes the code for getting the data from ITU for now.
61+
62+
See: https://github.com/arthurdejong/python-stdnum/issues/1
63+
64+
2013-11-09 Arthur de Jong <arthur@arthurdejong.org>
65+
66+
* [b0c47d5] stdnum/nl/__init__.py, stdnum/nl/postcode.py: Add a
67+
Dutch postal code module
68+
69+
The Dutch postal code (postcode) consists of four digits followed
70+
by two characters and together with the house number should
71+
uniquely identify any address.
72+
73+
Addresses trac ticket #7.
74+
75+
2013-11-09 Arthur de Jong <arthur@arthurdejong.org>
76+
77+
* [73d05b0] stdnum/nl/brin.py: Add a Dutch Brin number module
78+
79+
The Brin (Basis Registratie Instellingen) is a number to identify
80+
schools and related institutions.
81+
82+
Addresses trac ticket #6.
83+
84+
2013-11-09 Arthur de Jong <arthur@arthurdejong.org>
85+
86+
* [73330a1] stdnum/nl/onderwijsnummer.py: Clarify onderwijsnummer
87+
description
88+
89+
2013-11-09 Arthur de Jong <arthur@arthurdejong.org>
90+
91+
* [188d3ea] : Add various United States Tax number modules
92+
93+
This adds modules for the Individual Taxpayer Identification Number
94+
(ITIN), the Employer Identification Number (EIN), Adoption Taxpayer
95+
Identification Number (ATIN) and Preparer Tax Identification
96+
Number (PTIN) that together with the Social Security Number
97+
(SSN) are valid Taxpayer Identification Numbers (TIN)
98+
99+
2013-10-12 Arthur de Jong <arthur@arthurdejong.org>
100+
101+
* [9530635] stdnum/us/tin.py: Add a United States TIN module
102+
103+
The Taxpayer Identification Number is used used for tax purposes
104+
in the United States. This module uses the SSN, ITIN, EIN,
105+
PTIN and ATIN modules to determine validitiy of the TIN.
106+
107+
2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
108+
109+
* [316e3f2] stdnum/us/ptin.py: Add a United States PTIN module
110+
111+
A Preparer Tax Identification Number (PTIN) is United States
112+
identification number for tax return preparers. It is an
113+
eight-digit number prefixed with a capital P.
114+
115+
2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
116+
117+
* [47ea6ea] stdnum/us/atin.py: Add a United States ATIN module
118+
119+
An Adoption Taxpayer Identification Number (ATIN) is a temporary
120+
nine-digit number issued by the United States IRS for a child for
121+
whom the adopting parents cannot obtain a Social Security Number.
122+
123+
2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
124+
125+
* [b1c9ba5] stdnum/us/ein.dat, stdnum/us/ein.py: Add a United
126+
States EIN module
127+
128+
The Employer Identification Number (EIN), also known as Federal
129+
Employer Identification Number (FEIN), is used to identify a
130+
business entity in the United States. It is issued to anyone
131+
that has to pay withholding taxes on employees.
132+
133+
2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
134+
135+
* [19039f7] stdnum/us/itin.py: Add a United States ITIN module
136+
137+
The ITIN (Individual Taxpayer Identification Number) is issued
138+
by the United States IRS to individuals who are required to
139+
have a taxpayer identification number but who are not eligible
140+
to obtain a Social Security Number.
141+
142+
2013-10-11 Arthur de Jong <arthur@arthurdejong.org>
143+
144+
* [70b974b] stdnum/meid.py: Remove unused import
145+
146+
2013-11-08 Arthur de Jong <arthur@arthurdejong.org>
147+
148+
* [f122c88] stdnum/util.py: Try to replace Unicode characters
149+
with ASCII
150+
151+
This changes the stdnum.util.clean() method that is used by all
152+
modules to replace alternative Unicode dashes, dots, etc. by
153+
their ASCII equivalent so the numbers will be automatically
154+
converted and validated.
155+
156+
Inspiration for this change came from
157+
https://github.com/JNRowe/pyisbn/pull/6
158+
159+
2013-06-14 Arthur de Jong <arthur@arthurdejong.org>
160+
161+
* [c042f02] ChangeLog, NEWS, stdnum/__init__.py: Get files ready
162+
for 0.8.1 release
163+
1164
2013-06-14 Arthur de Jong <arthur@arthurdejong.org>
2165

3166
* [31e5e81] MANIFEST.in, setup.py: Ensure that all used files are

NEWS

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
changes from 0.8.1 to 0.9
2+
-------------------------
3+
4+
* add modules for the following number formats:
5+
- Brin number (Dutch number for schools)
6+
- Postcode (Dutch postal code)
7+
- ATIN (U.S. Adoption Taxpayer Identification Number)
8+
- EIN (U.S. Employer Identification Number)
9+
- ITIN (U.S. Individual Taxpayer Identification Number)
10+
- PTIN (U.S. Preparer Tax Identification Number)
11+
- TIN (U.S. Taxpayer Identification Number)
12+
* try to replace Unicode characters with similar-looking ASCII characters
13+
* update getimsi script (thanks eneq123)
14+
* update getiban script
15+
* add proxy support to the stdnum.eu.vat.check_vies() function (thanks
16+
Cédric Krier)
17+
* support newer United Kingdom VAT numbers
18+
19+
120
changes from 0.8 to 0.8.1
221
-------------------------
322

README

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ Currently this package supports the following formats:
5454
* MEID (Mobile Equipment Identifier)
5555
* VAT (Maltese VAT number)
5656
* NRIC No. (Malaysian National Registration Identity Card Number)
57+
* Brin number (Dutch number for schools)
5758
* BSN (Burgerservicenummer, Dutch national identification number)
5859
* BTW-nummer (Omzetbelastingnummer, the Dutch VAT number)
59-
* Onderwijsnummer (Dutch school number)
60+
* Onderwijsnummer (Dutch student school number)
61+
* Postcode (Dutch postal code)
6062
* NIP (Numer Identyfikacji Podatkowej, Polish VAT number)
6163
* NIF (Número de identificação fiscal, Portuguese VAT number)
6264
* CF (Cod de înregistrare în scopuri de TVA, Romanian VAT number)
@@ -65,7 +67,12 @@ Currently this package supports the following formats:
6567
* ID za DDV (Davčna številka, Slovenian VAT number)
6668
* IČ DPH (IČ pre daň z pridanej hodnoty, Slovak VAT number)
6769
* RČ (Rodné číslo, the Slovak birth number)
70+
* ATIN (U.S. Adoption Taxpayer Identification Number)
71+
* EIN (U.S. Employer Identification Number)
72+
* ITIN (U.S. Individual Taxpayer Identification Number)
73+
* PTIN (U.S. Preparer Tax Identification Number)
6874
* SSN (U.S. Social Security Number)
75+
* TIN (U.S. Taxpayer Identification Number)
6976

7077
Furthermore a number of generic check digit algorithms are available:
7178

docs/index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ Available formats
130130
meid
131131
mt.vat
132132
my.nric
133+
nl.brin
133134
nl.bsn
134135
nl.btw
135136
nl.onderwijsnummer
137+
nl.postcode
136138
pl.nip
137139
pt.nif
138140
ro.cf
@@ -141,4 +143,9 @@ Available formats
141143
si.ddv
142144
sk.dph
143145
sk.rc
146+
us.atin
147+
us.ein
148+
us.itin
149+
us.ptin
144150
us.ssn
151+
us.tin

docs/stdnum.my.nric.rst

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

docs/stdnum.nl.brin.rst

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

docs/stdnum.nl.postcode.rst

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

docs/stdnum.us.atin.rst

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

docs/stdnum.us.ein.rst

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

docs/stdnum.us.itin.rst

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

docs/stdnum.us.ptin.rst

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

docs/stdnum.us.tin.rst

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

getiban.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# getiban.py - script to donwload and parse data from the IBAN registry
44
#
5-
# Copyright (C) 2011 Arthur de Jong
5+
# Copyright (C) 2011, 2013 Arthur de Jong
66
#
77
# This library is free software; you can redistribute it and/or
88
# modify it under the terms of the GNU Lesser General Public

getimsi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# getismsi.py - script to donwload data from Wikipedia to build the database
44
#
5-
# Copyright (C) 2011 Arthur de Jong
5+
# Copyright (C) 2011, 2013 Arthur de Jong
66
#
77
# This library is free software; you can redistribute it and/or
88
# modify it under the terms of the GNU Lesser General Public

stdnum/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@
7070
* meid: MEID (Mobile Equipment Identifier)
7171
* mt.vat: VAT (Maltese VAT number)
7272
* my.nric: NRIC No. (Malaysian National Registration Identity Card Number)
73+
* nl.brin: Brin number (Dutch number for schools)
7374
* nl.bsn: BSN (Burgerservicenummer, Dutch national identification number)
7475
* nl.btw: BTW-nummer (Omzetbelastingnummer, the Dutch VAT number)
75-
* nl.onderwijsnummer: Onderwijsnummer (Dutch school number)
76+
* nl.onderwijsnummer: Onderwijsnummer (Dutch student school number)
77+
* nl.postcode: Postcode (Dutch postal code)
7678
* pl.nip: NIP (Numer Identyfikacji Podatkowej, Polish VAT number)
7779
* pt.nif: NIF (Número de identificação fiscal, Portuguese VAT number)
7880
* ro.cf: CF (Cod de înregistrare în scopuri de TVA, Romanian VAT number)
@@ -81,7 +83,12 @@
8183
* si.ddv: ID za DDV (Davčna številka, Slovenian VAT number)
8284
* sk.dph: IČ DPH (IČ pre daň z pridanej hodnoty, Slovak VAT number)
8385
* sk.rc: RČ (Rodné číslo, the Slovak birth number)
86+
* us.atin: ATIN (U.S. Adoption Taxpayer Identification Number)
87+
* us.ein: EIN (U.S. Employer Identification Number)
88+
* us.itin: ITIN (U.S. Individual Taxpayer Identification Number)
89+
* us.ptin: PTIN (U.S. Preparer Tax Identification Number)
8490
* us.ssn: SSN (U.S. Social Security Number)
91+
* us.tin: TIN (U.S. Taxpayer Identification Number)
8592
8693
Furthermore a number of generic check digit algorithms are available:
8794
@@ -96,4 +103,4 @@
96103

97104

98105
# the version number of the library
99-
__version__ = '0.8.1'
106+
__version__ = '0.9'

0 commit comments

Comments
 (0)
0