# HG changeset patch # User Charlie Clark <charlie.clark@clark-consulting.eu> # Date 1427721426 -7200 # Mon Mar 30 15:17:06 2015 +0200 # Node ID 7468c6d1a3bab07ec2cc8238b6fa3463a718f94e # Parent 9e8a9907507657cb2ea7fc51ab562b2b994c9fe5 Put constants in __init__ diff --git a/et_xmlfile/__init__.py b/et_xmlfile/__init__.py --- a/et_xmlfile/__init__.py +++ b/et_xmlfile/__init__.py @@ -1,3 +1,12 @@ from __future__ import absolute_import -from .xmlfile import xmlfile \ No newline at end of file +from .xmlfile import xmlfile + +# constants +__version__ = '1.0.0' + +__author__ = 'See ATUHORS.txt' +__license__ = 'MIT' +__author_email__ = 'charlie.clark@clark-consulting.eu' +__url__ = 'https://bitbucket.org/openpyxl/et_xmlfile' + diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -37,17 +37,19 @@ except IOError: README = '' - -__author__ = 'See AUTHORS' -__license__ = 'MIT' -__author_email__ = 'charlie.clark@clark-consulting.eu' -__url__ = 'https://bitbucket.org/openpyxl/et_xmlfile' +from et_xmlfile import ( + __author__, + __license__, + __author_email__, + __url__, + __version__ +) setup(name='et_xmlfile', packages=find_packages(), # metadata - version="1.0.0", + version=__version__, description="An implementation of lxml.xmlfile for the standard library", long_description=README, author=__author__,