forked from qtop/qtop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (25 loc) · 968 Bytes
/
Copy pathsetup.py
File metadata and controls
32 lines (25 loc) · 968 Bytes
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
import io
import re
from setuptools import find_packages, setup
def read_file(path):
with io.open(path, encoding="utf-8") as handle:
return handle.read()
def read_version():
match = re.search(r'__version__ = "([^"]+)"', read_file("qtop_py/__init__.py"))
if not match:
raise RuntimeError("Unable to read qtop_py.__version__")
return match.group(1)
setup(
name="qtop",
version=read_version(),
description="qtop: the fast text mode way to monitor your cluster's utilization and status",
long_description=read_file("README.md"),
long_description_content_type="text/markdown",
author="Sotiris Fragkiskos, Fotis Georgatos",
author_email="sfranky@gmail.com, kefalonia@gmail.com",
url="https://github.com/qtop/qtop",
packages=find_packages(include=["qtop_py", "qtop_py.*"]),
include_package_data=True,
python_requires=">=3",
entry_points={"console_scripts": ["qtop=qtop_py.qtop:main"]},
)