-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
71 lines (52 loc) · 2.07 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
#!/usr/bin/env python3
#
# created by kpe on 09.01.2021 at 2:20 PM
#
import pathlib
import sys
from setuptools import setup, find_packages, convert_path
WORK_DIR = pathlib.Path(__file__).parent
MOD_NAME = "telerembash"
# Check python version
MINIMAL_PY_VERSION = (3, 7)
if sys.version_info < MINIMAL_PY_VERSION:
raise RuntimeError(f"{MOD_NAME} works only with Python {{}}+".format('.'.join(map(str, MINIMAL_PY_VERSION))))
def _version():
ns = {}
with open(convert_path(f"{MOD_NAME}/version.py"), "r") as fh:
exec(fh.read(), ns)
return ns['__version__']
__version__ = _version()
with open("README.rst", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open("requirements.txt", "r") as reader:
install_requires = list(map(lambda x: x.strip(), reader.readlines()))
setup(name=f"{MOD_NAME}",
version=__version__,
url="https://github.com/kpe/telerembash/",
description="A Telegram Remote Shell Bot with HOTP authentication.",
long_description=long_description,
long_description_content_type="text/x-rst",
keywords="telegram totp hotp authentication bot",
license="MIT",
author="kpe",
author_email="[email protected]",
packages=find_packages(exclude=["tests"]),
package_data={"": ["*.txt", "*.rst"],
"telerembash": ["artifacts/*.yaml", "artifacts/*.template"]},
entry_points={
'console_scripts': ['telerem=telerembash.cli:main']
},
zip_safe=True,
install_requires=install_requires,
python_requires=">=3.5",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy"])