X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/6642c1c71c5c6ce6ef3401c8c9da84cf076b018b..f8e5f031c04122d65d1066077be3920ae95518ae:/setup.py diff --git a/setup.py b/setup.py index 09bb42b..34d016e 100755 --- a/setup.py +++ b/setup.py @@ -1,21 +1,21 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -from distutils.core import setup -from tests.utils import TestCommand +from ez_setup import use_setuptools +use_setuptools() + +from setuptools import setup, find_packages + setup( name='librarian', - version='1.2.1', + version='1.2.5', description='Converter from WolneLektury.pl XML-based language to XHTML, TXT and other formats', author='Marek Stępniowski', author_email='marek@stepniowski.com', url='http://redmine.nowoczesnapolska.org.pl/', - packages=['librarian', 'tests'], - package_dir={'librarian': 'librarian', 'tests': 'tests'}, - package_data={ - 'librarian': ['*.xslt'], - 'tests': ['files/dcparser/*.xml', 'files/erroneous/*.xml'], - }, + packages=find_packages(exclude=['tests']), + include_package_data=True, + install_requires=['lxml>=2.2'], scripts=['scripts/book2html', 'scripts/book2txt', 'scripts/bookfragments', 'scripts/genslugs'], - cmdclass={'test': TestCommand}, + tests_require=['nose>=0.11', 'coverage>=3.0.1'], )