-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
48 lines (42 loc) · 1.22 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
import os
import re
from setuptools import setup
rel_file = lambda *args: os.path.join(os.path.dirname(os.path.abspath(__file__)), *args)
def read_from(filename):
fp = open(filename)
try:
return fp.read()
finally:
fp.close()
def get_version():
data = read_from(rel_file('nosegrowl2', '__init__.py'))
return re.search(r"__version__ = '([^']+)'", data).group(1)
setup(
name='nosegrowl2',
description='A simple Nose plugin for Growl notifications.',
version=get_version(),
packages=['nosegrowl2'],
include_package_data=True,
package_data={
'': ['*.png'],
},
author='Jamie Matthews',
author_email='jamie.matthews@gmail.com',
install_requires=['nose>=0.10', 'gntplib'],
url='https://github.com/j4mie/nosegrowl2',
license='Public Domain',
zip_safe=False,
entry_points={
'nose.plugins': [
'growl = nosegrowl2:NoseGrowl'
]
},
classifiers=[
'Programming Language :: Python',
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: Public Domain',
'Operating System :: MacOS :: MacOS X',
'Topic :: Software Development :: Testing',
],
)