1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
from setuptools import setup, find_packages
from setuptools.command.install import install
import sys
version = '2.1'
with open('README.rst', 'rt') as readme:
description = readme.read()
with open('CHANGES.txt', 'rt') as changes:
history = changes.read()
class CustomInstall(install):
def initialize_options(self):
if sys.version < '3':
print("Hovercraft requires Python 3.2 or higher.")
sys.exit(1)
return install.initialize_options(self)
setup(name='hovercraft',
version=version,
description="Makes impress.js presentations from reStructuredText",
long_description=description + '\n' + history,
# Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=['Development Status :: 5 - Production/Stable',
'Topic :: Multimedia :: Graphics :: Presentation',
'Topic :: Text Processing',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'License :: OSI Approved :: MIT License',
],
keywords='presentations restructuredtext',
author='Lennart Regebro',
author_email='regebro@gmail.com',
url='https://github.com/regebro/hovercraft',
license='MIT',
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
include_package_data=True,
zip_safe=False,
install_requires=[
'docutils >= 0.9',
'lxml>=3.1.0',
'svg.path',
'pygments',
'watchdog',
],
tests_require=[
'manuel',
],
test_suite='hovercraft.tests',
entry_points={
'console_scripts': [
'console_script = hovercraft:main',
],
},
cmdclass={'install': CustomInstall}
)
|