-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (33 loc) · 1.02 KB
/
setup.py
File metadata and controls
38 lines (33 loc) · 1.02 KB
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
rel_file = lambda *args: os.path.join(os.path.dirname(os.path.abspath(__file__)), *args)
def read_from(filename):
fp = open(filename)
try:
return fp.read()
finally:
fp.close()
def get_requirements():
data = read_from(rel_file("requirements.txt"))
lines = map(lambda s: s.strip(), data.splitlines())
return filter(None, lines)
setup(
name="django-deploy",
version="0.2.0",
description="Django deployment utility",
author="John Debs",
author_email="johnthedebs@gmail.com",
url="http://github.com/johnthedebs/django-deploy",
packages=find_packages(),
install_requires=get_requirements(),
classifiers=(
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: Django",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
),
)