diff --git a/setup.cfg b/setup.cfg index 3c6e79c..063bf4e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,39 @@ +[metadata] +name = ezodf +author = Manfred Moitzi +author_email = mozman@gmx.at +maintainer = Anton Shvein +maintainer_email = t0hashvein@gmail.com +license = MIT License +description = A Python package to create/manipulate OpenDocumentFormat files. +keywords = + ODF + OpenDocumentFormat + OpenOffice + LibreOffice +url = https://github.com/T0ha/ezodf +download_url = https://github.com/T0ha/ezodf/releases +classifiers = + Development Status :: 3 - Alpha + License :: OSI Approved :: MIT License + Operating System :: OS Independent + Programming Language :: Python :: 2.6 + Programming Language :: Python :: 2.7 + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.2 + Programming Language :: Python :: 3.3 + Programming Language :: Python :: 3.4 + Intended Audience :: Developers + Topic :: Software Development :: Libraries :: Python Modules + Topic :: Office/Business :: Office Suites +platforms = OS, Independent +provides = ezodf +install_requires = + weakrefset; python_version < "2.7" + lxml + +[options] +packages = ezodf + [bdist_wheel] universal=1 diff --git a/setup.py b/setup.py index 2ddc49d..d7adb06 100644 --- a/setup.py +++ b/setup.py @@ -9,51 +9,17 @@ # import os -from distutils.core import setup +from setuptools import setup from version import VERSION -AUTHOR_NAME = 'Manfred Moitzi' -AUTHOR_EMAIL = 'mozman@gmx.at' - -MAINTAINER_NAME = 'Anton Shvein' -MAINTAINER_EMAIL = 't0hashvein@gmail.com' - - def read(fname): try: return open(os.path.join(os.path.dirname(__file__), fname)).read() except IOError: return "File '%s' not found.\n" % fname -setup(name='ezodf', - version=VERSION, - description='A Python package to create/manipulate OpenDocumentFormat files.', - author=AUTHOR_NAME, - url='https://github.com/T0ha/ezodf', - download_url='https://github.com/T0ha/ezodf/releases', - author_email=AUTHOR_EMAIL, - maintainer=MAINTAINER_NAME, - maintainer_email=MAINTAINER_EMAIL, - packages=['ezodf'], - provides=['ezodf'], - requires=['weakrefset', 'lxml'], - keywords=['ODF', 'OpenDocumentFormat', 'OpenOffice', 'LibreOffice'], - long_description=read('README.rst')+read('NEWS.rst'), - platforms="OS Independent", - license="MIT License", - classifiers=[ - "Development Status :: 3 - Alpha", - "License :: OSI Approved :: MIT License", - "Operating System :: OS Independent", - "Programming Language :: Python :: 2.6", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.2", - "Programming Language :: Python :: 3.3", - "Programming Language :: Python :: 3.4", - "Intended Audience :: Developers", - "Topic :: Software Development :: Libraries :: Python Modules", - "Topic :: Office/Business :: Office Suites", - ] - ) +setup( + version=VERSION, + long_description=read('README.rst')+read('NEWS.rst') +)