Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 177ca7e351
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (32 sloc) 1.198 kB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
from distribute_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', 'djboss', '__init__.py'))
return re.search(r"__version__ = '([^']+)'", data).group(1)
def get_requirements():
data = read_from(rel_file('REQUIREMENTS'))
lines = map(lambda s: s.strip(), data.splitlines())
return filter(None, lines)
setup(
name = 'django-boss',
version = get_version(),
author = "Zachary Voase",
author_email = "zacharyvoase@me.com",
url = 'http://github.com/zacharyvoase/django-boss',
description = "Django management commands, revisited.",
packages = find_packages(where='src'),
package_dir = {'': 'src'},
entry_points = {'console_scripts': ['djboss = djboss.cli:main']},
install_requires = get_requirements(),
)
Jump to Line
Something went wrong with that request. Please try again.