Find file
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (30 sloc) 1.02 KB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
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', 'exceptional', '__init__.py'))
return re.search(r"__version__ = '([^']+)'", data).group(1)
setup(
name = 'exceptional-python',
version = get_version(),
author = "Cenk Alti",
author_email = "cenkalti@gmail.com",
url = 'https://github.com/cenkalti/exceptional-python',
description = "A python client for Exceptional (getexceptional.com), ported from pylons-exceptional",
packages = ['exceptional'],
package_dir = {'': 'src'}
)