-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
37 lines (27 loc) · 997 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
from setuptools import setup, find_packages
import os, re, codecs
def read(*parts):
return codecs.open(os.path.join(os.path.dirname(__file__), *parts)).read()
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
descr = "Serve static files and django templates in current folder."
setup(
name = "djangothis",
description = descr,
long_description=read("README.rst"),
version = find_version("djangothis/app.py"),
author = 'Amit Upadhyay',
author_email = "[email protected]",
url = 'http://amitu.com/djangothis/',
license = 'BSD',
install_requires = ["importd>=0.2.3", "PyYAML"],
packages = find_packages(),
zip_safe = False,
entry_points=dict(console_scripts=['djangothis=djangothis.app:d.main']),
)