8000 Get files ready for 1.8 release · AmarisAI/python-stdnum@ae89e82 · GitHub
[go: up one dir, main page]

Skip to content

Commit ae89e82

Browse files
committed
Get files ready for 1.8 release
1 parent db9b278 commit ae89e82

14 files changed

+315
-8
lines changed

ChangeLog

Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,241 @@
1+
2018-01-03 Arthur de Jong <arthur@arthurdejong.org>
2+
3+
* [db9b278] tox.ini: Fix Sphinx dependency name
4+
5+
2018-01-03 Arthur de Jong <arthur@arthurdejong.org>
6+
7+
* [fbb9d24] docs/index.rst, stdnum/__init__.py: Move get_cc_module()
8+
function to package for public use
9+
10+
2018-01-03 Arthur de Jong <arthur@arthurdejong.org>
11+
12+
* [7bb0e5f] setup.py, stdnum/util.py: Try the non-caching zeep
13+
client on older versions
14+
15+
This uses the "normal" Client class from zeep if CachingClient
16+
is not available (this is the case on older zeep versions).
17+
18+
This also records (and documents) the dependencies for SOAP
19+
libraries in setup.py.
20+
21+
2018-01-01 Arthur de Jong <arthur@arthurdejong.org>
22+
23+
* [6d7ba46] .travis.yml: Add a Travis configuration file
24+
25+
2018-01-01 Arthur de Jong <arthur@arthurdejong.org>
26+
27+
* [db7be06] stdnum/do/ncf.py, stdnum/do/rnc.py, tox.ini: Fix Python
28+
2.6 compatibility
29+
30+
2018-01-01 Arthur de Jong <arthur@arthurdejong.org>
31+
32+
* [8107f08] stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/imsi.dat,
33+
stdnum/isbn.dat, stdnum/us/ein.dat: Update database files
34+
35+
Note that the Swift IBAN Registry in txt format is currently
36+
unavailable so hasn't been updated.
37+
38+
2018-01-01 Arthur de Jong <arthur@arthurdejong.org>
39+
40+
* [e781eee] MANIFEST.in, tox.ini, update/README, update/cn_loc.py,
41+
update/do_whitelists.py, update/eu_nace.py, update/iban.py,
42+
update/imsi.py, update/isbn.py, update/isil.py, update/my_bp.py,
43+
update/numlist.py, update/requirements.txt: Move update scripts
44+
to own directory
45+
46+
This moves all the update scripts to their own directory so they
47+
don't clutter the toplevel directory.
48+
49+
This also ensures that the scripts are passed through flake8
50+
and makes some adjustments for that alongside a few other cleanups.
51+
52+
2017-12-01 srikanthlogic <srik.lak@gmail.com>
53+
54+
* [442aa82] stdnum/in_/pan.py, tests/test_in_pan.doctest: Add
55+
Indian PAN
56+
57+
Closes https://github.com/arthurdejong/python-stdnum/pull/57
58+
59+
2017-12-31 Arthur de Jong <arthur@arthurdejong.org>
60+
61+
* [8a34b4e] stdnum/util.py: Correctly quote regular expression
62+
63+
Fixes a6ae1d0.
64+
65+
2017-12-31 Arthur de Jong <arthur@arthurdejong.org>
66+
67+
* [271b9e4] docs/stdnum.is_.kennitala.rst, docs/stdnum.is_.vsk.rst,
68+
tox.ini: Add Sphinx documentation checks
69+
70+
This also fixes an escaping issue in the automatically generated
71+
documentation for modules that end with an underscore.
72+
73+
2017-12-06 Arthur de Jong <arthur@arthurdejong.org>
74+
75+
* [be094f8] README, docs/conf.py, docs/index.rst, getnumlist.py,
76+
setup.py, stdnum/__init__.py: Use README as package long
77+
description
78+
79+
This also shortens the stdnum module docstring and updates the
80+
Sphinx configuration.
81+
82+
2017-12-01 srikanthlogic <srik.lak@gmail.com>
83+
84+
* [c576bc4] stdnum/in_/__init__.py, stdnum/in_/aadhaar.py: Add
85+
Indian Aadhaar
86+
87+
Closes https://github.com/arthurdejong/python-stdnum/pull/56
88+
89+
2017-11-26 Arthur de Jong <arthur@arthurdejong.org>
90+
91+
* [bafdb70] stdnum/casrn.py, tests/test_casrn.doctest: Add CAS
92+
Registry Number
93+
94+
This adds validation of the Chemical Abstracts Service Registry
95+
Number.
96+
97+
2017-11-24 Arthur de Jong <arthur@arthurdejong.org>
98+
99+
* [d5f97e9] online_check/check.js, online_check/stdnum.wsgi:
100+
Change output of online lookups
101+
102+
This puts the number before the number name to make it a little
103+
clearer.
104+
105+
2017-11-24 Arthur de Jong <arthur@arthurdejong.org>
106+
107+
* [f7b4615] online_check/check.js: Store online check numbers
108+
in history
109+
110+
This updates the browser history with with the numbers that
111+
were checked so that you can easily go back and forth between
112+
checked number.
113+
114+
2017-11-24 Arthur de Jong <arthur@arthurdejong.org>
115+
116+
* [7cb114b] online_check/stdnum.wsgi: Correctly escape number for
117+
use in attribute
118+
119+
2017-11-26 Arthur de Jong <arthur@arthurdejong.org>
120+
121+
* [90067f7] tests/test_eu_banknote.doctest: Fix incorrect banknote
122+
test
123+
124+
Also add a few verified correct numbers.
125+
126+
Fixes b7b812c.
127+
128+
2017-11-22 Arthur de Jong <arthur@arthurdejong.org>
129+
130+
* [b7b812c] stdnum/eu/banknote.py, tests/test_eu_banknote.doctest:
131+
Add Euro bank notes serial number
132+
133+
This adds validation of serial numbers that appear on Euro bills.
134+
135+
2017-11-02 Arthur de Jong <arthur@arthurdejong.org>
136+
137+
* [a6ae1d0] docs/index.rst, docs/stdnum.bic.rst,
138+
docs/stdnum.iso9362.rst, stdnum/bic.py, stdnum/iso9362.py,
139+
stdnum/util.py: Rename stdnum.iso9362 to stdnum.bic
140+
141+
The new name is more descriptive and easier to remember. This
142+
makes stdnum.iso9362 a compatibility module that can be imported
143+
with the old name but provides a deprecation warning.
144+
145+
2017-10-22 Arthur de Jong <arthur@arthurdejong.org>
146+
147+
* [6be1754] stdnum/util.py: Support zeep as preferred SOAP library
148+
149+
This tries zeep, suds (suds-jurko) and falls back to using
150+
pysimplesoap for performing the SOAP requests. From those zeep
151+
seems to be the best supported implementation.
152+
153+
2017-10-22 Arthur de Jong <arthur@arthurdejong.org>
154+
155+
* [9ab1d66] stdnum/eu/vat.py, tests/test_eu_vat.py: Add tests for
156+
the VIES VAT validation functions
157+
158+
These tests are not normally run as part of the normal test suite
159+
and have to be explicitly enabled by setting the ONLINE_TESTS
160+
environment variable to avoid overloading these online services.
161+
162+
2017-10-18 Arthur de Jong <arthur@arthurdejong.org>
163+
164+
* [ab21159] stdnum/do/ncf.py, tests/test_do_ncf.py: Add
165+
stdnum.do.ncf.check_dgii()
166+
167+
This adds functions for querying the Dirección General de
168+
Impuestos Internos (DGII) API to check if the RNC and NCF
169+
combination provided is valid.
170+
171+
2017-10-18 Arthur de Jong <arthur@arthurdejong.org>
172+
173+
* [6b09c5d] stdnum/do/rnc.py, tests/test_do_rnc.py, tox.ini:
174+
Add stdnum.do.rnc.check_dgii() and search_dgii()
175+
176+
This adds functions for querying the Dirección General de
177+
Impuestos Internos (DGII) API to validate the RNC and search
178+
the register by keyword.
179+
180+
2017-10-16 Arthur de Jong <arthur@arthurdejong.org>
181+
182+
* [665bf7a] stdnum/do/ncf.py, tests/test_do_ncf.doctest: Add
183+
Dominican Republic receipt number (NCF)
184+
185+
This number does not have a check digit but uses a distinctive
186+
enough format that it should not be too great of a problem.
187+
188+
2017-10-14 Arthur de Jong <arthur@arthurdejong.org>
189+
190+
* [4ab1e3b] stdnum/eu/vat.py, stdnum/tr/tckimlik.py, stdnum/util.py:
191+
Cache SOAP client in get_soap_client()
192+
193+
This caches the instantiated SOAP client classes in the util
194+
module instead of doing the caching in every module that performs
195+
requests.
196+
197+
2017-10-18 Arthur de Jong <arthur@arthurdejong.org>
198+
199+
* [cecd35c] getdowhitelists.py: Add a script for updating RNC and
200+
Cedula whitelists
201+
202+
2017-10-13 Arthur de Jong <arthur@arthurdejong.org>
203+
204+
* [399321b] stdnum/do/rnc.py, tests/test_do_rnc.doctest: Also add
205+
a whitelist for Dominican Republic RNC
206+
207+
Some RNCs are apparently valid while having an incorrect check
208+
digit (though most appear to be inactive). There also appear to
209+
be valid RNCs that do not have 9 digits.
210+
211+
2017-10-13 Arthur de Jong <arthur@arthurdejong.org>
212+
213+
* [58511dc] stdnum/do/cedula.py, tests/test_do_cedula.doctest:
214+
Add a few new numbers to the Cedula whitelist
215+
216+
These numbers were found to be valid but had an invalid check
217+
digit nonetheless (though most appear to be inactive). Also
218+
there appear to be a few valid Cedula that do not have 11 digits.
219+
220+
2017-10-13 David Arnold <dar@devco.co>
221+
222+
* [74c1721] stdnum/util.py, tests/test_util.doctest: Handle unicode
223+
arguments in get_cc_module()
224+
225+
Closes https://github.com/arthurdejong/python-stdnum/issues/54
226+
227+
2017-09-15 Arthur de Jong <arthur@arthurdejong.org>
228+
229+
* [12cd072] stdnum/eu/at_02.py: Fix spelling errors
230+
231+
2017-09-12 Arthur de Jong <arthur@arthurdejong.org>
232+
233+
* [4496ffe] ChangeLog, NEWS, README, docs/index.rst,
234+
docs/stdnum.ca.bn.rst, docs/stdnum.ca.sin.rst,
235+
docs/stdnum.de.idnr.rst, docs/stdnum.ee.registrikood.rst,
236+
docs/stdnum.fi.veronumero.rst, docs/stdnum.gb.upn.rst,
237+
stdnum/__init__.py: Get files ready for 1.7 release
238+
1239
2017-09-12 Arthur de Jong <arthur@arthurdejong.org>
2240

3241
* [28092b3] stdnum/damm.py: Add example with custom table to Damm

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
include README NEWS ChangeLog COPYING *.py tox.ini
2-
recursive-include tests *.doctest *.dat
2+
recursive-include tests *.doctest *.dat *.py
33
recursive-include docs *.rst *.py
44
recursive-include online_check *
5-
recursive-include update README *.py
5+
recursive-include update README requirements.txt *.py

NEWS

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
changes from 1.7 to 1.8
2+
-----------------------
3+
4+
* add modules for the following number formats:
5+
- NCF (Números de Comprobante Fiscal, Dominican Republic receipt number)
6+
- Euro banknote serial numbers
7+
- CAS RN (Chemical Abstracts Service Registry Number)
8+
- Aadhaar (Indian digital resident personal identity number)
9+
(thanks Srikanth Lakshmanan)
10+
- PAN (Permanent Account Number, Indian income tax identifier)
11+
(thanks Srikanth Lakshmanan)
12+
* add functions for using the Dominican Republic DGII web service to validate
13+
and search for RNC and NCF numbers
14+
* add/update whitelists for Dominican Republic RNC and Cedula
15+
* support zeep as preferred SOAP library (suds and pysimplesoap are tried
16+
as fallback)
17+
* rename stdnum.iso9362 to stdnum.bic (iso9362 is deprecated but still
18+
available for compatibility)
19+
* add tests for web services (not normally run to avoid unnecessary load)
20+
* fixes and improvement to the sample online validation service
21+
22+
Development of the NCF format validation and DGII web service validation
23+
was funded by iterativo | http://iterativo.do
24+
25+
126
changes from 1.6 to 1.7
227
-----------------------
328

README

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ Currently this package supports the following formats:
2727
* EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)
2828
* PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
2929
* VAT (Идентификационен номер по ДДС, Bulgarian VAT number)
30+
* BIC (ISO 9362 Business identifier codes)
3031
* CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazillian company identifier)
3132
* CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)
3233
* BN (Canadian Business Number)
3334
* SIN (Canadian Social Insurance Number)
35+
* CAS RN (Chemical Abstracts Service Registry Number)
3436
* Swiss social security number ("Sozialversicherungsnummer")
3537
* UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
3638
* VAT, MWST, TVA, IVA, TPV (Mehrwertsteuernummer, the Swiss VAT number)
@@ -47,6 +49,7 @@ Currently this package supports the following formats:
4749
* CPR (personnummer, the Danish citizen number)
4850
* CVR (Momsregistreringsnummer, Danish VAT number)
4951
* Cedula (Dominican Republic national identification number)
52+
* NCF (Números de Comprobante Fiscal, Dominican Republic receipt number)
5053
* RNC (Registro Nacional del Contribuyente, Dominican Republic tax number)
5154
* EAN (International Article Number)
5255
* CI (Cédula de identidad, Ecuadorian personal identity code)
@@ -63,6 +66,7 @@ Currently this package supports the following formats:
6366
* NIF (Número de Identificación Fiscal, Spanish VAT number)
6467
* Referencia Catastral (Spanish real estate property id)
6568
* SEPA Identifier of the Creditor (AT-02)
69+
* Euro banknote serial numbers
6670
* EIC (European Energy Identification Code)
6771
* NACE (classification for businesses in the European Union)
6872
* VAT (European Union VAT number)
@@ -90,6 +94,8 @@ Currently this package supports the following formats:
9094
* IMEI (International Mobile Equipment Identity)
9195
* IMO number (International Maritime Organization number)
9296
* IMSI (International Mobile Subscriber Identity)
97+
* Aadhaar (Indian digital resident personal identity number)
98+
* PAN (Permanent Account Number, Indian income tax identifier)
9399
* Kennitala (Icelandic personal and organisation identity code)
94100
* VSK number (Virðisaukaskattsnúmer, Icelandic VAT number)
95101
* ISAN (International Standard Audiovisual Number)
@@ -98,7 +104,6 @@ Currently this package supports the following formats:
98104
* ISIN (International Securities Identification Number)
99105
* ISMN (International Standard Music Number)
100106
* ISO 6346 (International standard for container identification)
101-
* ISO 9362 (Business identifier codes)
102107
* ISSN (International Standard Serial Number)
103108
* Codice Fiscale (Italian tax code for individuals)
104109
* Partita IVA (Italian VAT number)
@@ -195,7 +200,7 @@ also work with older versions of Python.
195200
Copyright
196201
---------
197202

198-
Copyright (C) 2010-2017 Arthur de Jong and others
203+
Copyright (C) 2010-2018 Arthur de Jong and others
199204

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

docs/conf.py

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

4747
# General information about the project.
4848
project = u'python-stdnum'
49-
copyright = u'2013-2017, Arthur de Jong'
49+
copyright = u'2013-2018, Arthur de Jong'
5050

5151
# The version info for the project you're documenting, acts as replacement for
5252
# |version| and |release|, also used in various other places throughout the

docs/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Available formats
114114
br.cpf
115115
ca.bn
116116
ca.sin
117+
casrn
117118
ch.ssn
118119
ch.uid
119120
ch.vat
@@ -130,6 +131,7 @@ Available formats
130131
dk.cpr
131132
dk.cvr
132133
do.cedula
134+
do.ncf
133135
do.rnc
134136
ean
135137
ec.ci
@@ -146,6 +148,7 @@ Available formats
146148
es.nif
147149
es.referenciacatastral
148150
eu.at_02
151+
eu.banknote
149152
eu.eic
150153
eu.nace
151154
eu.vat
@@ -173,6 +176,8 @@ Available formats
173176
imei
174177
imo
175178
imsi
179+
in_.aadhaar
180+
in_.pan
176181
is_.kennitala
177182
is_.vsk
178183
isan

docs/stdnum.casrn.rst

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

docs/stdnum.do.ncf.rst

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

docs/stdnum.eu.banknote.rst

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

0 commit comments

Comments
 (0)
0