-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
44 lines (35 loc) · 1.06 KB
/
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
38
39
40
41
42
43
44
import sys
from setuptools import Command, find_packages, setup
sys.path.insert(0, '.')
import importmagic
version = importmagic.__version__
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys
import subprocess
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
setup(
name='importmagic',
url='http://github.com/alecthomas/importmagic',
download_url='http://pypi.python.org/pypi/importmagic',
version=version,
options=dict(egg_info=dict(tag_build='')),
description='Python Import Magic - automagically add, remove and manage imports',
long_description='See http://github.com/alecthomas/importmagic for details.',
license='BSD',
platforms=['any'],
packages=find_packages(),
author='Alec Thomas',
author_email='[email protected]',
install_requires=[
'setuptools >= 0.6b1',
],
cmdclass={'test': PyTest},
scripts=['bin/importmagic'],
)