diff --git a/build_newversion.sh b/build_newversion.sh new file mode 100644 index 0000000..ddbc170 --- /dev/null +++ b/build_newversion.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# use this to create a new version, be sure to push the existing /debian folder from the old one +new_version="0.0.2" +python3 setup.py sdist +cd dist || exit +mkdir build_${new_version} +mv *-${new_version}.tar.gz build_${new_version} +cd build_${new_version} || exit +tar -xzmf *-${new_version}.tar.gz +new_version="complib-${new_version}" +cd ${new_version} || exit + +if [ -d "debian" ]; then + echo "Found debian folder" +else + echo "Could not find debian folder, cloning repo" + git clone https://github.com/F-WuTS/complib-DEB.git + mv complib-DEB debian + git init +fi + +#debmake -b":python3" +#gbp buildpackage --git-sign-tags --git-keyid=97B61E4D515353C0A498D2AB22680B5AAC0C4FCE --git-ignore-new # git ignore while developing diff --git a/compLib/Api.py b/compLib/Api.py index 2492733..b977402 100644 --- a/compLib/Api.py +++ b/compLib/Api.py @@ -2,15 +2,6 @@ import requests import json import os -API_URL = os.getenv("API_URL", "http://localhost:5000/") -API_URL_GET_POS = API_URL + "getPos" -API_URL_GET_OP = API_URL + "getOp" -API_URL_GET_GOAL = API_URL + "getGoal" -API_URL_GET_ITEMS = API_URL + "getItems" - -import json -import os - API_URL = os.getenv("API_URL", "http://localhost:5000/") + "api/" API_URL_GET_POS = API_URL + "getPos" API_URL_GET_OP = API_URL + "getOp" diff --git a/compLib/__init__.py b/compLib/__init__.py index b3c06d4..a0235ce 100644 --- a/compLib/__init__.py +++ b/compLib/__init__.py @@ -1 +1 @@ -__version__ = "0.0.1" \ No newline at end of file +__version__ = "0.0.2" \ No newline at end of file diff --git a/init_gbp.sh b/init_gbp.sh new file mode 100644 index 0000000..e69de29