8000 Get files ready for 2.0 release · arthurdejong/python-stdnum@ad4af91 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad4af91

Browse files
committed
Get files ready for 2.0 release
1 parent f2967d3 commit ad4af91

14 files changed

+591
-3
lines changed

ChangeLog

Lines changed: 493 additions & 0 deletions
Large diffs are not rendered by default.

NEWS

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
changes from 1.20 to 2.0
2+
------------------------
3+
4+
* Only support Python 3.8 and newer (drop Python 2 support so major version bump)
5+
* Include type hints for mypy (thanks David Salvisberg)
6+
7+
* Add modules for the following number formats:
8+
9+
- eID Number (Belgian electronic Identity Card Number) (thanks Jeff Horemans)
10+
- SSN, INSZ, NISS (Belgian social security number) (thanks Jeff Horemans)
11+
- CAE (Código de Actividad y Establecimiento, Spanish activity establishment code)
12+
(thanks Quique Porta)
13+
- NIK (Nomor Induk Kependudukan, Indonesian identity number)
14+
- ISNI (International Standard Name Identifier) (thanks Henning Kage)
15+
- IN (個人番号, kojin bangō, Japanese Individual Number) (thanks Luca Sicurello)
16+
- Identiteitskaartnummer, Paspoortnummer (the Dutch passport number)
17+
(thanks Jeff Horemans)
18+
- ОГРН, OGRN, PSRN, ОГРНИП, OGRNIP (Russian Primary State Registration Number)
19+
(thanks Ivan Stavropoltsev)
20+
21+
* Fix Czech RČ check digit validation (thanks Jan Chaloupecky)
22+
* Support Ecuador public RUC with juridical format (thanks Leandro)
23+
* Allow Uruguay RUT numbers starting with 22
24+
* Add missing music industry ISRC country codes (thanks Victor Sordoillet)
25+
* Support 16 digit Indonesian NPWP numbers (thanks Chris Smola)
26+
* Adjust Swiss uid module to accept numbers without CHE prefix (thanks Jeff Horemans)
27+
* Update Irish PPS validator to support new numbers (thanks Olly Middleton)
28+
* Add missing vat alias for Thailand VAT number (thanks Leandro Regueiro)
29+
* Add more tests for the Verhoeff implementation
30+
* Ensure that certificate verification can be configured using the verify
31+
argument when using web services
32+
* The check_dgii() and search_dgii() functions from the Dominican Republic Cedula
33+
and RNC modules no longer work due to a change in the DGII online web service
34+
* Various small code cleanups (thanks David Salvisberg)
35+
* Various small fixes to update scripts
36+
* The stdnum.util.to_unicode() function is now deprecated and will be removed
37+
in an upcoming release
38+
39+
140
changes from 1.19 to 1.20
241
-------------------------
342

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ Currently this package supports the following formats:
2929
* ACN (Australian Company Number)
3030
* TFN (Australian Tax File Number)
3131
* BIS (Belgian BIS number)
32+
* eID Number (Belgian electronic Identity Card Number)
3233
* Belgian IBAN (International Bank Account Number)
3334
* NN, NISS, RRN (Belgian national number)
35+
* SSN, INSZ, NISS (Belgian social security number)
3436
* BTW, TVA, NWSt, ondernemingsnummer (Belgian enterprise number)
3537
* EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)
3638
* PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
@@ -80,6 +82,7 @@ Currently this package supports the following formats:
8082
* KMKR (Käibemaksukohuslase, Estonian VAT number)
8183
* Registrikood (Estonian organisation registration code)
8284
* Tax Registration Number (الرقم الضريبي, Egypt tax number)
85+
* CAE (Código de Actividad y Establecimiento, Spanish activity establishment code)
8386
* CCC (Código Cuenta Corriente, Spanish Bank Account Code)
8487
* CIF (Código de Identificación Fiscal, Spanish company tax number)
8588
* CUPS (Código Unificado de Punto de Suministro, Spanish meter point number)
@@ -123,6 +126,7 @@ Currently this package supports the following formats:
123126
* OIB (Osobni identifikacijski broj, Croatian identification number)
124127
* ANUM (Közösségi adószám, Hungarian VAT number)
125128
* IBAN (International Bank Account Number)
129+
* NIK (Nomor Induk Kependudukan, Indonesian identity number)
126130
* NPWP (Nomor Pokok Wajib Pajak, Indonesian VAT Number)
127131
* PPS No (Personal Public Service Number, Irish personal number)
128132
* VAT (Irish tax reference number)
@@ -143,6 +147,7 @@ Currently this package supports the following formats:
143147
* ISIL (International Standard Identifier for Libraries)
144148
* ISIN (International Securities Identification Number)
145149
* ISMN (International Standard Music Number)
150+
* ISNI (International Standard Name Identifier)
146151
* ISO 11649 (Structured Creditor Reference)
147152
* ISO 6346 (International standard for container identification)
148153
* ISRC (International Standard Recording Code)
@@ -151,6 +156,7 @@ Currently this package supports the following formats:
151156
* Codice Fiscale (Italian tax code for individuals)
152157
* Partita IVA (Italian VAT number)
153158
* CN (法人番号, hōjin bangō, Japanese Corporate Number)
159+
* IN (個人番号, kojin bangō, Japanese Individual Number)
154160
* PIN (Personal Identification Number, Kenya tax number)
155161
* BRN (사업자 등록 번호, South Korea Business Registration Number)
156162
* RRN (South Korean resident registration number)
@@ -176,6 +182,7 @@ Currently this package supports the following formats:
176182
* BRIN number (the Dutch school identification number)
177183
* BSN (Burgerservicenummer, the Dutch citizen identification number)
178184
* Btw-identificatienummer (Omzetbelastingnummer, the Dutch VAT number)
185+
* Identiteitskaartnummer, Paspoortnummer (the Dutch passport number)
179186
* Onderwijsnummer (the Dutch student identification number)
180187
* Postcode (the Dutch postal code)
181188
* Fødselsnummer (Norwegian birth number, the national identity number)
@@ -200,6 +207,7 @@ Currently this package supports the following formats:
200207
* ONRC (Ordine din Registrul Comerţului, Romanian Trade Register identifier)
201208
* PIB (Poreski Identifikacioni Broj, Serbian tax identification number)
202209
* ИНН (Идентификационный номер налогоплательщика, Russian tax identifier)
210+
* ОГРН, OGRN, PSRN, ОГРНИП, OGRNIP (Russian Primary State Registration Number)
203211
* Orgnr (Organisationsnummer, Swedish company number)
204212
* Personnummer (Swedish personal identity number)
205213
* Postcode (the Swedish postal code)

docs/conf.py

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

4040
# General information about the project.
4141
project = u'python-stdnum'
42-
copyright = u'2013-2024, Arthur de Jong'
42+
copyright = u'2013-2025, Arthur de Jong'
4343

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

docs/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ Available formats
127127
au.acn
128128
au.tfn
129129
be.bis
130+
be.eid
130131
be.iban
131132
be.nn
133+
be.ssn
132134
be.vat
133135
bg.egn
134136
bg.pnf
@@ -178,6 +180,7 @@ Available formats
178180
ee.kmkr
179181
ee.registrikood
180182
eg.tn
183+
es.cae
181184
es.ccc
182185
es.cif
183186
es.cups
@@ -221,6 +224,7 @@ Available formats
221224
hr.oib
222225
hu.anum
223226
iban
227+
id.nik
224228
id.npwp
225229
ie.pps
226230
ie.vat
@@ -241,6 +245,7 @@ Available formats
241245
isil
242246
isin
243247
ismn
248+
isni
244249
iso11649
245250
iso6346
246251
isrc
@@ -249,6 +254,7 @@ Available formats
249254
it.codicefiscale
250255
it.iva
251256
jp.cn
257+
jp.in_
252258
ke.pin
253259
kr.brn
254260
kr.rrn
@@ -274,6 +280,7 @@ Available formats
274280
nl.brin
275281
nl.bsn
276282
nl.btw
283+
nl.identiteitskaartnummer
277284
nl.onderwijsnummer
278285
nl.postcode
279286
no.fodselsnummer
@@ -298,6 +305,7 @@ Available formats
298305
ro.onrc
299306
rs.pib
300307
ru.inn
308+
ru.ogrn
301309
se.orgnr
302310
se.personnummer
303311
se.postnummer

docs/stdnum.be.eid.rst

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

docs/stdnum.be.ssn.rst

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

docs/stdnum.es.cae.rst

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

docs/stdnum.id.nik.rst

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

docs/stdnum.isni.rst

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

docs/stdnum.jp.in_.rst

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

docs/stdnum.ru.ogrn.rst

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

stdnum/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# __init__.py - main module
22
# coding: utf-8
33
#
4-
# Copyright (C) 2010-2024 Arthur de Jong
4+
# Copyright (C) 2010-2025 Arthur de Jong
55
#
66
# This library is free software; you can redistribute it and/or
77
# modify it under the terms of the GNU Lesser General Public
@@ -45,4 +45,4 @@
4545
__all__ = ('get_cc_module', '__version__')
4646

4747
# the version number of the library
48-
__version__ = '1.20'
48+
__version__ = '2.0'

0 commit comments

Comments
 (0)
0