-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
35 lines (27 loc) · 955 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from distribute_setup import use_setuptools
use_setuptools()
from setuptools import setup
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_version():
data = read_from(rel_file('src', 'djexceptional', '__init__.py'))
return re.search(r"__version__ = '([^']+)'", data).group(1)
setup(
name = 'django-exceptional',
version = get_version(),
author = "Zachary Voase",
author_email = "[email protected]",
url = 'http://github.com/zacharyvoase/django-exceptional',
description = "A Django client for Exceptional (getexceptional.com).",
packages = ['djexceptional', 'djexceptional.tests'],
package_dir = {'': 'src'},
)