forked from mstuttgart/pynocchio
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
60 lines (52 loc) · 1.79 KB
/
setup.py
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
import os
import sys
from codecs import open
from setuptools import find_packages, setup
version_path = os.path.join(os.path.abspath(os.path.dirname(__file__)),
'pynocchio',
'__version__.py')
about = {}
with open(version_path, 'r') as f:
exec(f.read(), about)
if sys.argv[-1] == 'build_deb':
os.system('./scripts/build_deb.sh %s' % about['__version__'])
sys.exit()
if sys.argv[-1] == 'build_pro':
os.system('./scripts/build_pro.sh')
sys.exit()
try:
from pyqt_distutils.build_ui import build_ui
cmdclass = {'build_ui': build_ui}
except ImportError:
build_ui = None
cmdclass = {}
setup(
name=about['__title__'],
version=about['__version__'],
author=about['__author__'],
author_email=about['__author_email__'],
url=about['__url__'],
license=about['__license__'],
description=about['__description__'],
long_description='Pynocchio Comic Reader is a new and nice image viewer '
'which uses PySide API specialized in comic reading. '
'It is a comic reader that allow read cbr, cbz and cbt '
'files and have nice elementary icons theme on your '
'interface.',
keywords="pynocchio comics manga viewer image",
packages=find_packages(exclude=["*.test", "*.test.*", "test.*", "test"]),
cmdclass=cmdclass,
test_suite='test',
scripts=[
'pynocchio-client.py',
],
include_package_data=True,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Users',
'License :: OSI Approved :: GPLv3 License',
'Operating System :: OS Independent',
'Programming Language :: Python 3.5',
'Programming Language :: Python 3.6',
],
)