kopia lustrzana https://github.com/glidernet/python-ogn-client
Fix: get version information from pyproject.toml
rodzic
484ce0418b
commit
e1c37d96e5
|
@ -1,10 +1,16 @@
|
||||||
|
import importlib.metadata
|
||||||
|
|
||||||
APRS_SERVER_HOST = 'aprs.glidernet.org'
|
APRS_SERVER_HOST = 'aprs.glidernet.org'
|
||||||
APRS_SERVER_PORT_FULL_FEED = 10152
|
APRS_SERVER_PORT_FULL_FEED = 10152
|
||||||
APRS_SERVER_PORT_CLIENT_DEFINED_FILTERS = 14580
|
APRS_SERVER_PORT_CLIENT_DEFINED_FILTERS = 14580
|
||||||
|
|
||||||
APRS_APP_NAME = 'python-ogn-client'
|
APRS_APP_NAME = 'python-ogn-client'
|
||||||
|
|
||||||
PACKAGE_VERSION = '1.2.3'
|
try:
|
||||||
|
PACKAGE_VERSION = importlib.metadata.version(APRS_APP_NAME)
|
||||||
|
except importlib.metadata.PackageNotFoundError:
|
||||||
|
PACKAGE_VERSION = '0.0.0'
|
||||||
|
|
||||||
APRS_APP_VER = PACKAGE_VERSION[:3]
|
APRS_APP_VER = PACKAGE_VERSION[:3]
|
||||||
|
|
||||||
APRS_KEEPALIVE_TIME = 240
|
APRS_KEEPALIVE_TIME = 240
|
||||||
|
|
Ładowanie…
Reference in New Issue