diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-21 14:34:54 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-21 14:34:54 -0700 |
commit | 5331809a0ee5d28d45553d69346836b080ba9fc6 (patch) | |
tree | ea9f8c12853032dd603807feb542ef3f469ecf38 | |
parent | 83db5dd843b70af349c3992e2e50c7719f749061 (diff) | |
download | gpsd-5331809a0ee5d28d45553d69346836b080ba9fc6.tar.gz |
gps: move Python __version__ to proper place.
-rw-r--r-- | gps/__init__.py | 2 | ||||
-rw-r--r-- | gps/gps.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gps/__init__.py b/gps/__init__.py index 06b87597..7c6d1f41 100644 --- a/gps/__init__.py +++ b/gps/__init__.py @@ -13,5 +13,7 @@ from .misc import * api_major_version = 5 # bumped on incompatible changes api_minor_version = 0 # bumped on compatible changes +__version__ = '3.18-dev' + # The 'client' module exposes some C utility functions for Python clients. # The 'packet' module exposes the packet getter via a Python interface. @@ -22,8 +22,6 @@ from __future__ import absolute_import, print_function, division from .client import * from .watch_options import * -# module version, would be nice to automate the version -__version__ = "3.18-dev" NaN = float('nan') @@ -175,6 +173,9 @@ class gpsdata(object): class gps(gpscommon, gpsdata, gpsjson): "Client interface to a running gpsd instance." + # module version, would be nice to automate the version + __version__ = "3.18-dev" + def __init__(self, host="127.0.0.1", port=GPSD_PORT, verbose=0, mode=0, reconnect=False): gpscommon.__init__(self, host, port, verbose, reconnect) |