File: setup.py

package info (click to toggle)
importmagic 0.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,240 kB
  • sloc: python: 5,820; makefile: 6
file content (44 lines) | stat: -rw-r--r-- 1,071 bytes parent folder | download
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='alec@swapoff.org',
    install_requires=[
        'setuptools >= 0.6b1',
        'six',
    ],
    cmdclass={'test': PyTest},
)