-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
74 lines (63 loc) · 1.78 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This file is part of the pylonctl project
#
# Copyright (c) 2020 Tiago Coutinho
# Distributed under the LGPLv3 license. See LICENSE for more info.
"""The setup script."""
import sys
from setuptools import setup, find_packages
def get_readme(name="README.md"):
"""Get readme file contents"""
with open(name) as f:
return f.read()
readme = get_readme()
requirements = [
"click",
"prompt_toolkit>=3",
"beautifultable>=1",
"wcwidth",
"chronometer",
"treelib",
"pypylon",
"numpy",
"PyQt5",
"emoji",
"pyqtgraph",
]
test_requirements = ["pytest", "pytest-cov"]
setup_requirements = []
needs_pytest = {"pytest", "test"}.intersection(sys.argv)
if needs_pytest:
setup_requirements.append("pytest-runner")
setup(
author="Jose Tiago Macara Coutinho",
author_email="[email protected]",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
description="pylon control CLI",
entry_points={"console_scripts": ["pylonctl = pylonctl.cli:cli",],},
install_requires=requirements,
long_description=readme,
long_description_content_type="text/markdown",
include_package_data=True,
package_data={
"": ["*.ui"],
},
keywords="pylon,CLI",
name="pylonctl",
packages=find_packages(),
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
python_requires=">=3.7",
url="https://github.com/tiagocoutinho/pylonctl",
version="0.2.7",
)