mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-23 23:48:16 +01:00
Update minor version
This commit is contained in:
parent
459c4207fe
commit
4d85c4c6af
4 changed files with 31 additions and 1 deletions
|
@ -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
1
.gitignore
vendored
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
__version__ = "4.0.6"
|
__version__ = "4.0.7.a1"
|
||||||
__codename__ = "Spring Break"
|
__codename__ = "Spring Break"
|
||||||
|
|
||||||
|
|
13
testversion.py
Normal file
13
testversion.py
Normal 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')
|
Loading…
Reference in a new issue