renamed to aprslib due to name collision on pypi
This commit is contained in:
parent
aceb367cc7
commit
a78168209b
2
Makefile
2
Makefile
|
|
@ -22,7 +22,7 @@ test:
|
|||
nosetests --verbosity 2 --with-coverage
|
||||
|
||||
pylint:
|
||||
pylint -r n -f colorized aprs || true
|
||||
pylint -r n -f colorized aprslib || true
|
||||
|
||||
build: pylint test
|
||||
|
||||
|
|
|
|||
17
README.rst
17
README.rst
|
|
@ -3,14 +3,13 @@ APRS lib for Python
|
|||
|
||||
|Build Status| |Coverage Status|
|
||||
|
||||
| A tiny library for dealing with APRS. It can be used to connect and
|
||||
listen to the aprs-is feed as well as parse packets.
|
||||
| A tiny library for dealing with APRS. It can be used to connect and listen to the aprs-is feed as well as parse packets.
|
||||
| The following packet formats are supported:
|
||||
|
||||
- normal/compressed position reports
|
||||
- mic-e
|
||||
- messages (inc. telemetry, bulletins, etc)
|
||||
- base91 commenet telemetry
|
||||
- base91 comment telemetry
|
||||
|
||||
Quick start
|
||||
-----------
|
||||
|
|
@ -20,22 +19,22 @@ Parsing
|
|||
|
||||
.. code:: python
|
||||
|
||||
import aprs
|
||||
packet = aprs.parse('LZ1DEV>APRS:>status text')
|
||||
import aprslib
|
||||
packet = aprslib.parse('LZ1DEV>APRS:>status text')
|
||||
|
||||
APRS-IS
|
||||
^^^^^^^
|
||||
|
||||
.. code:: python
|
||||
|
||||
import aprs
|
||||
import aprslib
|
||||
|
||||
def callback(packet):
|
||||
print packet
|
||||
|
||||
AIS = aprs.IS("LZ1DEV")
|
||||
AIS = aprslib.IS("LZ1DEV")
|
||||
AIS.connect()
|
||||
AIS.consumer(callback)
|
||||
AIS.consumer(callback)
|
||||
|
||||
Docs
|
||||
^^^^
|
||||
|
|
@ -48,3 +47,5 @@ Docs
|
|||
:target: https://travis-ci.org/rossengeorgiev/aprs-python
|
||||
.. |Coverage Status| image:: https://coveralls.io/repos/rossengeorgiev/aprs-python/badge.png?branch=master
|
||||
:target: https://coveralls.io/r/rossengeorgiev/aprs-python?branch=master
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@ VER2=$((`echo $VERSTR | cut -d'-' -f2` + 1))
|
|||
|
||||
VERSTR="__version__ = '${VER1}.${VER2}'"
|
||||
|
||||
echo "$VERSTR" > aprs/version.py
|
||||
echo "$VERSTR" > aprslib/version.py
|
||||
|
||||
git add aprs/version.py
|
||||
git add aprslib/version.py
|
||||
|
|
|
|||
8
setup.py
8
setup.py
|
|
@ -3,13 +3,13 @@ from codecs import open
|
|||
from os import path
|
||||
|
||||
here = path.abspath(path.dirname(__file__))
|
||||
__version__ = open('aprs/version.py').read().split("'")[1]
|
||||
__version__ = open('aprslib/version.py').read().split("'")[1]
|
||||
|
||||
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
|
||||
long_description = f.read()
|
||||
|
||||
setup(
|
||||
name='aprs',
|
||||
name='aprslib',
|
||||
version=__version__,
|
||||
description='Library for working with APRS',
|
||||
long_description=long_description,
|
||||
|
|
@ -27,8 +27,8 @@ setup(
|
|||
],
|
||||
setup_requires=['pypandoc'],
|
||||
test_suite='tests',
|
||||
keywords='aprs parse parsing aprs-is library base91',
|
||||
packages=['aprs'],
|
||||
keywords='aprs aprslib parse parsing aprs-is library base91',
|
||||
packages=['aprslib'],
|
||||
install_requires=[],
|
||||
zip_safe=False,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import unittest
|
||||
|
||||
from aprs import base91
|
||||
from aprslib import base91
|
||||
|
||||
|
||||
class a_FromDecimal(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import unittest
|
||||
|
||||
from aprs.exceptions import *
|
||||
from aprslib.exceptions import *
|
||||
|
||||
|
||||
class ExceptionCorrectness(unittest.TestCase):
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import unittest
|
||||
|
||||
from aprs.parse import _parse_comment_telemetry
|
||||
from aprs import base91
|
||||
from aprslib.parse import _parse_comment_telemetry
|
||||
from aprslib import base91
|
||||
from random import randint
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import unittest
|
|||
import string
|
||||
from random import randint, randrange, sample
|
||||
|
||||
from aprs.parse import _parse_header
|
||||
from aprs.parse import _validate_callsign
|
||||
from aprs.exceptions import ParseError
|
||||
from aprslib.parse import _parse_header
|
||||
from aprslib.parse import _validate_callsign
|
||||
from aprslib.exceptions import ParseError
|
||||
|
||||
|
||||
class ValidateCallsign(unittest.TestCase):
|
||||
|
|
|
|||
Loading…
Reference in New Issue