-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·75 lines (64 loc) · 2.05 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
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env python3
"""
Packaging and installation for the apssh package
"""
from pathlib import Path
import setuptools
# https://packaging.python.org/guides/single-sourcing-package-version/
# set __version__ by read & exec of the python code
# this is better than an import that would otherwise try to
# import the whole package, and fail if a required module is not yet there
VERSION_FILE = Path(__file__).parent / "apssh" / "version.py"
ENV = {}
with VERSION_FILE.open() as f:
exec(f.read(), ENV) # pylint: disable=w0122
__version__ = ENV['__version__']
with open("README.md") as feed:
LONG_DESCRIPTION = feed.read()
# requirements - used by pip install
# *NOTE* for ubuntu, to install asyncssh, at some point in time_ok
# there has been a need to also run this beforehand:
# apt-get -y install libffi-dev libssl-dev
# which is required before pip can install asyncssh
REQUIRED_MODULES = [
'asyncssh',
'asynciojobs',
'jinja2',
'pyyaml',
]
TESTS_REQUIRE = [
'pytest',
'psutil',
]
setuptools.setup(
name="apssh",
author="Thierry Parmentelat",
author_email="[email protected]",
description="Asynchroneous Parallel ssh",
long_description=LONG_DESCRIPTION,
long_description_content_type = "text/markdown",
license="CC BY-SA 4.0",
keywords=['asyncio', 'remote shell', 'parallel ssh'],
packages=['apssh'],
version=__version__,
python_requires=">=3.5",
entry_points={
'console_scripts': [
'apssh = apssh.__main__:apssh',
'appush = apssh.__main__:appush',
'appull = apssh.__main__:appull',
]
},
install_requires=REQUIRED_MODULES,
tests_require=TESTS_REQUIRE,
project_urls={
'source': 'http://github.com/parmentelat/apssh',
'documentation': 'http://apssh.readthedocs.io/',
},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Information Technology",
"Programming Language :: Python :: 3.5",
],
)