-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
60 lines (50 loc) · 1.52 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
from __future__ import print_function
import os
from setuptools import setup, find_packages
try:
from gi.repository import Gtk, Gdk, GLib
from gi.repository import AppIndicator3
from gi.repository import Notify
except ImportError:
packages = ('gir1.2-appindicator3', 'python-appindicator',
'gir1.2-gtk-2.0', 'gir1.2-gtk-3.0', 'gir1.2-glib-2.0',
'gir1.2-appindicator3-0.1', 'gir1.2-notify-0.7')
print('You have to install "%s"' % ('", "'.join(packages)))
raise
here = os.path.abspath(os.path.dirname(__file__))
name = 'gandi.widget'
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.md')) as f:
CHANGES = f.read()
requires = ['gandi.cli']
extras_require = {
'dev': [],
'test': ['nose'],
}
tests_requires = requires + extras_require['test']
setup(name=name,
namespace_packages=['gandi'],
version='0.3',
description='Widget to visualise your Gandi objects.',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP",
],
author='',
author_email='',
url='',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
tests_require=tests_requires,
entry_points="""\
[console_scripts]
gwidget = gandi.widget.__main__:main
""",
package_data = {
'gandi.widget': ['resources/*.png'],
}
)