2017-05-22 16:30:40 +00:00
|
|
|
import sys
|
2014-03-01 03:57:40 +00:00
|
|
|
from setuptools import setup
|
|
|
|
|
2017-05-22 16:30:40 +00:00
|
|
|
PY3 = sys.version_info[0] >= 3
|
|
|
|
|
2017-05-23 15:53:19 +00:00
|
|
|
VERSION = "0.2.4"
|
2015-03-07 02:20:14 +00:00
|
|
|
|
2017-05-22 16:30:40 +00:00
|
|
|
INSTALL_REQUIRES = (
|
|
|
|
'Pillow',
|
|
|
|
)
|
|
|
|
|
|
|
|
TESTS_REQUIRE = (
|
|
|
|
'pdfrw',
|
|
|
|
)
|
|
|
|
|
|
|
|
if not PY3:
|
|
|
|
INSTALL_REQUIRES += ('enum34',)
|
|
|
|
|
|
|
|
|
2015-05-10 12:35:09 +00:00
|
|
|
setup(
|
2014-03-01 03:57:40 +00:00
|
|
|
name='img2pdf',
|
2015-03-07 02:20:14 +00:00
|
|
|
version=VERSION,
|
2015-05-10 12:35:09 +00:00
|
|
|
author="Johannes 'josch' Schauer",
|
|
|
|
author_email='josch@mister-muffin.de',
|
|
|
|
description="Convert images to PDF via direct JPEG inclusion.",
|
|
|
|
long_description=open('README.md').read(),
|
|
|
|
license="LGPL",
|
|
|
|
keywords="jpeg pdf converter",
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 5 - Production/Stable',
|
2014-03-01 03:57:40 +00:00
|
|
|
'Intended Audience :: Developers',
|
2015-05-10 12:35:09 +00:00
|
|
|
'Intended Audience :: Other Audience',
|
|
|
|
'Environment :: Console',
|
2014-03-01 03:57:40 +00:00
|
|
|
'Programming Language :: Python',
|
2017-05-22 16:30:40 +00:00
|
|
|
'Programming Language :: Python :: 2',
|
|
|
|
'Programming Language :: Python :: 2.7',
|
2015-01-07 14:56:24 +00:00
|
|
|
'Programming Language :: Python :: 3',
|
2017-01-20 04:21:27 +00:00
|
|
|
'Programming Language :: Python :: 3.5',
|
2014-03-01 03:57:40 +00:00
|
|
|
'Programming Language :: Python :: Implementation :: CPython',
|
2017-05-22 16:30:40 +00:00
|
|
|
"Programming Language :: Python :: Implementation :: PyPy",
|
2015-05-10 12:35:09 +00:00
|
|
|
'License :: OSI Approved :: GNU Lesser General Public License v3 '
|
|
|
|
'(LGPLv3)',
|
2014-03-01 03:57:40 +00:00
|
|
|
'Natural Language :: English',
|
|
|
|
'Operating System :: OS Independent'],
|
2015-05-10 12:35:09 +00:00
|
|
|
url='https://gitlab.mister-muffin.de/josch/img2pdf',
|
|
|
|
download_url='https://gitlab.mister-muffin.de/josch/img2pdf/repository/'
|
|
|
|
'archive.tar.gz?ref=' + VERSION,
|
2014-03-01 03:57:40 +00:00
|
|
|
package_dir={"": "src"},
|
|
|
|
py_modules=['img2pdf', 'jp2'],
|
2015-05-10 12:35:09 +00:00
|
|
|
include_package_data=True,
|
|
|
|
test_suite='tests.test_suite',
|
|
|
|
zip_safe=True,
|
2017-05-22 16:30:40 +00:00
|
|
|
install_requires=INSTALL_REQUIRES,
|
|
|
|
tests_requires=TESTS_REQUIRE,
|
|
|
|
extras_require={
|
|
|
|
'test': TESTS_REQUIRE,
|
|
|
|
},
|
2014-03-01 03:57:40 +00:00
|
|
|
entry_points='''
|
|
|
|
[console_scripts]
|
|
|
|
img2pdf = img2pdf:main
|
|
|
|
''',
|
|
|
|
)
|