-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
63 lines (52 loc) · 1.56 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Setup for the inReach Cursor-on-Target Gateway.
:author: Greg Albrecht W2GMD <[email protected]>
:copyright: Copyright 2021 Greg Albrecht
:license: Apache License, Version 2.0
:source: https://github.com/ampledata/inrcot
"""
import os
import sys
import setuptools
__title__ = "inrcot"
__version__ = "1.0.2"
__author__ = "Greg Albrecht W2GMD <[email protected]>"
__copyright__ = "Copyright 2021 Greg Albrecht"
__license__ = "Apache License, Version 2.0"
def publish():
"""Function for publishing package to pypi."""
if sys.argv[-1] == "publish":
os.system("python setup.py sdist")
os.system("twine upload dist/*")
sys.exit()
publish()
setuptools.setup(
version=__version__,
name=__title__,
packages=[__title__],
package_dir={__title__: __title__},
url=f"https://github.com/ampledata/{__title__}",
description="inReach Cursor-on-Target Gateway.",
author="Greg Albrecht",
author_email="[email protected]",
package_data={"": ["LICENSE"]},
license="Apache License, Version 2.0",
long_description=open("README.rst").read(),
long_description_content_type="text/x-rst",
zip_safe=False,
include_package_data=True,
install_requires=[
"pytak >= 3.0.0",
"aiohttp"
],
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: Apache Software License"
],
keywords=[
"Satellite", "Cursor on Target", "ATAK", "TAK", "CoT"
],
entry_points={"console_scripts": ["inrcot = inrcot.commands:cli"]}
)