injector/setup.py

42 lines
1.0 KiB
Python
Raw Normal View History

from setuptools import setup, Command
2010-11-25 14:33:37 +00:00
import sys
sys.path.insert(0, '.')
import injector
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys, subprocess
errno = subprocess.call([sys.executable, 'runtest.py'])
raise SystemExit(errno)
version = injector.__version__
version_tag = injector.__version_tag__
long_description = open('README.md').read()
2010-11-25 14:33:37 +00:00
description = long_description.splitlines()[0].strip()
setup(
name='injector',
url='http://github.com/alecthomas/injector',
download_url='http://pypi.python.org/pypi/injector',
version=version,
options=dict(egg_info=dict(tag_build=version_tag)),
2010-11-25 14:33:37 +00:00
description=description,
long_description=long_description,
license='BSD',
platforms=['any'],
2012-02-24 21:06:44 +00:00
py_modules=['injector'],
2010-11-25 14:33:37 +00:00
author='Alec Thomas',
author_email='alec@swapoff.org',
install_requires=[
'setuptools >= 0.6b1',
],
cmdclass={'test': PyTest},
2010-11-25 14:33:37 +00:00
)