updated version number to 0.4.0-0
added API_FORCE for overriding API_URL extensive logging is now disabled by default
This commit is contained in:
parent
34e68e2a9e
commit
e7f0f95d66
5 changed files with 11 additions and 4 deletions
|
@ -34,7 +34,7 @@ fpm -s python --python-bin python3 --python-pip pip3 --python-package-name-prefi
|
|||
-d "python3-pigpio" \
|
||||
-d "python3-numpy" \
|
||||
-d "ffmpeg" \
|
||||
-v 0.3.9-0 -t deb setup.py
|
||||
-v 0.4.0-0 -t deb setup.py
|
||||
|
||||
# --deb-changelog changelog \
|
||||
# --deb-upstream-changelog changelog \
|
||||
|
|
|
@ -8,6 +8,13 @@ import requests
|
|||
from compLib.LogstashLogging import Logging
|
||||
|
||||
API_URL = os.getenv("API_URL", "http://localhost:5000/") + "api/"
|
||||
|
||||
api_override = os.getenv("API_FORCE", "")
|
||||
|
||||
if api_override != "":
|
||||
print(f"API_URL was set to {API_URL} but was overwritten with {api_override}")
|
||||
API_URL = api_override
|
||||
|
||||
API_URL_GET_DELIVERY = API_URL + "getDelivery"
|
||||
API_URL_GET_MATERIAL = API_URL + "getMaterial"
|
||||
API_URL_GET_GARBAGE = API_URL + "getGarbage"
|
||||
|
|
|
@ -6,7 +6,7 @@ import requests
|
|||
from logstash_async.transport import HttpTransport
|
||||
from logstash_async.handler import AsynchronousLogstashHandler
|
||||
|
||||
EXTENSIVE_LOGGING = os.getenv("EXTENSIVE_LOGGING", "True")
|
||||
EXTENSIVE_LOGGING = os.getenv("EXTENSIVE_LOGGING", "False")
|
||||
|
||||
if EXTENSIVE_LOGGING == "True":
|
||||
EXTENSIVE_LOGGING = True
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
__version__ = "0.3.9-0"
|
||||
__version__ = "0.4.0-0"
|
||||
|
||||
import importlib
|
||||
import compLib.LogstashLogging
|
||||
|
|
2
setup.py
2
setup.py
|
@ -12,7 +12,7 @@ else:
|
|||
|
||||
setuptools.setup(
|
||||
name="complib",
|
||||
version="0.3.9-0",
|
||||
version="0.4.0-0",
|
||||
author="F-WuTs",
|
||||
author_email="--",
|
||||
description="",
|
||||
|
|
Reference in a new issue