Skip to content

Commit

Permalink
Get files ready for 1.20 release
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurdejong committed Mar 17, 2024
1 parent b454d3a commit 201d4d1
Show file tree
Hide file tree
Showing 9 changed files with 150 additions and 4 deletions.
110 changes: 110 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,113 @@
2024-03-17 Arthur de Jong <arthur@arthurdejong.org>

* [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 <arthur@arthurdejong.org>

* [97dbced] tox.ini: Add update-dat tox target for convenient data
file updating

2024-03-17 Arthur de Jong <arthur@arthurdejong.org>

* [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 <arthur@arthurdejong.org>

* [9230604] stdnum/za/idnr.py: Use HTTPS in URLs where possible

2024-02-27 Atul Deolekar <atul.deolekar@gmail.com>

* [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 <arthur@arthurdejong.org>

* [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 <kevin@tonkworks.com>

* [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 <arthur@arthurdejong.org>

* [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 <weberdk01@gmail.com>

* [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 <omerboratav@gmail.com>

* [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 <arthur@arthurdejong.org>

* [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 <arthur@arthurdejong.org>

* [1a5db1f] stdnum/de/vat.py: Fix typo (thanks Александр
Кизеев)

2023-10-02 Arthur de Jong <arthur@arthurdejong.org>

* [352bbcb] .github/workflows/test.yml, setup.py, tox.ini: Add
support for Python 3.12

2023-08-20 Arthur de Jong <arthur@arthurdejong.org>

* [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 <arthur@arthurdejong.org>

* [3191b4c] MANIFEST.in: Ensure all files are included in source
Expand Down
15 changes: 15 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
changes from 1.19 to 1.20
-------------------------

* Add modules for the following number formats:
- BC PHN (British Columbia Personal Health Number) (thanks Ömer Boratav)
- EC Number (European Community number) (thanks Daniel Weber)
- VID (Indian personal virtual identity number) (thanks Atul Deolekar)

* Fix typo in German Umsatzsteur Identifikationnummer (thanks Александр Кизеев)
* Ensure EU VAT numbers don't accept duplicate country codes
* Fix vatin number compacting for "EU" VAT numbers (thanks Davide Walder)
* Add check digit validation to French NIF (thanks Kevin Dagostino)
* Fix Ukrainian EDRPOU check digit calculation (thanks sector119)


changes from 1.18 to 1.19
-------------------------

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Currently this package supports the following formats:
* CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazilian company identifier)
* CPF (Cadastro de Pessoas Físicas, Brazilian national identifier)
* УНП, UNP (Учетный номер плательщика, the Belarus VAT number)
* BC PHN (British Columbia Personal Health Number)
* BN (Canadian Business Number)
* SIN (Canadian Social Insurance Number)
* CAS RN (Chemical Abstracts Service Registry Number)
Expand Down Expand Up @@ -90,6 +91,7 @@ Currently this package supports the following formats:
* Referencia Catastral (Spanish real estate property id)
* SEPA Identifier of the Creditor (AT-02)
* Euro banknote serial numbers
* EC Number (European Community number)
* EIC (European Energy Identification Code)
* NACE (classification for businesses in the European Union)
* OSS (European VAT on e-Commerce - One Stop Shop)
Expand Down Expand Up @@ -133,6 +135,7 @@ Currently this package supports the following formats:
* EPIC (Electoral Photo Identity Card, Indian Voter ID)
* GSTIN (Goods and Services Tax identification number, Indian VAT number)
* PAN (Permanent Account Number, Indian income tax identifier)
* VID (Indian personal virtual identity number)
* Kennitala (Icelandic personal and organisation identity code)
* VSK number (Virðisaukaskattsnúmer, Icelandic VAT number)
* ISAN (International Standard Audiovisual Number)
Expand Down Expand Up @@ -286,7 +289,7 @@ also work with older versions of Python.
Copyright
---------

Copyright (C) 2010-2023 Arthur de Jong and others
Copyright (C) 2010-2024 Arthur de Jong and others

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

# General information about the project.
project = u'python-stdnum'
copyright = u'2013-2023, Arthur de Jong'
copyright = u'2013-2024, Arthur de Jong'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Available formats
br.cnpj
br.cpf
by.unp
ca.bc_phn
ca.bn
ca.sin
casrn
Expand Down Expand Up @@ -188,6 +189,7 @@ Available formats
es.referenciacatastral
eu.at_02
eu.banknote
eu.ecnumber
eu.eic
eu.nace
eu.oss
Expand Down Expand Up @@ -231,6 +233,7 @@ Available formats
in_.epic
in_.gstin
in_.pan
in_.vid
is_.kennitala
is_.vsk
isan
Expand Down
5 changes: 5 additions & 0 deletions docs/stdnum.ca.bc_phn.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.ca.bc_phn
================

.. automodule:: stdnum.ca.bc_phn
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.eu.ecnumber.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.eu.ecnumber
==================

.. automodule:: stdnum.eu.ecnumber
:members:
5 changes: 5 additions & 0 deletions docs/stdnum.in_.vid.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
stdnum.in\_.vid
===============

.. automodule:: stdnum.in_.vid
:members:
4 changes: 2 additions & 2 deletions stdnum/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# __init__.py - main module
# coding: utf-8
#
# Copyright (C) 2010-2023 Arthur de Jong
# Copyright (C) 2010-2024 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -43,4 +43,4 @@
__all__ = ('get_cc_module', '__version__')

# the version number of the library
__version__ = '1.19'
__version__ = '1.20'

0 comments on commit 201d4d1

Please sign in to comment.