forked from josch/img2pdf
Properly setup additional Python 2.7 and PyPy support. Note that Py2 does not have enum, but thankfully somone ported it already.
This commit is contained in:
parent
2455ba6e62
commit
162721b88e
1 changed files with 23 additions and 3 deletions
26
setup.py
26
setup.py
|
@ -1,7 +1,22 @@
|
||||||
|
import sys
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
PY3 = sys.version_info[0] >= 3
|
||||||
|
|
||||||
VERSION = "0.2.3"
|
VERSION = "0.2.3"
|
||||||
|
|
||||||
|
INSTALL_REQUIRES = (
|
||||||
|
'Pillow',
|
||||||
|
)
|
||||||
|
|
||||||
|
TESTS_REQUIRE = (
|
||||||
|
'pdfrw',
|
||||||
|
)
|
||||||
|
|
||||||
|
if not PY3:
|
||||||
|
INSTALL_REQUIRES += ('enum34',)
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='img2pdf',
|
name='img2pdf',
|
||||||
version=VERSION,
|
version=VERSION,
|
||||||
|
@ -17,9 +32,12 @@ setup(
|
||||||
'Intended Audience :: Other Audience',
|
'Intended Audience :: Other Audience',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
|
'Programming Language :: Python :: 2',
|
||||||
|
'Programming Language :: Python :: 2.7',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.5',
|
'Programming Language :: Python :: 3.5',
|
||||||
'Programming Language :: Python :: Implementation :: CPython',
|
'Programming Language :: Python :: Implementation :: CPython',
|
||||||
|
"Programming Language :: Python :: Implementation :: PyPy",
|
||||||
'License :: OSI Approved :: GNU Lesser General Public License v3 '
|
'License :: OSI Approved :: GNU Lesser General Public License v3 '
|
||||||
'(LGPLv3)',
|
'(LGPLv3)',
|
||||||
'Natural Language :: English',
|
'Natural Language :: English',
|
||||||
|
@ -32,9 +50,11 @@ setup(
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
test_suite='tests.test_suite',
|
test_suite='tests.test_suite',
|
||||||
zip_safe=True,
|
zip_safe=True,
|
||||||
install_requires=(
|
install_requires=INSTALL_REQUIRES,
|
||||||
'Pillow',
|
tests_requires=TESTS_REQUIRE,
|
||||||
),
|
extras_require={
|
||||||
|
'test': TESTS_REQUIRE,
|
||||||
|
},
|
||||||
entry_points='''
|
entry_points='''
|
||||||
[console_scripts]
|
[console_scripts]
|
||||||
img2pdf = img2pdf:main
|
img2pdf = img2pdf:main
|
||||||
|
|
Loading…
Reference in a new issue