Skip to content

Commit

Permalink
Update to Theengs Gateway 1.1.0 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvervloesem authored Jun 11, 2023
1 parent 8ac3ca6 commit 271f83f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $ snap get -d theengs-gateway
"discovery-topic": "homeassistant/sensor",
"hass-discovery": 1
},
"log-level": "WARNING",
"log-level": "INFO",
"mqtt": {
"host": "",
"pass": "",
Expand Down
12 changes: 6 additions & 6 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: |
LYWSDCGQ, and Mi Flora. It translates these data into a readable JSON
format and pushes those to an MQTT broker.
icon: snap/local/logo-Theengs.png
version: 1.0.0
version: 1.1.0
license: GPL-3.0
contact: [email protected]
website: https://github.com/theengs/gateway-snap
Expand All @@ -28,10 +28,10 @@ parts:
theengs-decoder:
plugin: python
source: https://github.com/theengs/decoder.git
source-tag: v1.4.0
source-tag: v1.5.0
override-pull: |
craftctl default
sed -i "s/version_tag/1.4.0/g" $CRAFT_PART_SRC/setup.py
sed -i "s/version_tag/1.5.0/g" $CRAFT_PART_SRC/setup.py
sed -i "s/ shutil.rmtree('TheengsDecoder.egg-info')//g" $CRAFT_PART_SRC/setup.py
rm $SNAPCRAFT_PART_SRC/pyproject.toml # Use pre-built system-site requirements
build-packages:
Expand All @@ -45,17 +45,17 @@ parts:
- wheel
stage:
- lib/python3.10/site-packages/TheengsDecoder/*
- lib/python3.10/site-packages/TheengsDecoder-1.4.0.dist-info/*
- lib/python3.10/site-packages/TheengsDecoder-1.5.0.dist-info/*
theengs-gateway:
after:
- theengs-decoder
plugin: python
source: https://github.com/theengs/gateway.git
source-tag: v1.0.0
source-tag: v1.1.0
override-pull: |
craftctl default
sed -i "s/version_tag/$SNAPCRAFT_PROJECT_VERSION/g" $CRAFT_PART_SRC/setup.py
sed -i 's/ "TheengsDecoder>=1.4.0",/"importlib_metadata",/g' $CRAFT_PART_SRC/setup.py
sed -i 's/ "TheengsDecoder>=1.5.0",/"importlib_metadata",/g' $CRAFT_PART_SRC/setup.py
scripts:
plugin: dump
source: scripts
Expand Down

0 comments on commit 271f83f

Please sign in to comment.