-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
38 lines (34 loc) · 1.23 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
from setuptools import setup, find_packages
import os, sys, re
# Load the version by reading prep.py, so we don't run into
# dependency loops by importing it into setup.py
version = None
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), "gmtasks", "__init__.py")) as file:
for line in file:
m = re.search(r'__version__\s*=\s*(.+?\n)', line)
if m:
version = eval(m.group(1))
break
setup_args = dict(
name = 'gmtasks',
version = version,
author = 'Chris Petersen',
author_email = '[email protected]',
url = 'https://github.com/ex-nerd/gmtasks',
license = 'Modified BSD',
description = 'Gearman Task Server',
long_description = open('README.rst').read(),
install_requires = ['gearman'],
packages = find_packages(),
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Utilities",
],
)
if __name__ == '__main__':
setup(**setup_args)