-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·52 lines (42 loc) · 1.39 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
#!/usr/bin/env python
import ast
import codecs
import os
import re
from setuptools import find_packages, setup
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
init = os.path.join(ROOT, "src", "etools_datamart", "__init__.py")
rel = lambda *args: os.path.join(ROOT, "src", "requirements", *args) # noqa
_version_re = re.compile(r"__version__\s+=\s+(.*)")
_name_re = re.compile(r"NAME\s+=\s+(.*)")
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)))
def fread(fname):
return open(rel(fname)).read()
readme = codecs.open("README.md").read()
setup(
name=name,
version=version,
description="""UNICEF eTools Datamart""",
long_description=readme,
author="",
author_email="",
url="https://github.com/unicef/etools-datamart",
package_dir={"": "src"},
packages=find_packages("src"),
include_package_data=True,
license="Not open source",
zip_safe=False,
keywords="",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: Django :: 4.2",
"License :: OSI Approved :: MIT",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
],
)