lists.arthurdejong.org
RSS feed

python-stdnum branch master updated. 1.8

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum branch master updated. 1.8



This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-stdnum".

The branch, master has been updated
       via  ae89e820338f5646b2ea71cee31a5bce6b3a28e0 (commit)
       via  db9b278672ed967e0edb485b6e0f359db1d4417f (commit)
      from  fbb9d24b79688f6e76f1f58396af81525af13455 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://arthurdejong.org/git/python-stdnum/commit/?id=ae89e820338f5646b2ea71cee31a5bce6b3a28e0

commit ae89e820338f5646b2ea71cee31a5bce6b3a28e0
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Wed Jan 3 19:35:31 2018 +0100

    Get files ready for 1.8 release

diff --git a/ChangeLog b/ChangeLog
index c88a5d0..054b424 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,241 @@
+2018-01-03  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [db9b278] tox.ini: Fix Sphinx dependency name
+
+2018-01-03  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [fbb9d24] docs/index.rst, stdnum/__init__.py: Move get_cc_module()
+         function to package for public use
+
+2018-01-03  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [7bb0e5f] setup.py, stdnum/util.py: Try the non-caching zeep
+         client on older versions
+
+         This uses the "normal" Client class from zeep if CachingClient
+         is not available (this is the case on older zeep versions).
+
+         This also records (and documents) the dependencies for SOAP
+         libraries in setup.py.
+
+2018-01-01  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [6d7ba46] .travis.yml: Add a Travis configuration file
+
+2018-01-01  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [db7be06] stdnum/do/ncf.py, stdnum/do/rnc.py, tox.ini: Fix Python
+         2.6 compatibility
+
+2018-01-01  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [8107f08] stdnum/cn/loc.dat, stdnum/eu/nace.dat, stdnum/imsi.dat,
+         stdnum/isbn.dat, stdnum/us/ein.dat: Update database files
+
+         Note that the Swift IBAN Registry in txt format is currently
+         unavailable so hasn't been updated.
+
+2018-01-01  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [e781eee] MANIFEST.in, tox.ini, update/README, update/cn_loc.py,
+         update/do_whitelists.py, update/eu_nace.py, update/iban.py,
+         update/imsi.py, update/isbn.py, update/isil.py, update/my_bp.py,
+         update/numlist.py, update/requirements.txt: Move update scripts
+         to own directory
+
+         This moves all the update scripts to their own directory so they
+         don't clutter the toplevel directory.
+
+         This also ensures that the scripts are passed through flake8
+         and makes some adjustments for that alongside a few other cleanups.
+
+2017-12-01  srikanthlogic <srik.lak@gmail.com>
+
+       * [442aa82] stdnum/in_/pan.py, tests/test_in_pan.doctest: Add
+         Indian PAN
+
+         Closes https://github.com/arthurdejong/python-stdnum/pull/57
+
+2017-12-31  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [8a34b4e] stdnum/util.py: Correctly quote regular expression
+
+         Fixes a6ae1d0.
+
+2017-12-31  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [271b9e4] docs/stdnum.is_.kennitala.rst, docs/stdnum.is_.vsk.rst,
+         tox.ini: Add Sphinx documentation checks
+
+         This also fixes an escaping issue in the automatically generated
+         documentation for modules that end with an underscore.
+
+2017-12-06  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [be094f8] README, docs/conf.py, docs/index.rst, getnumlist.py,
+         setup.py, stdnum/__init__.py: Use README as package long
+         description
+
+         This also shortens the stdnum module docstring and updates the
+         Sphinx configuration.
+
+2017-12-01  srikanthlogic <srik.lak@gmail.com>
+
+       * [c576bc4] stdnum/in_/__init__.py, stdnum/in_/aadhaar.py: Add
+         Indian Aadhaar
+
+         Closes https://github.com/arthurdejong/python-stdnum/pull/56
+
+2017-11-26  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [bafdb70] stdnum/casrn.py, tests/test_casrn.doctest: Add CAS
+         Registry Number
+
+         This adds validation of the Chemical Abstracts Service Registry
+         Number.
+
+2017-11-24  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [d5f97e9] online_check/check.js, online_check/stdnum.wsgi:
+         Change output of online lookups
+
+         This puts the number before the number name to make it a little
+         clearer.
+
+2017-11-24  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [f7b4615] online_check/check.js: Store online check numbers
+         in history
+
+         This updates the browser history with with the numbers that
+         were checked so that you can easily go back and forth between
+         checked number.
+
+2017-11-24  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [7cb114b] online_check/stdnum.wsgi: Correctly escape number for
+         use in attribute
+
+2017-11-26  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [90067f7] tests/test_eu_banknote.doctest: Fix incorrect banknote
+         test
+
+         Also add a few verified correct numbers.
+
+         Fixes b7b812c.
+
+2017-11-22  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [b7b812c] stdnum/eu/banknote.py, tests/test_eu_banknote.doctest:
+         Add Euro bank notes serial number
+
+         This adds validation of serial numbers that appear on Euro bills.
+
+2017-11-02  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [a6ae1d0] docs/index.rst, docs/stdnum.bic.rst,
+         docs/stdnum.iso9362.rst, stdnum/bic.py, stdnum/iso9362.py,
+         stdnum/util.py: Rename stdnum.iso9362 to stdnum.bic
+
+         The new name is more descriptive and easier to remember. This
+         makes stdnum.iso9362 a compatibility module that can be imported
+         with the old name but provides a deprecation warning.
+
+2017-10-22  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [6be1754] stdnum/util.py: Support zeep as preferred SOAP library
+
+         This tries zeep, suds (suds-jurko) and falls back to using
+         pysimplesoap for performing the SOAP requests. From those zeep
+         seems to be the best supported implementation.
+
+2017-10-22  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [9ab1d66] stdnum/eu/vat.py, tests/test_eu_vat.py: Add tests for
+         the VIES VAT validation functions
+
+         These tests are not normally run as part of the normal test suite
+         and have to be explicitly enabled by setting the ONLINE_TESTS
+         environment variable to avoid overloading these online services.
+
+2017-10-18  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [ab21159] stdnum/do/ncf.py, tests/test_do_ncf.py: Add
+         stdnum.do.ncf.check_dgii()
+
+         This adds functions for querying the Dirección General de
+         Impuestos Internos (DGII) API to check if the RNC and NCF
+         combination provided is valid.
+
+2017-10-18  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [6b09c5d] stdnum/do/rnc.py, tests/test_do_rnc.py, tox.ini:
+         Add stdnum.do.rnc.check_dgii() and search_dgii()
+
+         This adds functions for querying the Dirección General de
+         Impuestos Internos (DGII) API to validate the RNC and search
+         the register by keyword.
+
+2017-10-16  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [665bf7a] stdnum/do/ncf.py, tests/test_do_ncf.doctest: Add
+         Dominican Republic receipt number (NCF)
+
+         This number does not have a check digit but uses a distinctive
+         enough format that it should not be too great of a problem.
+
+2017-10-14  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [4ab1e3b] stdnum/eu/vat.py, stdnum/tr/tckimlik.py, stdnum/util.py:
+         Cache SOAP client in get_soap_client()
+
+         This caches the instantiated SOAP client classes in the util
+         module instead of doing the caching in every module that performs
+         requests.
+
+2017-10-18  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [cecd35c] getdowhitelists.py: Add a script for updating RNC and
+         Cedula whitelists
+
+2017-10-13  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [399321b] stdnum/do/rnc.py, tests/test_do_rnc.doctest: Also add
+         a whitelist for Dominican Republic RNC
+
+         Some RNCs are apparently valid while having an incorrect check
+         digit (though most appear to be inactive). There also appear to
+         be valid RNCs that do not have 9 digits.
+
+2017-10-13  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [58511dc] stdnum/do/cedula.py, tests/test_do_cedula.doctest:
+         Add a few new numbers to the Cedula whitelist
+
+         These numbers were found to be valid but had an invalid check
+         digit nonetheless (though most appear to be inactive). Also
+         there appear to be a few valid Cedula that do not have 11 digits.
+
+2017-10-13  David Arnold <dar@devco.co>
+
+       * [74c1721] stdnum/util.py, tests/test_util.doctest: Handle unicode
+         arguments in get_cc_module()
+
+         Closes https://github.com/arthurdejong/python-stdnum/issues/54
+
+2017-09-15  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [12cd072] stdnum/eu/at_02.py: Fix spelling errors
+
+2017-09-12  Arthur de Jong <arthur@arthurdejong.org>
+
+       * [4496ffe] ChangeLog, NEWS, README, docs/index.rst,
+         docs/stdnum.ca.bn.rst, docs/stdnum.ca.sin.rst,
+         docs/stdnum.de.idnr.rst, docs/stdnum.ee.registrikood.rst,
+         docs/stdnum.fi.veronumero.rst, docs/stdnum.gb.upn.rst,
+         stdnum/__init__.py: Get files ready for 1.7 release
+
 2017-09-12  Arthur de Jong <arthur@arthurdejong.org>
 
        * [28092b3] stdnum/damm.py: Add example with custom table to Damm
diff --git a/MANIFEST.in b/MANIFEST.in
index b297d5d..ac3b424 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,5 +1,5 @@
 include README NEWS ChangeLog COPYING *.py tox.ini
-recursive-include tests *.doctest *.dat
+recursive-include tests *.doctest *.dat *.py
 recursive-include docs *.rst *.py
 recursive-include online_check *
-recursive-include update README *.py
+recursive-include update README requirements.txt *.py
diff --git a/NEWS b/NEWS
index b71bcf2..eb7d829 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,28 @@
+changes from 1.7 to 1.8
+-----------------------
+
+* add modules for the following number formats:
+ - NCF (Números de Comprobante Fiscal, Dominican Republic receipt number)
+ - Euro banknote serial numbers
+ - CAS RN (Chemical Abstracts Service Registry Number)
+ - Aadhaar (Indian digital resident personal identity number)
+   (thanks Srikanth Lakshmanan)
+ - PAN (Permanent Account Number, Indian income tax identifier)
+   (thanks Srikanth Lakshmanan)
+* add functions for using the Dominican Republic DGII web service to validate
+  and search for RNC and NCF numbers
+* add/update whitelists for Dominican Republic RNC and Cedula
+* support zeep as preferred SOAP library (suds and pysimplesoap are tried
+  as fallback)
+* rename stdnum.iso9362 to stdnum.bic (iso9362 is deprecated but still
+  available for compatibility)
+* add tests for web services (not normally run to avoid unnecessary load)
+* fixes and improvement to the sample online validation service
+
+Development of the NCF format validation and DGII web service validation
+was funded by iterativo | http://iterativo.do
+
+
 changes from 1.6 to 1.7
 -----------------------
 
diff --git a/README b/README
index e15ceb5..e430706 100644
--- a/README
+++ b/README
@@ -27,10 +27,12 @@ Currently this package supports the following formats:
  * EGN (ЕГН, Единен граждански номер, Bulgarian personal identity codes)
  * PNF (ЛНЧ, Личен номер на чужденец, Bulgarian number of a foreigner)
  * VAT (Идентификационен номер по ДДС, Bulgarian VAT number)
+ * BIC (ISO 9362 Business identifier codes)
  * CNPJ (Cadastro Nacional da Pessoa Jurídica, Brazillian company identifier)
  * CPF (Cadastro de Pessoas Físicas, Brazillian national identifier)
  * BN (Canadian Business Number)
  * SIN (Canadian Social Insurance Number)
+ * CAS RN (Chemical Abstracts Service Registry Number)
  * Swiss social security number ("Sozialversicherungsnummer")
  * UID (Unternehmens-Identifikationsnummer, Swiss business identifier)
  * VAT, MWST, TVA, IVA, TPV (Mehrwertsteuernummer, the Swiss VAT number)
@@ -47,6 +49,7 @@ Currently this package supports the following formats:
  * CPR (personnummer, the Danish citizen number)
  * CVR (Momsregistreringsnummer, Danish VAT number)
  * Cedula (Dominican Republic national identification number)
+ * NCF (Números de Comprobante Fiscal, Dominican Republic receipt number)
  * RNC (Registro Nacional del Contribuyente, Dominican Republic tax number)
  * EAN (International Article Number)
  * CI (Cédula de identidad, Ecuadorian personal identity code)
@@ -63,6 +66,7 @@ Currently this package supports the following formats:
  * NIF (Número de Identificación Fiscal, Spanish VAT number)
  * Referencia Catastral (Spanish real estate property id)
  * SEPA Identifier of the Creditor (AT-02)
+ * Euro banknote serial numbers
  * EIC (European Energy Identification Code)
  * NACE (classification for businesses in the European Union)
  * VAT (European Union VAT number)
@@ -90,6 +94,8 @@ Currently this package supports the following formats:
  * IMEI (International Mobile Equipment Identity)
  * IMO number (International Maritime Organization number)
  * IMSI (International Mobile Subscriber Identity)
+ * Aadhaar (Indian digital resident personal identity number)
+ * PAN (Permanent Account Number, Indian income tax identifier)
  * Kennitala (Icelandic personal and organisation identity code)
  * VSK number (Virðisaukaskattsnúmer, Icelandic VAT number)
  * ISAN (International Standard Audiovisual Number)
@@ -98,7 +104,6 @@ Currently this package supports the following formats:
  * ISIN (International Securities Identification Number)
  * ISMN (International Standard Music Number)
  * ISO 6346 (International standard for container identification)
- * ISO 9362 (Business identifier codes)
  * ISSN (International Standard Serial Number)
  * Codice Fiscale (Italian tax code for individuals)
  * Partita IVA (Italian VAT number)
@@ -195,7 +200,7 @@ also work with older versions of Python.
 Copyright
 ---------
 
-Copyright (C) 2010-2017 Arthur de Jong and others
+Copyright (C) 2010-2018 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
diff --git a/docs/conf.py b/docs/conf.py
index 38ac5f7..e3976fe 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -46,7 +46,7 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'python-stdnum'
-copyright = u'2013-2017, Arthur de Jong'
+copyright = u'2013-2018, 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
diff --git a/docs/index.rst b/docs/index.rst
index e1bdb6c..aa769d1 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -114,6 +114,7 @@ Available formats
    br.cpf
    ca.bn
    ca.sin
+   casrn
    ch.ssn
    ch.uid
    ch.vat
@@ -130,6 +131,7 @@ Available formats
    dk.cpr
    dk.cvr
    do.cedula
+   do.ncf
    do.rnc
    ean
    ec.ci
@@ -146,6 +148,7 @@ Available formats
    es.nif
    es.referenciacatastral
    eu.at_02
+   eu.banknote
    eu.eic
    eu.nace
    eu.vat
@@ -173,6 +176,8 @@ Available formats
    imei
    imo
    imsi
+   in_.aadhaar
+   in_.pan
    is_.kennitala
    is_.vsk
    isan
diff --git a/docs/stdnum.casrn.rst b/docs/stdnum.casrn.rst
new file mode 100644
index 0000000..4573495
--- /dev/null
+++ b/docs/stdnum.casrn.rst
@@ -0,0 +1,5 @@
+stdnum.casrn
+============
+
+.. automodule:: stdnum.casrn
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.do.ncf.rst b/docs/stdnum.do.ncf.rst
new file mode 100644
index 0000000..603d511
--- /dev/null
+++ b/docs/stdnum.do.ncf.rst
@@ -0,0 +1,5 @@
+stdnum.do.ncf
+=============
+
+.. automodule:: stdnum.do.ncf
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.eu.banknote.rst b/docs/stdnum.eu.banknote.rst
new file mode 100644
index 0000000..c905876
--- /dev/null
+++ b/docs/stdnum.eu.banknote.rst
@@ -0,0 +1,5 @@
+stdnum.eu.banknote
+==================
+
+.. automodule:: stdnum.eu.banknote
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.in_.aadhaar.rst b/docs/stdnum.in_.aadhaar.rst
new file mode 100644
index 0000000..e148704
--- /dev/null
+++ b/docs/stdnum.in_.aadhaar.rst
@@ -0,0 +1,5 @@
+stdnum.in\_.aadhaar
+===================
+
+.. automodule:: stdnum.in_.aadhaar
+   :members:
\ No newline at end of file
diff --git a/docs/stdnum.in_.pan.rst b/docs/stdnum.in_.pan.rst
new file mode 100644
index 0000000..ffccdc0
--- /dev/null
+++ b/docs/stdnum.in_.pan.rst
@@ -0,0 +1,5 @@
+stdnum.in\_.pan
+===============
+
+.. automodule:: stdnum.in_.pan
+   :members:
\ No newline at end of file
diff --git a/setup.cfg b/setup.cfg
index a223703..ad7a949 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,3 +1,6 @@
+[metadata]
+license_file = COPYING
+
 [sdist]
 owner=root
 group=root
diff --git a/stdnum/__init__.py b/stdnum/__init__.py
index ff4478c..99e62e3 100644
--- a/stdnum/__init__.py
+++ b/stdnum/__init__.py
@@ -1,7 +1,7 @@
 # __init__.py - main module
 # coding: utf-8
 #
-# Copyright (C) 2010-2017 Arthur de Jong
+# Copyright (C) 2010-2018 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
@@ -42,4 +42,4 @@ from stdnum.util import get_cc_module
 __all__ = ('get_cc_module', '__version__')
 
 # the version number of the library
-__version__ = '1.7'
+__version__ = '1.8'
diff --git a/update/numlist.py b/update/numlist.py
index 7d4442f..8610d76 100755
--- a/update/numlist.py
+++ b/update/numlist.py
@@ -22,9 +22,15 @@
 """This script uses introspection to present a list of number formats
 suitable to be included in the README and stdnum package description."""
 
+import os.path
 import pydoc
+import sys
 
-from stdnum import util
+# Ensure that we use our local stdnum implementation is used
+sys.path.insert(0, os.path.normpath(
+    os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')))
+
+from stdnum import util  # noqa
 
 
 # these are excluded

https://arthurdejong.org/git/python-stdnum/commit/?id=db9b278672ed967e0edb485b6e0f359db1d4417f

commit db9b278672ed967e0edb485b6e0f359db1d4417f
Author: Arthur de Jong <arthur@arthurdejong.org>
Date:   Wed Jan 3 19:25:36 2018 +0100

    Fix Sphinx dependency name

diff --git a/tox.ini b/tox.ini
index 43dbd96..c4dfdf8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -34,5 +34,5 @@ commands = flake8 stdnum tests update *.py
 
 [testenv:docs]
 basepython = python
-deps = sphinx
+deps = Sphinx
 commands = sphinx-build -N -b html docs {envtmpdir}/sphinx -W

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                   | 238 ++++++++++++++++++++++++++++++++++++++++++++
 MANIFEST.in                 |   4 +-
 NEWS                        |  25 +++++
 README                      |   9 +-
 docs/conf.py                |   2 +-
 docs/index.rst              |   5 +
 docs/stdnum.casrn.rst       |   5 +
 docs/stdnum.do.ncf.rst      |   5 +
 docs/stdnum.eu.banknote.rst |   5 +
 docs/stdnum.in_.aadhaar.rst |   5 +
 docs/stdnum.in_.pan.rst     |   5 +
 setup.cfg                   |   3 +
 stdnum/__init__.py          |   4 +-
 tox.ini                     |   2 +-
 update/numlist.py           |   8 +-
 15 files changed, 316 insertions(+), 9 deletions(-)
 create mode 100644 docs/stdnum.casrn.rst
 create mode 100644 docs/stdnum.do.ncf.rst
 create mode 100644 docs/stdnum.eu.banknote.rst
 create mode 100644 docs/stdnum.in_.aadhaar.rst
 create mode 100644 docs/stdnum.in_.pan.rst


hooks/post-receive
-- 
python-stdnum
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-stdnum-commits/