8000 Get files ready for 1.17 release · TonkWorks/python-stdnum@50650a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 50650a9

Browse files
committed
Get files ready for 1.17 release
1 parent 0779d6a commit 50650a9

13 files changed

+343
-2
lines changed

ChangeLog

Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,254 @@
1+
2021-10-03 Arthur de Jong <arthur@arthurdejong.org>
2+
3+
* [0779d6a] stdnum/kr/brn.py, tests/test_kr_brn.py: Remove South
4+
Korean BRN online check
5+
6+
The Korea Fair Trade Commission website now requires solving
7+
a CAPTCHA before submitting the request so this is no longer
8+
possible.
9+
10+
2021-10-03 Arthur de Jong <arthur@arthurdejong.org>
11+
12+
* [61ebc9c] stdnum/no/orgnr.py: Add documentation for Norwegian
13+
Organisasjonsnummer
14+
15+
2021-10-03 Arthur de Jong <arthur@arthurdejong.org>
16+
17+
* [9da63a4] tests/test_do_cedula.py: Update Cedula online test value
18+
19+
Apparently the previously whitelisted value is no longer recognised
20+
as a valid value by the DGII service.
21+
22+
2021-10-03 Arthur de Jong <arthur@arthurdejong.org>
23+
24+
* [25c30d7] stdnum/by/portal.nalog.gov.by.crt: Update Let's Encrypt
25+
R3 intermediate certificate
26+
27+
The portal.nalog.gov.by web site serves an incomplete certificate
28+
chain and the certificate chain was changed.
29+
30+
2021-10-03 Arthur de Jong <arthur@arthurdejong.org>
31+
32+
* [3406c24] MANIFEST.in, README.md, docs/index.rst, setup.py,
33+
update/numlist.py: Rename README to README.md
34+
35+
Mostly to please GitHub.
36+
37+
See https://github.com/arthurdejong/python-stdnum/issues/280
38+
39+
2021-10-03 Arthur de Jong <arthur@arthurdejong.org>
40+
41+
* [d5cba0a] stdnum/at/postleitzahl.dat, stdnum/be/banks.dat,
42+
stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/gs1_ai.dat,
43+
stdnum/iban.dat, stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat,
44+
stdnum/nz/banks.dat, stdnum/oui.dat, update/gs1_ai.py: Update
45+
database files
46+
47+
2021-09-30 Gaurav Chauhan <71322586+vairag22@users.noreply.github.com>
48+
49+
* [26a7e7b] stdnum/in_/__init__.py, stdnum/in_/gstin.py: Add Indian
50+
GSTIN (VAT number)
51+
52+
Closes https://github.com/arthurdejong/python-stdnum/pull/279
53+
54+
2021-09-30 Gaurav Chauhan <71322586+vairag22@users.noreply.github.com>
55+
56+
* [ca560cd] stdnum/in_/epic.py: Add Indian EPIC number (Voter
57+
ID number)
58+
59+
Closes https://github.com/arthurdejong/python-stdnum/pull/279
60+
61+
2021-09-30 Gaurav Chauhan <71322586+vairag22@users.noreply.github.com>
62+
63+
* [fc56388] stdnum/in_/aadhaar.py, stdnum/in_/pan.py: Improve
64+
validation and docstrings of Indian numbers
65+
66+
This ensures that an Aadhaar cannot be a palindrome and checks the
67+
serial part of the PAN to not be all zeros. It also updates some
68+
descriptions of PAN holder types and renames the card_holder_type
69+
to just holder_type.
70+
71+
Closes https://github.com/arthurdejong/python-stdnum/pull/279
72+
73+
2021-09-19 Arthur de Jong <arthur@arthurdejong.org>
74+
75+
* [1a0e613] stdnum/ec/ruc.py, tests/test_ec_ruc.doctest: Fix
76+
detection of natural RUC values
77+
78+
A natural RUC is the CI plus an establishment number. Both the
79+
natural RUC and the public RUC can have a third digit with the
80+
value 6. B41A
81+
82+
Closes https://github.com/arthurdejong/python-stdnum/issues/267
83+
84+
2021-08-20 michele <michele.ciccozzi@medpeople.se>
85+
86+
* [8071444] stdnum/se/__init__.py, stdnum/se/postnummer.py,
87+
tests/test_se_postnummer.doctest: Add swedish postcode validator
88+
89+
Closes https://github.com/arthurdejong/python-stdnum/pull/271
90+
91+
2021-02-21 Piruin Panichphol <piruin.p@gmail.com>
92+
93+
* [424e408] stdnum/th/__init__.py, stdnum/th/moa.py,
94+
stdnum/th/pin.py, stdnum/th/tin.py, tests/test_th_moa.doctest,
95+
tests/test_th_pin.doctest, tests/test_th_tin.doctest: Add support
96+
for Thai Numbers
97+
98+
- TIN Taxpayer Identification Number - PIN Personal Identification
99+
Number - MOA Memorandum of Association Number
100+
101+
Closes https://github.com/arthurdejong/python-stdnum/issues/118
102+
Closes https://github.com/arthurdejong/python-stdnum/pull/255
103+
104+
2021-03-10 Nuno André <mail@nunoand.re>
105+
106+
* [36d723c] stdnum/isrc.py, tests/test_isrc.doctest: Add ISRC
107+
(International Standard Recording Code)
108+
109+
Closes https://github.com/arthurdejong/python-stdnum/pull/261
110+
111+
2021-08-07 Dimitri Papadopoulos
112+
<3234522+DimitriPapadopoulos@users.noreply.github.com>
113+
114+
* [48bfd84] stdnum/ad/nrt.py, stdnum/bitcoin.py, stdnum/do/ncf.py,
115+
stdnum/isbn.py, stdnum/util.py, stdnum/vn/mst.py,
116+
tests/test_cusip.doctest, tests/test_de_idnr.doctest,
117+
update/be_banks.py, update/imsi.py, update/isil.py,
118+
update/numlist.py: Fix typos found by codespell
119+
120+
Closes https://github.com/arthurdejong/python-stdnum/pull/269
121+
122+
2021-08-07 Dimitri Papadopoulos
123+
<3234522+DimitriPapadopoulos@users.noreply.github.com>
124+
125+
* [dcdb5c9] stdnum/exceptions.py: Explicilty define exported
126+
exceptions
127+
128+
LGTM alert: Import pollutes the enclosing namespace
129+
See: https://lgtm.com/rules/3980091/ Closes
130+
https://github.com/arthurdejong/python-stdnum/pull/270
131+
132+
2021-08-07 Dimitri Papadopoulos
133+
<3234522+DimitriPapadopoulos@users.noreply.github.com>
134+
135+
* [abda037] stdnum/no/fodselsnummer.py: Simplify range checking
136+
in Norwegian birth numbers
137+
138+
LGTM alert: Test is always true See: https://lgtm.com/rules/900073/
139+
Closes https://github.com/arthurdejong/python-stdnum/pull/270
140+
141+
2021-08-07 Dimitri Papadopoulos
142+
<3234522+DimitriPapadopoulos@users.noreply.github.com>
143+
144+
* [c69b4f6] update/be_banks.py: Fix handling of empty worksheet
145+
in Belgian bank download
146+
147+
LGTM alert: Call to next() in a generator
148+
See: https://lgtm.com/rules/11000086/ Closes
149+
https://github.com/arthurdejong/python-stdnum/pull/270
150+
151+
2021-06-09 David Vaz <davidmgvaz@gmail.com>
152+
153+
* [4516748] stdnum/pt/cc.py, tests/test_pt_cc.doctest: Add CC
154+
(Número de Cartão de Cidadão, Portuguese Identity number)
155+
156+
Closes https://github.com/arthurdejong/python-stdnum/pull/265
157+
158+
2021-06-10 FRANK ROBERTO CHAVEZ SOSA <1085268@est.intec.edu.do>
159+
160+
* [4c51860] stdnum/do/ncf.py: Add new e-CF types to Dominican
161+
Republic NCF
162+
163+
2021-01-18 Andres Rodriguez <androdriguez14@gmail.com>
164+
165+
* [48e6502] stdnum/do/ncf.py: Fix parsing of empty fields in
166+
DGII checking
167+
168+
2020-12-11 Cristopher Ortega <ortega.cpp@gmail.com>
169+
170+
* [2b452b6] stdnum/do/ncf.py, tests/test_do_ncf.py: Add ENCF
171+
validation support for Dominican Republic NCF
172+
173+
Closes https://github.com/arthurdejong/python-stdnum/pull/248
174+
175+
2021-06-09 Dimitri Papadopoulos
176+
<3234522+DimitriPapadopoulos@users.noreply.github.com>
177+
178+
* [eeaf665] stdnum/fr/nif.py: Improve French NIF validation
179+
180+
Closes https://github.com/arthurdejong/python-stdnum/pull/266
181+
182+
2021-07-12 Arthur de Jong <arthur@arthurdejong.org>
183+
184+
* [e2a95fc] .github/workflows/test.yml: Configure CodeQL code
185+
scanning
186+
187+
2021-07-18 Arthur de Jong <arthur@arthurdejong.org>
188+
189+
* [175b1e5] stdnum/exceptions.py: Ignore N818 because our exceptions
190+
are not named error
191+
192+
2021-04-11 Arthur de Jong <arthur@arthurdejong.org>
193+
194+
* [38c368d] stdnum/numdb.py, tests/numdb-test.dat: Only process
195+
the shortest matches in the numdb module
196+
197+
This ensures that matching numbers is done consistently when
198+
the numdb database file has conflicting information about the
199+
length of numbers.
200+
201+
This also refactors the _find() function to be simpler and
202+
reduces the number of recursive calls that have to be done.
203+
204+
The tests have been re-formatted to use pprint to make it easier
205+
to spot differences if any of the tests fail (instead of just
206+
saying expected True, got False).
207+
208+
Closes https://github.com/arthurdejong/python-stdnum/issues/257
209+
210+
2021-04-11 Arthur de Jong <arthur@arthurdejong.org>
211+
212+
* [b7901d6] update/imsi.py: Stop non-operational MNCs from confusing
213+
IMSI dataset
214+
215+
This only includes data from non-operational (status "Not
216+
operational" according to Wikipedia) Mobile Network Code operators
217+
in the generated data file if they would not confuse the lookup
218+
of operational numbers.
219+
220+
This avoid problems when the "030" to "039" non-operational ranges
221+
conflicting with the "03" operational range. This ensures that
222+
only the "03" value is kept. For historical completeness we keep
223+
the other non-operational values.
224+
225+
Closes https://github.com/arthurdejong/python-stdnum/issues/257
226+
227+
2021-03-03 Jakub Wilk <jwilk@jwilk.net>
228+
229+
* [7e69090] docs/index.rst: Fix typo
230+
231+
Closes https://github.com/arthurdejong/python-stdnum/pull/258
232+
233+
2021-03-21 Arthur de Jong <arthur@arthurdejong.org>
234+
235+
* [5785afb] .github/workflows/test.yml, .travis.yml: Replace Travis
236+
with GitHub actions
237+
238+
2021-03-21 Arthur de Jong <arthur@arthurdejong.org>
239+
240+
* [7c0bb84] .travis.yml, setup.py, tox.ini: Drop support for Python
241+
2.6 and 3.4
242+
243+
It is increasingly difficult to test with these versions of
244+
Python and everybody should have upgraded to a more recent
245+
version long ago.
246+
247+
2021-02-06 Arthur de Jong <arthur@arthurdejong.org>
248+
249+
* [075d85e] ChangeLog, NEWS, stdnum/__init__.py: Get files ready
250+
for 1.16 release
251+
1252
2021-02-06 Arthur de Jong <arthur@arthurdejong.org>
2253

3254
* [fad3064] stdnum/by/portal.nalog.gov.by.crt: Add Let's Encrypt

NEWS

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
changes from 1.16 to 1.17
2+
-------------------------
3+
4+
* Add modules for the following number formats:
5+
6+
- EPIC (Electoral Photo Identity Card, Indian Voter ID)
7+
(thanks Gaurav Chauhan)
8+
- GSTIN (Goods and Services Tax identification number, Indian VAT number)
9+
(thanks Gaurav Chauhan)
10+
- ISRC (International Standard Recording Code) (thanks Nuno André)
11+
- CC (Número de Cartão de Cidadão, Portuguese Identity number)
12+
(thanks David Vaz)
13+
- Postcode (the Swedish postal code) (thanks Michele Ciccozzi)
14+
- MOA (Thailand Memorandum of Association Number) (thanks Piruin Panichphol)
15+
- PIN (Thailand Personal Identification Number) (thanks Piruin Panichphol)
16+
- TIN (Thailand Taxpayer Identification Number) (thanks Piruin Panichphol)
17+
18+
* Add ENCF validation support for Dominican Republic NCF
19+
(thanks Cristopher Ortega)
20+
* Add new e-CF types to Dominican Republic NCF (thanks Frank Roberto Chavez Sosa)
21+
* Improve French NIF validation (thanks Dimitri Papadopoulos)
22+
* Drop support for Python 2.6 and 3.4
23+
* Fix parsing of empty fields in Dominican Republic DGII checking
24+
(thanks Andres Rodriguez)
25+
* Fix handling of empty worksheet in Belgian bank download
26+
(thanks Dimitri Papadopoulos)
27+
* Fix detection of natural RUC values (thanks Victor Rodriguez)
28+
* Fix Belarus VAT number online lookup again
29+
* Fixes for problems with loading IMSI data from Wikipedia and dealing with
30+
inconsistencies
31+
* Remove South Korean BRN Fair Trade Commission website check due to CAPTCHA
32+
* Various code and documentation improvements (thanks Dimitri Papadopoulos and Gaurav Chauhan)
33+
34+
135
changes from 1.15 to 1.16
236
-------------------------
337

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ Currently this package supports the following formats:
118118
* IMEI (International Mobile Equipment Identity)
119119
* IMO number (International Maritime Organization number)
120120
* IMSI (International Mobile Subscriber Identity)
121-
* Aadhaar (Indian digital resident personal identity number)
121+
* Aadhaar (Indian personal identity number)
122+
* EPIC (Electoral Photo Identity Card, Indian Voter ID)
123+
* GSTIN (Goods and Services Tax identification number, Indian VAT number)
122124
* PAN (Permanent Account Number, Indian income tax identifier)
123125
* Kennitala (Icelandic personal and organisation identity code)
124126
* VSK number (Virðisaukaskattsnúmer, Icelandic VAT number)
@@ -129,6 +131,7 @@ Currently this package supports the following formats:
129131
* ISMN (International Standard Music Number)
130132
* ISO 11649 (Structured Creditor Reference)
131133
* ISO 6346 (International standard for container identification)
134+
* ISRC (International Standard Recording Code)
132135
* ISSN (International Standard Serial Number)
133136
* AIC (Italian code for identification of drugs)
134137
* Codice Fiscale (Italian tax code for individuals)
@@ -169,6 +172,7 @@ Currently this package supports the following formats:
169172
* NIP (Numer Identyfikacji Podatkowej, Polish VAT number)
170173
* PESEL (Polish national identification number)
171174
* REGON (Rejestr Gospodarki Narodowej, Polish register of economic units)
175+
* CC (Número de Cartão de Cidadão, Portuguese Identity number)
172176
* NIF (Número de identificação fiscal, Portuguese VAT number)
173177
* RUC number (Registro Único de Contribuyentes, Paraguay tax number)
174178
* CF (Cod de înregistrare în scopuri de TVA, Romanian VAT number)
@@ -179,13 +183,17 @@ Currently this package supports the following formats:
179183
* ИНН (Идентификационный номер налогоплательщика, Russian tax identifier)
180184
* Orgnr (Organisationsnummer, Swedish company number)
181185
* Personnummer (Swedish personal identity number)
186+
* Postcode (the Swedish postal code)
182187
* VAT (Moms, Mervärdesskatt, Swedish VAT number)
183188
* UEN (Singapore's Unique Entity Number)
184189
* ID za DDV (Davčna številka, Slovenian VAT number)
185190
* IČ DPH (IČ pre daň z pridanej hodnoty, Slovak VAT number)
186191
* RČ (Rodné číslo, the Slovak birth number)
187192
* COE (Codice operatore economico, San Marino national tax number)
188193
* NIT (Número de Identificación Tributaria, El Salvador tax number)
194+
* MOA (Thailand Memorandum of Association Number)
195+
* PIN (Thailand Personal Identification Number)
196+
* TIN (Thailand Taxpayer Identification Number)
189197
* T.C. Kimlik No. (Turkish personal identification number)
190198
* VKN (Vergi Kimlik Numarası, Turkish tax identification number)
191199
* UBN (Unified Business Number, 統一編號, Taiwanese tax number)

docs/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ Available formats
217217
imo
218218
imsi
219219
in_.aadhaar
220+
in_.epic
221+
in_.gstin
220222
in_.pan
221223
is_.kennitala
222224
is_.vsk
@@ -227,6 +229,7 @@ Available formats
227229
ismn
228230
iso11649
229231
iso6346
232+
isrc
230233
issn
231234
it.aic
232235
it.codicefiscale
@@ -267,6 +270,7 @@ Available formats
267270
pl.nip
268271
pl.pesel
269272
pl.regon
273+
pt.cc
270274
pt.nif
271275
py.ruc
272276
ro.cf
@@ -277,13 +281,17 @@ Available formats
277281
ru.inn
278282
se.orgnr
279283
se.personnummer
284+
se.postnummer
280285
se.vat
281286
sg.uen
282287
si.ddv
283288
sk.dph
284289
sk.rc
285290
sm.coe
286291
sv.nit
292+
th.moa
293+
th.pin
294+
th.tin
287295
tr.tckimlik
288296
tr.vkn
289297
tw.ubn

docs/stdnum.in_.epic.rst

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

docs/stdnum.in_.gstin.rst

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

0 commit comments

Comments
 (0)
0