-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
76 lines (68 loc) · 2.25 KB
/
setup.py
File metadata and controls
76 lines (68 loc) · 2.25 KB
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
76
from setuptools import setup
import os
import sys
def readme():
with open("README.md", "r", encoding="utf-8") as f:
return f.read()
if sys.argv[-1] == "test":
test_requirements = ["pytest", "flake8", "coverage"]
try:
modules = map(__import__, test_requirements)
except ImportError as e:
err_msg = e.message.replace("No module named ", "")
msg = "%s is not installed. Install your test requirments." % err_msg
raise ImportError(msg)
os.system("py.test --cov-report term-missing --cov rig_remote")
sys.exit()
if sys.argv[-1] == "publish":
os.system("python setup.py sdist upload")
print("You probably want to also tag the version now:")
print(" git tag -a %s -m 'version %s'" % (version, version))
print(" git push --tags")
print(" or use the tag option with this script.")
sys.exit()
if sys.argv[-1] == "tag":
os.system("git tag -a %s -m 'version %s'" % (version, version))
os.system("git push --tags")
sys.exit()
setup(
name="rig-remote",
download_url="https://github.com/Marzona/rig-remote/releases",
version="3.0",
description="Remote control a radio transceiver through RigCtl.",
author="Simone Marzona",
author_email="marzona@knoway.info",
url="https://github.com/Marzona/rig-remote/",
package_dir={"": "src"},
packages=["rig_remote", "rig_remote.models", "config_checker"],
entry_points={
"console_scripts": [
"rig_remote = rig_remote:main",
"config_checker = config_checker:main",
]
},
long_description="""
Rig-Remote is a tool for remotely control
a radio transceiver using RigCtl protocol over TCP/IP.
Rig Remote provides frequency scanning and monitoring,
frequency bookmarks.
""",
classifiers=[
"Programming Language :: Python",
"Topic :: Communications",
"Development Status :: 4 - Beta",
"Intended Audience :: Information Technology",
],
keywords="rigctl, ham, radio, bookmarks, scanner",
license="MIT",
setup_requires=[
"pytest-runner",
],
include_package_data=True,
install_requires=[
"setuptools",
"logging",
"datetime",
],
zip_safe=False,
)