-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
46 lines (40 loc) · 1.25 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
#!/usr/bin/env python
import ast
import os.path
import re
import sys
from codecs import open
from setuptools import find_packages, setup
ROOT = os.path.realpath(os.path.dirname(__file__))
init = os.path.join(ROOT, 'src', 'website', '__init__.py')
_version_re = re.compile(r'__version__\s+=\s+(.*)')
_name_re = re.compile(r'NAME\s+=\s+(.*)')
sys.path.insert(0, os.path.join(ROOT, 'src'))
with open(init, 'rb') as f:
content = f.read().decode('utf-8')
VERSION = str(ast.literal_eval(_version_re.search(content).group(1)))
NAME = str(ast.literal_eval(_name_re.search(content).group(1)))
dependency_links = set()
setup(
name=NAME,
version=VERSION,
author='UNICEF',
author_email='[email protected]',
url='',
description='',
long_description=open(os.path.join(ROOT, 'README.rst')).read(),
package_dir={'': 'src'},
packages=find_packages('src'),
zip_safe=False,
dependency_links=list(dependency_links),
license='BSD',
include_package_data=True,
classifiers=[
'Framework :: Django',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Framework :: Django',
'Framework :: Django :: 2.2',
],
)