File: setup.py

package info (click to toggle)
python-scripttest 1.3-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 108 kB
  • sloc: python: 469; makefile: 4
file content (41 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (4)
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
import sys

import setuptools
import setuptools.command.test


class PyTest(setuptools.command.test.test):

    def finalize_options(self):
        setuptools.command.test.test.finalize_options(self)
        self.test_args = []
        self.test_suite = True

    def run_tests(self):
        #import here, cause outside the eggs aren't loaded
        import pytest

        sys.exit(pytest.main(self.test_args))


setuptools.setup(
    name='scripttest',
    version="1.3",
    description="Helper to test command-line scripts",
    long_description=open("README.rst").read(),
    classifiers=[
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "License :: OSI Approved :: MIT License",
        "Topic :: Software Development :: Testing",
    ],
    keywords='test unittest doctest command line scripts',
    author='Ian Bicking',
    author_email='ianb@colorstudy.com',
    url='http://pythonpaste.org/scripttest/',
    license='MIT',
    py_modules=["scripttest"],
    tests_require=['pytest'],
    cmdclass={'test': PyTest},
    zip_safe=True,
)