forked from pysheng/pysheng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (56 loc) · 1.49 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
61
62
#!/usr/bin/python
"""Download books from Google Books."""
from pysheng import VERSION
from distutils.core import setup
import platform
WIN32 = (platform.system() == 'Windows')
if WIN32:
import py2exe
setup_kwargs = dict(
name='pysheng',
version=VERSION,
description='Download books from Google Books',
author='Arnau Sanchez',
author_email='[email protected]',
url='https://github.com/tokland/pysheng',
packages=[
'pysheng/'
],
scripts=[
'bin/pysheng',
'bin/pysheng-gui'
],
license='GNU Public License v3.0',
long_description=' '.join(__doc__.strip().splitlines()),
data_files=[
('share/pysheng',
('pysheng/main.glade',))
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: POSIX',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP'
],
options={
'py2exe': {
'packages': 'encodings',
'includes': 'cairo, pango, pangocairo, atk, gobject'
},
'sdist': {
'formats': 'zip'
}
}
)
if WIN32:
setup_kwargs['windows'] = [
{
'script': 'bin/pysheng-gui',
# 'icon_resources': [(1, 'a.ico')]
}
]
setup(**setup_kwargs)