Skip to content

Commit 85ed7f1

Browse files
committed
final checkout for v5.0.0
1 parent c79fa37 commit 85ed7f1

File tree

13 files changed

+58
-79
lines changed

13 files changed

+58
-79
lines changed

.github/workflows/debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
3131
- name: Build Debian/Apt bdist_deb
3232
run: |
33-
export REPO_NAME=$(echo ${github.repository} | awk -F"/" '{print $2}')
33+
export REPO_NAME=$(echo ${{ github.repository }} | awk -F"/" '{print $2}')
3434
python3 setup.py --command-packages=stdeb.command bdist_deb
3535
ls -al deb_dist/
3636
cp deb_dist/python3-${REPO_NAME}_*_all.deb deb_dist/python3-${REPO_NAME}_latest_all.deb

.github/workflows/python-publish_to_pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ jobs:
1919
python-version: '3.x'
2020
- name: Install dependencies
2121
run: |
22-
python -m pip install --upgrade pip
23-
pip install setuptools wheel twine
22+
python3 -m pip install --upgrade pip
23+
python3 -m pip install setuptools wheel twine
2424
- name: Build
2525
run: |
26-
python setup.py sdist bdist_wheel
26+
python3 setup.py sdist bdist_wheel
2727
- name: Publish package
2828
uses: pypa/gh-action-pypi-publish@release/v1
2929
with:

.github/workflows/python-test_and_lint.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@ jobs:
2121
uses: actions/setup-python@v2
2222
with:
2323
python-version: ${{ matrix.python-version }}
24-
- name: Install dependencies
24+
- name: Install test requirements
25+
run: |
26+
make install_test_requirements
27+
- name: Install package itself (editable)
2528
run: |
26-
make install_test
2729
make editable
2830
- name: Lint with pylint
2931
run: |
3032
make pylint
3133
- name: Lint with flake8
3234
run: |
3335
make flake8
34-
- name: Test with pytest
36+
- name: Test with pytest-cov
3537
run: |
3638
make test_cov

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.vscode/
12
*.deb
23
*.egg
34
*.egg-info/
@@ -29,5 +30,4 @@ output.xml
2930
pylint.log
3031
redis-server.log
3132
redis-server/
32-
.python-version
3333
__pycache__

LICENSE

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ Copyright 2022 Greg Albrecht <[email protected]>
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
6-
7-
http://www.apache.org/licenses/LICENSE-2.0
5+
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
86

97
Unless required by applicable law or agreed to in writing, software
108
distributed under the License is distributed on an "AS IS" BASIS,

Makefile

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,40 +18,37 @@
1818
# License:: Apache License, Version 2.0
1919
#
2020

21-
this_app = "aiscot"
21+
this_app = aiscot
2222
.DEFAULT_GOAL := all
2323

24-
all: develop
25-
26-
install_requirements:
27-
pip install -r requirements_test.txt
24+
all: editable
2825

2926
develop:
30-
python setup.py develop
27+
python3 setup.py develop
3128

3229
editable:
33-
pip install -e .
30+
python3 -m pip install -e .
3431

35-
install_test:
36-
pip install -r requirements_test.txt
32+
install_test_requirements:
33+
python3 -m pip install -r requirements_test.txt
3734

3835
install:
39-
python setup.py install
36+
python3 setup.py install
4037

4138
uninstall:
42-
pip uninstall -y adsbxcot
39+
python3 -m pip uninstall -y $(this_app)
4340

4441
reinstall: uninstall install
4542

43+
publish:
44+
python3 setup.py publish
45+
4646
clean:
4747
@rm -rf *.egg* build dist *.py[oc] */*.py[co] cover doctest_pypi.cfg \
4848
nosetests.xml pylint.log output.xml flake8.log tests.log \
4949
test-result.xml htmlcov fab.log .coverage __pycache__ \
5050
*/__pycache__
5151

52-
publish:
53-
python setup.py publish
54-
5552
pep8:
5653
flake8 --max-line-length=88 --extend-ignore=E203 --exit-zero $(this_app)/*.py
5754

@@ -64,15 +61,15 @@ lint:
6461
pylint: lint
6562

6663
checkmetadata:
67-
python setup.py check -s --restructuredtext
64+
python3 setup.py check -s --restructuredtext
6865

6966
mypy:
7067
mypy --strict .
7168

7269
pytest:
7370
pytest
7471

75-
test: editable install_test pytest
72+
test: editable install_test_requirements pytest
7673

7774
test_cov:
7875
pytest --cov=$(this_app)

README.rst

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ aiscot - AIS Cursor-on-Target Gateway.
55
:alt: Screenshot of AIS as COT PLI in ATAK.
66
:target: https://raw.githubusercontent.com/ampledata/aiscot/main/docs/screenshot-1601068921.png
77

8-
**Tech Support**: Email: [email protected] or Signal/WhatsApp: +1-310-621-9598
9-
108
AISCOT transforms AIS data to Cursor-On-Target for display on Situational Awareness
119
applications like ATAK, WinTAK, iTAK, TAKX, COPERS, et al. See https://www.tak.gov/
1210
for more information on the TAK program.
@@ -40,24 +38,25 @@ forwarded to AISCOT to be transformed to COT and transmitted to COT destinations
4038
Receive AIS data from the `AISHUB <https://www.aishub.com>`_ service.
4139
Requires a subscription to AISHUB.
4240

43-
Support AISCOT Development
44-
==========================
41+
Support Development
42+
===================
43+
44+
**Tech Support**: Email [email protected] or Signal/WhatsApp: +1-310-621-9598
4545

46-
AISCOT has been developed for the Disaster Response, Public Safety and
47-
Frontline community at-large. This software is currently provided at no-cost to
48-
our end-users. Any contribution you can make to further these software development
49-
efforts, and the mission of AISCOT to provide ongoing SA capabilities to our
50-
end-users, is greatly appreciated:
46+
This tool has been developed for the Disaster Response, Public Safety and
47+
Frontline Healthcare community. This software is currently provided at no-cost
48+
to users. Any contribution you can make to further this project's development
49+
efforts is greatly appreciated.
5150

5251
.. image:: https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png
5352
:target: https://www.buymeacoffee.com/ampledata
54-
:alt: Support AISCOT development: Buy me a coffee!
53+
:alt: Support Development: Buy me a coffee!
5554

5655

5756
Installation
5857
============
5958

60-
AISCOT functionality is provided by a command-line tool called `aiscot`,
59+
AISCOT functionality is provided by a command-line tool called ``aiscot``,
6160
which can be installed several ways.
6261

6362
**AISCOT requires Python 3.6 or above.**
@@ -92,19 +91,19 @@ Command-line options:
9291
-c CONFIG_FILE, --CONFIG_FILE If specified, use this config file. Default 'config.ini'.
9392

9493
Configuration options:
95-
COT_URL : str, default: udp://239.2.3.1:6969
94+
``COT_URL`` : str, default: udp://239.2.3.1:6969
9695
URL to COT destination. Must be a URL, e.g. ``tcp://1.2.3.4:1234`` or ``tls://...:1234``, etc.
97-
AIS_PORT : int, default: 5050
96+
``AIS_PORT`` : int, default: 5050
9897
AIS UDP Listen Port.
99-
COT_STALE : int, default: 3600
98+
``COT_STALE`` : int, default: 3600
10099
CoT Stale period ("timeout"), in seconds. Default `3600` seconds (1 hour).
101-
COT_TYPE : str, default: a-u-S-X-M
100+
``COT_TYPE`` : str, default: a-u-S-X-M
102101
Override COT Event Type ("marker type").
103-
AISHUB_URL : str, optional
102+
``AISHUB_URL`` : str, optional
104103
AISHUB feed URL. See **AISHUB usage notes** in README below.
105-
KNOWN_CRAFT : str, optional
104+
``KNOWN_CRAFT`` : str, optional
106105
Known Craft hints file. CSV file containing callsign/marker hints.
107-
INCLUDE_ALL_CRAFT : bool, optional
106+
``INCLUDE_ALL_CRAFT`` : bool, optional
108107
If using KNOWN_CRAFT, still include other craft not in our KNOWN_CRAFT list.
109108

110109
See example-config.ini in the source tree for example configuration.

aiscot/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
8-
# You may obtain a copy of the License at
9-
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
8+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
119
#
1210
# Unless required by applicable law or agreed to in writing, software
1311
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,8 +14,6 @@
1614
# limitations under the License.
1715
#
1816
# Author:: Greg Albrecht W2GMD <[email protected]>
19-
# Copyright:: Copyright 2022 Greg Albrecht
20-
# License:: Apache License, Version 2.0
2117
#
2218

2319
"""

aiscot/classes.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
8-
# You may obtain a copy of the License at
9-
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
8+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
119
#
1210
# Unless required by applicable law or agreed to in writing, software
1311
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,8 +14,6 @@
1614
# limitations under the License.
1715
#
1816
# Author:: Greg Albrecht W2GMD <[email protected]>
19-
# Copyright:: Copyright 2022 Greg Albrecht
20-
# License:: Apache License, Version 2.0
2117
#
2218

2319
"""AISCOT Class Definitions."""
@@ -202,7 +198,9 @@ async def run(self, number_of_iterations=-1) -> None:
202198
async with aiohttp.ClientSession() as session:
203199
while 1:
204200
await asyncio.sleep(poll_interval)
205-
self._logger.info("Polling every %ss: %s", poll_interval, aishub_url)
201+
self._logger.info(
202+
"Polling every %ss: %s", poll_interval, aishub_url
203+
)
206204
await self.get_aishub_feed(session, aishub_url)
207205
else:
208206
port: int = int(self.config.get("LISTEN_PORT", aiscot.DEFAULT_LISTEN_PORT))

aiscot/commands.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.
8-
# You may obtain a copy of the License at
9-
#
10-
# http://www.apache.org/licenses/LICENSE-2.0
8+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
119
#
1210
# Unless required by applicable law or agreed to in writing, software
1311
# distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,8 +14,6 @@
1614
# limitations under the License.
1715
#
1816
# Author:: Greg Albrecht W2GMD <[email protected]>
19-
# Copyright:: Copyright 2022 Greg Albrecht
20-
# License:: Apache License, Version 2.0
2117
#
2218

2319
"""PyTAK Command Line."""
@@ -29,5 +25,10 @@
2925
__license__ = "Apache License, Version 2.0"
3026

3127

32-
# PyTAK CLI tool boilerplate:
33-
pytak.cli(__name__.split(".")[0])
28+
def main() -> None:
29+
# PyTAK CLI tool boilerplate:
30+
pytak.cli(__name__.split(".")[0])
31+
32+
33+
if __name__ == "__main__":
34+
main()

0 commit comments

Comments
 (0)