-
Notifications
You must be signed in to change notification settings - Fork 211
/
ChangeLog
6284 lines (4022 loc) · 213 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2024-03-17 Arthur de Jong <[email protected]>
* [b454d3a] stdnum/at/postleitzahl.dat, stdnum/be/banks.dat,
stdnum/cn/loc.dat, stdnum/gs1_128.py, stdnum/gs1_ai.dat,
stdnum/iban.dat, stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat,
stdnum/nz/banks.dat, stdnum/oui.dat, tests/test_be_iban.doctest,
update/gs1_ai.py: Update database files
The Belgian bpost bank no longer has a registration and a few
bank account numbers in the tests that used that bank were removed.
Also updates the update/gs1_ai.py script to handle the new format
of the data published by GS1. Also update the GS1-128 module to
handle some different date formats.
The Pakistan entry was kept in the stdnum/iban.dat file because
the PDF version of the IBAN Registry still contains the country.
fix db
2024-03-17 Arthur de Jong <[email protected]>
* [97dbced] tox.ini: Add update-dat tox target for convenient data
file updating
2024-03-17 Arthur de Jong <[email protected]>
* [26fd25b] setup.cfg, update/cfi.py, update/nz_banks.py,
update/requirements.txt: Switch to using openpyxl for parsing
XLSX files
The xlrd has dropped support for parsing XLSX files. We still
use xlrd for update/be_banks.py because they use the classic
XLS format and openpyxl does not support that format.
2024-03-17 Arthur de Jong <[email protected]>
* [9230604] stdnum/za/idnr.py: Use HTTPS in URLs where possible
2024-02-27 Atul Deolekar <[email protected]>
* [7cba469] stdnum/in_/vid.py: Add Indian virtual identity number
Closes https://github.com/arthurdejong/python-stdnum/pull/428
2024-03-17 Arthur de Jong <[email protected]>
* [bb20121] stdnum/ua/edrpou.py, tests/test_ua_edrpou.doctest:
Fix Ukrainian EDRPOU check digit calculation
This fixes the case where the weighted sum woud be 10 which
should result in a check digit of 0.
Closes https://github.com/arthurdejong/python-stdnum/issues/429
2023-12-15 Kevin Dagostino <[email protected]>
* [9c7c669] stdnum/fr/nif.py: Imporve French NIF validation
(checksum)
The last 3 digits are a checksum. % 511
https://ec.europa.eu/taxation_customs/tin/specs/FS-TIN%20Algorithms-Public.docx
Closes https://github.com/arthurdejong/python-stdnum/pull/426
2024-02-03 Arthur de Jong <[email protected]>
* [1e412ee] stdnum/vatin.py, tests/test_vatin.doctest: Fix vatin
number compacting for "EU" VAT numbers
Thanks Davide Walder for finding this.
Closes https://github.com/arthurdejong/python-stdnum/issues/427
2023-11-19 Daniel Weber <[email protected]>
* [2535bbf] stdnum/eu/ecnumber.py, tests/test_eu_ecnumber.doctest:
Add European Community (EC) Number
Closes https://github.com/arthurdejong/python-stdnum/pull/422
2023-10-20 Ömer Boratav <[email protected]>
* [2478483] stdnum/ca/bc_phn.py: Add British Columbia PHN
Closes https://github.com/arthurdejong/python-stdnum/pull/421
2023-11-12 Arthur de Jong <[email protected]>
* [58d6283] stdnum/ro/cf.py, tests/test_eu_vat.doctest: Ensure EU
VAT numbers don't accept duplicate country codes
2023-11-12 Arthur de Jong <[email protected]>
* [1a5db1f] stdnum/de/vat.py: Fix typo (thanks Александр
Кизеев)
2023-10-02 Arthur de Jong <[email protected]>
* [352bbcb] .github/workflows/test.yml, setup.py, tox.ini: Add
support for Python 3.12
2023-08-20 Arthur de Jong <[email protected]>
* [fa455fc] ChangeLog, NEWS, README.md, docs/index.rst,
docs/stdnum.be.bis.rst, docs/stdnum.eg.tn.rst,
docs/stdnum.es.postal_code.rst, docs/stdnum.eu.oss.rst,
docs/stdnum.gn.nifp.rst, docs/stdnum.si.maticna.rst,
stdnum/__init__.py: Get files ready for 1.19 release
2023-08-20 Arthur de Jong <[email protected]>
* [3191b4c] MANIFEST.in: Ensure all files are included in source
archive
Fixes b1dc313 Fixes 90044e2
2023-08-20 Arthur de Jong <[email protected]>
* [3947a54] stdnum/by/portal.nalog.gov.by.crt, stdnum/by/unp.py:
Remove obsolete intermediate certificate
The portal.nalog.gov.by web no longer has an incomplete
certificate chain.
2023-08-20 Arthur de Jong <[email protected]>
* [7761e42] stdnum/numdb.py: Use importlib.resource in place of
deprecated pkg_resources
Closes https://github.com/arthurdejong/python-stdnum/issues/412
Closes https://github.com/arthurdejong/python-stdnum/pull/413
2023-08-20 Arthur de Jong <[email protected]>
* [f6edcc5] tests/test_do_rnc.py: Avoid the deprecated
assertRegexpMatches function
2023-08-20 Arthur de Jong <[email protected]>
* [895f092] setup.cfg: Rename license_file option in setup.cfg
It seems the old option wasn't working with all versions of
setuptools anyway.
See
https://setuptools.pypa.io/en/latest/userguide/declarative_config.html
2023-08-20 Arthur de Jong <[email protected]>
* [3126f96] stdnum/by/unp.py, tests/test_by_unp.py: Update Belarusian
UNP online check
The API for the online check for Belarusian UNP numbers at
https://www.portal.nalog.gov.by/grp/getData has changed some
small details of the API.
2023-08-20 Arthur de Jong <[email protected]>
* [88d1dca] tests/test_de_handelsregisternummer.py: Replace test
number for German company registry
The number seems to be no longer valid breaking the online tests.
2023-08-20 Arthur de Jong <[email protected]>
* [6e56f3c] stdnum/at/postleitzahl.dat, stdnum/be/banks.dat,
stdnum/cn/loc.dat, stdnum/gs1_ai.dat, stdnum/iban.dat,
stdnum/imsi.dat, stdnum/isbn.dat, stdnum/isil.dat,
stdnum/nz/banks.dat, stdnum/oui.dat, tests/test_be_iban.doctest,
update/oui.py: Update database files
This also modifies the OUI update script because the website
has changed to HTTPS and is sometimes very slow.
The Belgian Commerzbank no longer has a registration and a bank
account number in the tests used that bank.
2023-08-20 Arthur de Jong <[email protected]>
* [0aa0b85] update/eu_nace.py: Remove EU NACE update script
The website that publishes the NACE catalogue has changed and
a complete re-write of the script would be necessary. The data
file hasn't changed since 2017 so is also unlikely to change
until it is going to be replaced by NACE rev. 2.1 in 2025.
See https://ec.europa.eu/eurostat/web/nace
The NACE rev 2 specification can now be found here:
https://showvoc.op.europa.eu/#/datasets/ESTAT_Statistical_Classification_of_Economic_Activities_in_the_European_Community_Rev._2/data
The NACE rev 2.1 specification can now be found here:
https://showvoc.op.europa.eu/#/datasets/ESTAT_Statistical_Classification_of_Economic_Activities_in_the_European_Community_Rev._2.1._%28NACE_2.1%29/data
In both cases a ZIP file with RDF metadata can be downloaded
(but the web applciation also exposes some simpler JSON APIs).
2023-08-13 Arthur de Jong <[email protected]>
* [f58e08d] stdnum/eu/oss.py, stdnum/eu/vat.py,
tests/test_eu_oss.doctest, tests/test_eu_vat.doctest: Validate
European VAT numbers with EU or IM prefix
Closes https://github.com/arthurdejong/python-stdnum/pull/417
2023-06-30 Blaž Bregar <[email protected]>
* [d0f4c1a] stdnum/si/__init__.py, stdnum/si/maticna.py,
tests/test_si_maticna.doctest: Add Slovenian Corporate Registration
Number
Closes https://github.com/arthurdejong/python-stdnum/pull/414
2023-08-06 Arthur de Jong <[email protected]>
* [b8ee830] .github/workflows/test.yml, scripts/check_headers.py,
tox.ini: Extend license check to file header check
This also checks that the file name referenced in the file header
is correct.
2023-08-06 Arthur de Jong <[email protected]>
* [ef49f49] stdnum/be/bis.py, stdnum/be/nn.py,
stdnum/de/stnr.py, stdnum/dz/nif.py, stdnum/fi/alv.py,
stdnum/gb/utr.py, stdnum/hr/oib.py, stdnum/md/idno.py,
stdnum/pl/regon.py, stdnum/py/ruc.py, stdnum/sk/dph.py,
stdnum/tn/mf.py, stdnum/ua/edrpou.py, stdnum/ua/rntrc.py,
stdnum/vn/mst.py, stdnum/za/idnr.py, tests/test_al_nipt.doctest,
tests/test_gb_sedol.doctest, tests/test_iso6346.doctest,
tests/test_iso7064.doctest, tests/test_th_moa.doctest,
tests/test_tn_mf.doctest, tests/test_ve_rif.doctest: Fix file
headers
This improves consistency across files and fixes some files that
had an incorrect file name reference.
2023-07-30 Arthur de Jong <[email protected]>
* [3848318] stdnum/ca/sin.py: Validate first digit of Canadian SIN
See
http://www.straightlineinternational.com/docs/vaildating_canadian_sin.pdf
See
https://lists.arthurdejong.org/python-stdnum-users/2023/msg00000.html
2023-06-20 Jeff Horemans <[email protected]>
* [be33a80] stdnum/be/bis.py, stdnum/be/nn.py,
tests/test_be_bis.doctest, tests/test_be_nn.doctest: Add Belgian
BIS Number
Closes https://github.com/arthurdejong/python-stdnum/pull/418
2023-06-19 Arthur de Jong <[email protected]>
* [8ce4a47] .github/workflows/test.yml: Run Python 2.7 tests in
a container for GitHub Actions
See https://github.com/actions/setup-python/issues/672
2023-06-13 Jeff Horemans <[email protected]>
* [311fd56] stdnum/be/nn.py, tests/test_be_nn.doctest: Handle
(partially) unknown birthdate of Belgian National Number
This adds documentation for the special cases regarding birth
dates embedded in the number, allows for date parts to be unknown
and adds functions for getting the year and month.
Closes https://github.com/arthurdejong/python-stdnum/pull/416
2023-06-01 Chales Horn <[email protected]>
* [7d3ddab] stdnum/isbn.py, stdnum/issn.py: Minor ISSN and ISBN
documentation fixes
Fix a comment that claimed incorrect ISSN length and use slightly
more consistent terminology around check digits in ISSN and ISBN.
Closes https://github.com/arthurdejong/python-stdnum/pull/415
2023-05-12 Arthur de Jong <[email protected]>
* [90044e2] .github/workflows/test.yml,
scripts/check_license_headers.py, tox.ini: Add automated checking
for correct license header
2023-01-28 Leandro Regueiro <[email protected]>
* [62d15e9] stdnum/gn/__init__.py, stdnum/gn/nifp.py,
tests/test_gn_nifp.doctest: Add support for Guinea TIN
Closes https://github.com/arthurdejong/python-stdnum/issues/384
Closes https://github.com/arthurdejong/python-stdnum/pull/386
2023-02-24 Victor <[email protected]>
* [96abcfe] stdnum/es/postal_code.py: Add Spanish postcode validator
Closes https://github.com/arthurdejong/python-stdnum/pull/401
2023-02-13 mjturt <[email protected]>
* [36858cc] stdnum/fi/hetu.py, tests/test_fi_hetu.doctest: Add
support for Finland HETU new century indicating signs
More information at
https://dvv.fi/en/reform-of-personal-identity-code
Cloess https://github.com/arthurdejong/python-stdnum/pull/396
2023-01-05 Jeff Horemans <[email protected]>
* [42d2792] stdnum/be/nn.py, tests/test_be_nn.doctest: Add
functionality to get gender from Belgian National Number
This also extends the documentation for the number.
Closes https://github.com/arthurdejong/python-stdnum/pull/347/files
2023-03-06 RaduBorzea <[email protected]>
* [cf14a9f] stdnum/ro/cnp.py: Add get_county() function to
Romanian CNP
This also validates the county part of the number.
Closes https://github.com/arthurdejong/python-stdnum/pull/407
2023-03-19 Arthur de Jong <[email protected]>
* [a8b6573] docs/conf.py, setup.cfg, tox.ini: Ensure flake8 is
run on all Python files
This also fixes code style fixes in the Sphinx configuration file.
2023-03-18 Arthur de Jong <[email protected]>
* [7af50b7] .github/workflows/test.yml, setup.py, tox.ini: Add
support for Python 3.11
2023-03-18 Arthur de Jong <[email protected]>
* [8498b37] stdnum/gs1_128.py: Fix date formatting on PyPy 2.7
The original way of calling strftime was likely an artifact of
Python 2.6 support.
Fixes 7e84c05
2023-03-18 Arthur de Jong <[email protected]>
* [7e84c05] stdnum/gs1_128.py, stdnum/gs1_ai.dat,
tests/test_gs1_128.doctest, update/gs1_ai.py: Extend date parsing
in GS1-128
Some new AIs have new date formats or have changed the way
optional components of formats are defined.
2023-03-09 Dimitri Papadopoulos
* [bf1bdfe] stdnum/iban.dat: Update IBAN database file
Closes https://github.com/arthurdejong/python-stdnum/pull/409
2023-03-18 Arthur de Jong <[email protected]>
* [a09a7ce] stdnum/al/nipt.py, tests/test_al_nipt.doctest: Fix
Albanian tax number validation
This extends the description of the Albanian NIPT (NUIS) number
with information on the structure of the number. The first
character was previously limited between J and L but this letter
indicates a decade and the number is also used for individuals
to where it indicates a birth date.
Thanks Julien Launois for pointing this out.
Source:
https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Albania-TIN.pdf
Fixes 3db826c Closes
https://github.com/arthurdejong/python-stdnum/pull/402
2023-03-13 Ali-Akber Saifee <[email protected]>
* [031a249] stdnum/sg/uen.py: Fix typo in UEN docstring
2023-01-02 Arthur de Jong <[email protected]>
* [cf22705] online_check/stdnum.wsgi, tox.ini: Extend number
properties to show in online check
This also ensures that flake8 is run on the WSGI script.
2022-10-09 Leandro Regueiro <[email protected]>
* [6d366e3] stdnum/eg/__init__.py, stdnum/eg/tn.py,
tests/test_eg_tn.doctest: Add support for Egypt TIN
This also convertis Arabic digits to ASCII digits.
Closes https://github.com/arthurdejong/python-stdnum/issues/225
Closes https://github.com/arthurdejong/python-stdnum/pull/334
2022-12-30 Arthur de Jong <[email protected]>
* [b1dc313] CONTRIBUTING.md, docs/contributing.rst, docs/index.rst:
Add initial CONTRIBUTING.md file
Initial description of the information needed for adding new
number formats and some coding and testing guidelines.
2022-12-05 Dimitri Papadopoulos
* [df894c3] stdnum/ch/uid.py, stdnum/gh/tin.py: Fix typos found
by codespell
Closes https://github.com/arthurdejong/python-stdnum/pull/344
2022-12-12 Arthur de Jong <[email protected]>
* [4f8155c] .github/workflows/test.yml: Run Python 3.5 and 3.6
GitHub tests on older Ubuntu
The ubuntu-latest now points to ubuntu-22.04 instead of
ubuntu-20.04 before.
This also switches the PyPy version to test with to 3.9.
2022-11-29 valeriko <[email protected]>
* [74d854f] stdnum/ee/ik.py: Fix a typo
Clocses https://github.com/arthurdejong/python-stdnum/pull/341
2022-11-28 Arthur de Jong <[email protected]>
* [7a91a98] tox.ini: Avoid newer flake8
The new 6.0.0 contains a number of backwards incompatible changes
for which plugins need to be updated and configuration needs to
be updated.
Sadly the maintainer no longer accepts contributions or discussion
See https://github.com/PyCQA/flake8/issues/1760
2022-11-13 Arthur de Jong <[email protected]>
* [60a90ed] ChangeLog, NEWS, README.md, docs/index.rst,
docs/stdnum.be.nn.rst, docs/stdnum.cfi.rst,
docs/stdnum.cz.bankaccount.rst, docs/stdnum.dz.nif.rst,
docs/stdnum.fo.vn.rst, docs/stdnum.gh.tin.rst,
docs/stdnum.ke.pin.rst, docs/stdnum.ma.ice.rst,
docs/stdnum.me.pib.rst, docs/stdnum.mk.edb.rst,
docs/stdnum.pk.cnic.rst, docs/stdnum.si.emso.rst,
docs/stdnum.tn.mf.rst, stdnum/__init__.py, stdnum/gh/tin.py,
tox.ini: Get files ready for 1.18 release
2022-11-13 Arthur de Jong <[email protected]>
* [31b2694] stdnum/at/postleitzahl.dat, stdnum/be/banks.dat,
stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/gs1_ai.dat,
stdnum/imsi.dat, stdnum/isbn.dat, stdnum/nz/banks.dat,
stdnum/oui.dat: Update database files
2022-11-13 Arthur de Jong <[email protected]>
* [f691bf7] stdnum/de/handelsregisternummer.py,
tests/test_de_handelsregisternummer.py: Update German
OffeneRegister lookup data format
It appears that the data structure at OffeneRegister has changed
which requires a different query. Data is returned in a different
structure.
2022-11-13 Arthur de Jong <[email protected]>
* [5cdef0d] update/cn_loc.py: Increase timeout for CN Open Data
download
It seems that raw.githubusercontent.com can be extremely slow.
2022-11-13 Arthur de Jong <[email protected]>
* [580d6e0] update/my_bp.py: Pick up custom certificate from
script path
This ensures that the script can be run from any directory.
Fixes c4ad714
2022-09-06 Leandro Regueiro <[email protected]>
* [7348c7a] tests/test_vatin.doctest: vatin: Add a few more tests
for is_valid
See https://github.com/arthurdejong/python-stdnum/pull/316
2022-11-13 Arthur de Jong <[email protected]>
* [fa62ea3] stdnum/pk/__init__.py, stdnum/pk/cnic.py,
tests/test_pk_cnic.doctest: Add Pakistani ID card number
Based on the implementation provided by Quantum Novice (Syed
Haseeb Shah).
Closes https://github.com/arthurdejong/python-stdnum/pull/306
Closes https://github.com/arthurdejong/python-stdnum/issues/304
2022-10-16 Blaž Bregar <[email protected]>
* [feccaff] stdnum/si/__init__.py, stdnum/si/emso.py,
tests/test_si_emso.doctest: Add support for Slovenian EMŠO
(Unique Master Citizen Number)
Closes https://github.com/arthurdejong/python-stdnum/pull/338
2022-11-12 Arthur de Jong <[email protected]>
* [74cc981] stdnum/cz/bankaccount.py, stdnum/nz/bankaccount.py,
tox.ini, update/iban.py: Ensure we always run flake8-bugbear
This assumes that we no longer use Python 2.7 for running the
flake8 tests any more.
2022-11-12 Arthur de Jong <[email protected]>
* [a03ac04] stdnum/cz/bankaccount.py,
stdnum/es/referenciacatastral.py, stdnum/lei.py, stdnum/nl/bsn.py:
Use HTTPS in URLs where possible
2022-10-23 Leandro Regueiro <[email protected]>
* [8e76cd2] stdnum/cr/cpf.py: Pad with zeroes in a more readable
manner
Closes https://github.com/arthurdejong/python-stdnum/pull/340
2022-11-12 Arthur de Jong <[email protected]>
* [45f098b] stdnum/exceptions.py: Make all exceptions inherit
from ValueError
All the validation exceptions (subclasses of ValidationError)
are raised when a number is provided with an inappropriate value.
2022-11-12 Arthur de Jong <[email protected]>
* [a218032] stdnum/ch/uid.py, tests/test_ch_uid.py: Add a check_uid()
function to the stdnum.ch.uid module
This function can be used to performa a lookup of organisation
information by the Swiss Federal Statistical Office web service.
Related to https://github.com/arthurdejong/python-stdnum/issues/336
2022-11-12 Arthur de Jong <[email protected]>
* [1364e19] stdnum/cusip.py, tests/test_cusip.doctest: Support
"I" and "O" in CUSIP number
It is unclear why these letters were considered invalid at the
time of the implementation.
This also reduces the test set a bit while still covering
most cases.
Closes https://github.com/arthurdejong/python-stdnum/issues/337
2022-10-23 Arthur de Jong <[email protected]>
* [f972894] online_check/stdnum.wsgi: Switch to escape() from html
The function was removed from the cgi module in Python 3.8.
2022-10-23 Arthur de Jong <[email protected]>
* [c5d3bf4] online_check/stdnum.wsgi: Switch to parse_qs() from
urllib.parse
The function was removed from the cgi module in Python 3.8.
2022-10-19 Arthur de Jong <[email protected]>
* [8b5b07a] stdnum/casrn.py: Remove unused import
Fixes 09d595b
2022-10-19 Arthur de Jong <[email protected]>
* [09d595b] stdnum/casrn.py: Improve validation of CAS Registry
Number
This ensures that a leading 0 is treated as invalid.
2022-10-19 Arthur de Jong <[email protected]>
* [7c2153e] stdnum/cas.py: Remove duplicate CAS Registry Number
The recently added stdnum.cas module was already available as
teh stdnum.casrn module.
Reverts acb6934
2022-10-19 Arthur de Jong <[email protected]>
* [1003033] tests/test_no_fodselsnummer.doctest: Update
Fødselsnummer test case for date in future
The future was now. This problem was pushed forwards to October
2039.
2022-10-15 Arthur de Jong <[email protected]>
* [1636045] tox.ini: Support running tests with PyPy 2.7
This also applies the fix from cfc80c8 from Python 2.7 to PyPy.
2022-09-11 Leandro Regueiro <[email protected]>
* [7be2291] stdnum/gh/__init__.py, stdnum/gh/tin.py,
tests/test_gh_tin.doctest: Add support for Ghana TIN
Closes https://github.com/arthurdejong/python-stdnum/pull/326
Closes https://github.com/arthurdejong/python-stdnum/issues/262
2022-10-15 Arthur de Jong <[email protected]>
* [acb6934] stdnum/cas.py: Add CAS Registry Number
2022-09-18 Leandro Regueiro <[email protected]>
* [2b6e087] stdnum/me/__init__.py, stdnum/me/pib.py,
tests/test_me_pib.doctest: Add support for Montenegro TIN
Closes https://github.com/arthurdejong/python-stdnum/pull/331
Closes https://github.com/arthurdejong/python-stdnum/issues/223
2022-09-10 Leandro Regueiro <[email protected]>
* [fbe094c] stdnum/fo/__init__.py, stdnum/fo/vn.py,
tests/test_fo_vn.doctest: Add Faroe Islands V-number
Closes https://github.com/arthurdejong/python-stdnum/pull/323
Closes https://github.com/arthurdejong/python-stdnum/issues/219
2022-09-17 Leandro Regueiro <[email protected]>
* [a261a93] stdnum/mk/__init__.py, stdnum/mk/edb.py,
tests/test_mk_edb.doctest: Add North Macedonian ЕДБ
Note that this is implementation is mostly based
on unofficial sources describing the format,
which match the hundreds of examples found online.
https://forum.it.mk/threads/modularna-kontrola-na-embg-edb-dbs-itn.15663/?__cf_chl_tk=Op2PaEIauip6Z.ZjvhP897O8gRVAwe5CDAVTpjx1sEo-1663498930-0-gaNycGzNCRE#post-187048
Also note that the algorithm for the check digit was tested on
all found examples, and it doesn't work for all of them, despite
those failing examples don't seem to be valid according to the
official online search.
Closes https://github.com/arthurdejong/python-stdnum/pull/330
Closes https://github.com/arthurdejong/python-stdnum/issues/222
2022-09-23 Dimitri Papadopoulos
* [eff3f52] stdnum/cn/ric.py, stdnum/ma/ice.py: Fix a couple typos
found by codespell
Closes https://github.com/arthurdejong/python-stdnum/pull/333
2022-09-04 Leandro Regueiro <[email protected]>
* [31709fc] stdnum/dz/__init__.py, stdnum/dz/nif.py,
tests/test_dz_nif.doctest: Add Algerian NIF number
This currently only checks the length and whether it only
contains digits because little could be found on the structure
of the number of whether there are any check digits.
Closes https://github.com/arthurdejong/python-stdnum/pull/313
Closes https://github.com/arthurdejong/python-stdnum/issues/307
2022-09-03 Leandro Regueiro <[email protected]>
* [2907676] stdnum/ma/__init__.py, stdnum/ma/ice.py,
tests/test_ma_ice.doctest: Add support for Morocco TIN
Closes https://github.com/arthurdejong/python-stdnum/issues/226
Closes https://github.com/arthurdejong/python-stdnum/pull/312
2022-08-08 Leandro Regueiro <[email protected]>
* [d70549a] stdnum/ke/__init__.py, stdnum/ke/pin.py,
tests/test_ke_pin.doctest: Add Kenyan TIN
Closes https://github.com/arthurdejong/python-stdnum/issues/300
Closes https://github.com/arthurdejong/python-stdnum/pull/310
2022-09-06 Leandro Regueiro <[email protected]>
* [dd70cd5] stdnum/tn/__init__.py, stdnum/tn/mf.py,
tests/test_tn_mf.doctest: Add support for Tunisia TIN
Closes https://github.com/arthurdejong/python-stdnum/pull/317
Closes https://github.com/arthurdejong/python-stdnum/issues/309
2022-08-15 Arthur de Jong <[email protected]>
* [e40c827] tests/test_eu_vat.py: Update EU VAT Vies test with
new number
The number used before was apparently no longer valid.
2022-08-15 Arthur de Jong <[email protected]>
* [5bcc460] stdnum/de/handelsregisternummer.py: Fix German
OffeneRegister company registry URL
2022-08-15 Arthur de Jong <[email protected]>
* [ee9dfdf] stdnum/at/postleitzahl.dat, stdnum/be/banks.dat,
stdnum/cfi.dat, stdnum/cn/loc.dat, stdnum/eu/nace.dat,
stdnum/gs1_ai.dat, stdnum/iban.dat, stdnum/imsi.dat,
stdnum/isbn.dat, stdnum/isil.dat, stdnum/my/bp.dat,
stdnum/nz/banks.dat, stdnum/oui.dat: Update database files
2022-08-15 Arthur de Jong <[email protected]>
* [6b39c3d] update/nz_banks.py: Do not print trailing space
2022-08-15 Arthur de Jong <[email protected]>
* [e901ac7] update/my_bp.py: Ignore invalid downloaded country codes
The page currently lists a country without a country code (is
listed as "-"). This also ensures that lists of country codes
are handled consistently.
2022-08-15 Arthur de Jong <[email protected]>
* [2cf78c2] update/imsi.py: Update names of Wikipedia pages with
IMSI codes
2022-08-15 Arthur de Jong <[email protected]>
* [975d508] update/at_postleitzahl.py, update/be_banks.py,
update/cfi.py, update/cn_loc.py, update/cz_banks.py,
update/do_whitelists.py, update/eu_nace.py, update/gs1_ai.py,
update/iban.py, update/imsi.py, update/isbn.py, update/isil.py,
update/my_bp.py, update/nz_banks.py, update/oui.py: Provide a
timeout to all download scripts
2022-08-15 Arthur de Jong <[email protected]>
* [ed37a6a] stdnum/isil.py, update/isil.py: Update ISIL download URL
2022-08-13 Christian Clauss <[email protected]>
* [8aa6b5e] .github/workflows/test.yml: Remove redundant steps
with tox_job
This also switches the other Tox jobs to use the latest Python
3.x interpreter.
Closes https://github.com/arthurdejong/python-stdnum/pull/305
2022-08-03 Romuald R <[email protected]>
* [ce9322c] stdnum/de/handelsregisternummer.py,
tests/test_de_handelsregisternummer.doctest: Add extra court
alias for german Handelsregisternummer
Charlottenburg (Berlin) is a valid court representation for Berlin
(Charlottenburg).
See
https://www.northdata.com/VRB+Service+GmbH,+Berlin/Amtsgericht+Charlottenburg+%28Berlin%29+HRB+103587+B
Closes https://github.com/arthurdejong/python-stdnum/pull/298
2022-08-15 Arthur de Jong <[email protected]>
* [eae1dd2] stdnum/ch/esr.py, stdnum/il/idnr.py, stdnum/isin.py,
stdnum/nl/bsn.py, stdnum/no/kontonr.py, stdnum/nz/ird.py,
stdnum/ro/cui.py: Use str.zfill() for padding leading zeros
2022-06-08 petr.prikryl <[email protected]>
* [c5595c7] stdnum/cz/bankaccount.py, stdnum/cz/banks.dat,
tests/test_cz_bankaccount.doctest, update/cz_banks.py: Add Czech
bank account numbers
Closes https://github.com/arthurdejong/python-stdnum/issues/295
Closes https://github.com/arthurdejong/python-stdnum/pull/296
2022-08-06 vovavili <[email protected]>
* [4d4a0b3] stdnum/isin.py: Fix small typo
Improper inflection of plurals.
Closes https://github.com/arthurdejong/python-stdnum/pull/299
2022-08-13 Arthur de Jong <[email protected]>
* [7ee0563] setup.cfg, stdnum/ad/nrt.py, stdnum/cr/cpj.py,
stdnum/eu/nace.py, stdnum/id/npwp.py, stdnum/il/hp.py,
stdnum/it/aic.py, stdnum/li/peid.py, stdnum/nz/ird.py,
stdnum/sg/uen.py, stdnum/sv/nit.py, stdnum/za/tin.py,
update/eu_nace.py: Put long line flake8 ignores in files instead
of globally
We have some long URLs in the code (mostly in docstrings) and
wrapping them does not improve readability (and is difficult
in docstrings) so the E501 ignore is now put inside each file
instead of globally.
Closes https://github.com/arthurdejong/python-stdnum/pull/302
2022-08-13 Arthur de Jong <[email protected]>
* [351be74] .github/workflows/test.yml, setup.py, tox.ini: Add
support for Python 3.10
2022-08-08 Christian Clauss <[email protected]>
* [b36c0d6] .github/workflows/test.yml: Upgrade GitHub Actions
Update checkout to v3 (no relevant changes) and setup-python to v4
(changes the names for pypy versions).
2022-08-12 Arthur de Jong <[email protected]>
* [9f79691] stdnum/it/iva.py, update/iban.py: Fix flake8 error
This stops using not as a function and hopefully also makes the
logic clearer.
2022-07-04 Arthur de Jong <[email protected]>
* [a280d53] .github/workflows/test.yml: Upgrade to CodeQL Action v2
https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/
2022-04-09 Arthur de Jong <[email protected]>
* [8a28e38] setup.cfg, tox.ini: Switch from nose to pytest
Nose hasn't seen a release since 2015 and sadly doesn't work
with Python 3.10.
See https://github.com/nose-devs/nose/issues/1099
2022-05-09 Arthur de Jong <[email protected]>
* [e831d07] setup.cfg: Ignore flake8 complaining about print
statements
It seems that flake8 now uses T201 instead of T001 for this check.
2022-04-08 Alexis de Lattre <[email protected]>
* [7d81eac] stdnum/gs1_128.py, tests/test_gs1_128.doctest: Support
parsing dates without a day in GS1-128
Date such as '(17)260400' is now properly interpreted as April
30th 2026.
Closes https://github.com/arthurdejong/python-stdnum/pull/294
2022-02-05 Cédric Krier <[email protected]>
* [bda2a9c] stdnum/be/nn.py, tests/test_be_nn.doctest: Compute
birth date from Belgian National Number
Closes https://github.com/arthurdejong/python-stdnum/pull/288
2022-03-21 Arthur de Jong <[email protected]>
* [e2a2774] stdnum/iso7064/mod_97_10.py, tests/test_iso7064.doctest:
Return check digits in 02-98 range for ISO 7064 Mod 97, 10
There are some valid ranges for check digits within ISO 7064
Mod 97, 10 that all result in a valid checksum. This changes the
calculated check digits to be in the range from 02 to 98 as is
specified for use in IBAN.
See
https://en.wikipedia.org/wiki/International_Bank_Account_Number#Generating_IBAN_check_digits
Closes https://github.com/arthurdejong/python-stdnum/pull/289
2022-03-07 Cédric Krier <[email protected]>
* [73f5e3a] stdnum/fr/siret.py, tests/test_fr_siret.doctest:
Support special validation of La Post SIRET
See
https://fr.wikipedia.org/wiki/Système_d'identification_du_répertoire_des_établissements#Exceptions_pour_le_groupe_La_Poste
Closes https://github.com/arthurdejong/python-stdnum/pull/293
Closes https://github.com/arthurdejong/python-stdnum/issues/291
2022-02-14 Arthur de Jong <[email protected]>
* [27c7c74] stdnum/cfi.py, tests/test_cfi.doctest: Fix Python 2.7
compatibility of the tests
Fixes a9039c1
2022-02-14 Arthur de Jong <[email protected]>
* [cfc80c8] tox.ini: Support running tests with Python 2.7
When using recent versions of virtualenv this ensures that
older versions of pip and setuptools will be used inside the
virtualenvs that are created by tox.
2022-02-13 Arthur de Jong <[email protected]>
* [a9039c1] stdnum/cfi.dat, stdnum/cfi.py, tests/test_cfi.doctest,
update/cfi.py: Add Classification of Financial Instruments
This implements parsing of ISO 10962 CFI codes based on the
published description of the structure of these numbers.
Closes https://github.com/arthurdejong/python-stdnum/issues/283
2022-02-13 Arthur de Jong <[email protected]>
* [219ff54] stdnum/numdb.py, tests/numdb-test.dat: Fix problem in
numdb with missing sub-properties
If a numdb data file line contains multiple values or ranges
the sub-ranges were only applied to the last value in the range.
2022-02-13 Arthur de Jong <[email protected]>
* [fd32e61] setup.py: Also ensure that embedded certificates
are shipped
2022-01-09 Arthur de Jong <[email protected]>
* [02dec52] stdnum/mx/curp.py: Fix disabling check digit validation
of Mexican CURP
The validation functions supported an optional parameter to
disable check digit validation in the number that didn't actually
affect validation and was most likely accidentally copied from
the RFC module.
Fixes 50874a9 Closes
https://github.com/arthurdejong/python-stdnum/issues/285
2021-11-29 Cédric Krier <[email protected]>
* [dcf4730] stdnum/be/__init__.py, stdnum/be/nn.py: Add Belgian
National Number
Closes https://github.com/arthurdejong/python-stdnum/pull/284
2021-10-03 Arthur de Jong <[email protected]>
* [50650a9] ChangeLog, NEWS, README.md, docs/index.rst,
docs/stdnum.in_.epic.rst, docs/stdnum.in_.gstin.rst,
docs/stdnum.isrc.rst, docs/stdnum.pt.cc.rst,
docs/stdnum.se.postnummer.rst, docs/stdnum.th.moa.rst,
docs/stdnum.th.pin.rst, docs/stdnum.th.tin.rst, stdnum/__init__.py:
Get files ready for 1.17 release
2021-10-03 Arthur de Jong <[email protected]>
* [0779d6a] stdnum/kr/brn.py, tests/test_kr_brn.py: Remove South
Korean BRN online check
The Korea Fair Trade Commission website now requires solving
a CAPTCHA before submitting the request so this is no longer
possible.
2021-10-03 Arthur de Jong <[email protected]>
* [61ebc9c] stdnum/no/orgnr.py: Add documentation for Norwegian
Organisasjonsnummer
2021-10-03 Arthur de Jong <[email protected]>
* [9da63a4] tests/test_do_cedula.py: Update Cedula online test value
Apparently the previously whitelisted value is no longer recognised
as a valid value by the DGII service.
2021-10-03 Arthur de Jong <[email protected]>