forked from KonishchevDmitry/psh
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
64 lines (49 loc) · 2.01 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
"""psh installation script."""
from __future__ import unicode_literals
from setuptools import find_packages, setup
from setuptools.command.test import test as Test
class PyTest(Test):
def finalize_options(self):
Test.finalize_options(self)
self.test_args = ["tests"]
self.test_suite = True
def run_tests(self):
import pytest
pytest.main(self.test_args)
description = """\
psh allows you to spawn processes in Unix shell-style way.
Unix shell is very convenient for spawning processes, connecting them into
pipes, etc., but it has a very limited language which is often not suitable
for writing complex programs. Python is a very flexible and reach language
which is used in a wide variety of application domains, but its standard
subprocess module is very limited. psh combines the power of Python language
and an elegant shell-style way to execute processes.
Complete documentation is available at https://konishchevdmitry.github.io/psh/\
"""
if __name__ == "__main__":
setup(
name="psh",
version="0.2.12",
description="Process management library",
long_description=description,
url="https://konishchevdmitry.github.io/psh/",
license="MIT",
author="Dmitry Konishchev",
author_email="[email protected]",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
platforms=["unix", "linux", "osx"],
install_requires=["pcore", "psys >= 0.3"],
packages=find_packages(),
cmdclass={"test": PyTest},
tests_require=["pcore", "psys >= 0.3", "pytest"],
)