-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (32 loc) · 1.02 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
#######################
from __future__ import print_function, unicode_literals
#######################
from setuptools import find_packages, setup
def read_requirements(filename="requirements.txt"):
"Read the requirements"
with open(filename) as f:
return [
line.strip()
for line in f
if line.strip() and line[0].strip() != "#" and not line.startswith("-e ")
]
def get_version(filename="mgmt_common/version.py", name="VERSION"):
"Get the version"
with open(filename) as f:
s = f.read()
d = {}
exec(s, d)
return d[name]
setup(
name="django-dept-mgmt",
version=get_version(),
author="Dave Gabrielson",
author_email="[email protected]",
description="Applications for helping with IT and office management.",
url="",
license="GNU Lesser General Public License (LGPL) 3.0",
packages=find_packages(),
install_requires=read_requirements(),
zip_safe=False,
include_package_data=True,
)