Update minor version

This commit is contained in:
avollkopf 2022-07-16 10:26:32 +02:00
parent 459c4207fe
commit 4d85c4c6af
4 changed files with 31 additions and 1 deletions

View file

@ -177,6 +177,22 @@
"type": "select", "type": "select",
"value": 0 "value": 0
}, },
"PRESSURE_UNIT": {
"description": "Set unit for pressure",
"name": "PRESSURE_UNIT",
"options": [
{
"label": "kPa",
"value": "kPa"
},
{
"label": "PSI",
"value": "PSI"
}
],
"type": "select",
"value": "kPa"
},
"RECIPE_CREATION_PATH": { "RECIPE_CREATION_PATH": {
"description": "API path to creation plugin. Default: upload . CHANGE ONLY IF USING A RECIPE CREATION PLUGIN", "description": "API path to creation plugin. Default: upload . CHANGE ONLY IF USING A RECIPE CREATION PLUGIN",
"name": "RECIPE_CREATION_PATH", "name": "RECIPE_CREATION_PATH",

1
.gitignore vendored
View file

@ -5,6 +5,7 @@ dist
.idea .idea
*.log *.log
cbpi.egg-info cbpi.egg-info
cbpi4.egg-info
log log
venv venv
cbpi/extension/ui cbpi/extension/ui

View file

@ -1,3 +1,3 @@
__version__ = "4.0.6" __version__ = "4.0.7.a1"
__codename__ = "Spring Break" __codename__ = "Spring Break"

13
testversion.py Normal file
View file

@ -0,0 +1,13 @@
import json
import sys
from urllib import request
from pkg_resources import parse_version
def versions(pkg_name):
url = f'https://pypi.python.org/pypi/{pkg_name}/json'
releases = json.loads(request.urlopen(url).read())['releases']
releases = sorted(releases, key=parse_version, reverse=True)
return [releases[0]]
if __name__ == '__main__':
print(*versions(sys.argv[1]), sep='\n')