-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
45 lines (35 loc) · 960 Bytes
/
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
from setuptools import setup
import os
import re
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return open(fpath(fname)).read()
file_text = read(fpath('./cypher_cossack/__meta__.py'))
def grep(attrname):
pattern = r"{0}\W*=\W*'([^']+)'".format(attrname)
strval, = re.findall(pattern, file_text)
return strval
setup(
version=grep('__version__'),
name='Cypher Cossack',
description="",
packages=[
'cypher_cossack',
'cypher_cossack.api',
'cypher_cossack.tests',
'cypher_cossack.views',
],
scripts=[
"bin/manage.py",
],
classifiers=[
], # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
include_package_data=True,
keywords='',
author=grep('__author__'),
author_email=grep('__email__'),
install_requires=read('dependencies.txt'),
license="GPLv3",
zip_safe=False,
)