lists.arthurdejong.org
RSS feed

python-stdnum commit: r43 - in python-stdnum: . stdnum

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

python-stdnum commit: r43 - in python-stdnum: . stdnum



Author: arthur
Date: Fri Nov 26 23:25:49 2010
New Revision: 43
URL: http://arthurdejong.org/viewvc/python-stdnum?view=rev&revision=43

Log:
move general description to package __init__.py file

Modified:
   python-stdnum/setup.py
   python-stdnum/stdnum/__init__.py

Modified: python-stdnum/setup.py
==============================================================================
--- python-stdnum/setup.py      Wed Nov 24 23:09:28 2010        (r42)
+++ python-stdnum/setup.py      Fri Nov 26 23:25:49 2010        (r43)
@@ -24,6 +24,7 @@
 import os
 import sys
 from setuptools import setup, find_packages
+import stdnum
 
 # fix permissions for sdist
 if 'sdist' in sys.argv:
@@ -38,28 +39,7 @@
       url='http://arthurdejong.org/python-stdnum',
       license='LGPL',
       description='Python module to handle standardized numbers and codes',
-      long_description= \
-          """A Python module to parse, validate and reformat standard numbers
-          and codes in different formats.
-
-          Currently this module supports the following formats:
-
-           * ISBN (International Standard Book Number)
-           * ISSN (International Standard Serial Number)
-           * ISMN (International Standard Music Number)
-           * ISAN (International Standard Audiovisual Number)
-           * BSN (Burgerservicenummer, the Dutch national identification 
number)
-           * IMEI (International Mobile Equipment Identity)
-           * MEID (Mobile Equipment Identifier)
-           * GRid (Global Release Identifier)
-
-          Furthermore a number of generic check digit algorithms are available:
-
-           * the Verhoeff algorithm
-           * the Luhn and Luhn mod N algorithms
-           * some algorithms described in ISO/IEC 7064: Mod 11, 2, Mod 37, 2,
-             Mod 97, 10, Mod 11, 10 and Mod 37, 36
-          """,
+      long_description=stdnum.__doc__,
       classifiers=[
           'Development Status :: 4 - Beta',
           'Intended Audience :: Developers',

Modified: python-stdnum/stdnum/__init__.py
==============================================================================
--- python-stdnum/stdnum/__init__.py    Wed Nov 24 23:09:28 2010        (r42)
+++ python-stdnum/stdnum/__init__.py    Fri Nov 26 23:25:49 2010        (r43)
@@ -0,0 +1,40 @@
+# __init__.py - main module
+#
+# Copyright (C) 2010 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
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301 USA
+
+"""A Python module to parse, validate and reformat standard numbers
+and codes in different formats.
+
+Currently this module supports the following formats:
+
+ * ISBN (International Standard Book Number)
+ * ISSN (International Standard Serial Number)
+ * ISMN (International Standard Music Number)
+ * ISAN (International Standard Audiovisual Number)
+ * BSN (Burgerservicenummer, the Dutch national identification number)
+ * IMEI (International Mobile Equipment Identity)
+ * MEID (Mobile Equipment Identifier)
+ * GRid (Global Release Identifier)
+
+Furthermore a number of generic check digit algorithms are available:
+
+ * the Verhoeff algorithm
+ * the Luhn and Luhn mod N algorithms
+ * some algorithms described in ISO/IEC 7064: Mod 11, 2, Mod 37, 2,
+   Mod 97, 10, Mod 11, 10 and Mod 37, 36
+"""
--
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-stdnum-commits