Skip to content

Commit

Permalink
Move to pip packages
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Jan 5, 2024
1 parent d482a78 commit 35c79ae
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
[submodule "3rdparty/energenie-connect0r"]
path = 3rdparty/energenie-connect0r
url = https://github.com/perryflynn/energenie-connect0r.git
[submodule "3rdparty/4relay-rpi"]
path = 3rdparty/4relay-rpi
url = https://github.com/SequentMicrosystems/4relay-rpi
[submodule "3rdparty/chirp-rpi"]
path = 3rdparty/chirp-rpi
url = https://github.com/ageir/chirp-rpi.git
Expand Down
1 change: 0 additions & 1 deletion 3rdparty/4relay-rpi
Submodule 4relay-rpi deleted from 09a44b
6 changes: 1 addition & 5 deletions hardware/relay/8relay-stack_relay.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@
from pathlib import Path

# https://github.com/SequentMicrosystems/relay8-rpi
# https://github.com/SequentMicrosystems/8relay-rpi
# https://github.com/SequentMicrosystems/4relind-rpi
# https://github.com/SequentMicrosystems/8relind-rpi
import sys

# For the old version (V1). New version (V3) will be installed as package
# For the old version (V1). Newer versions will be installed as package
sys.path.insert(0, str((Path(__file__).parent / Path("../../3rdparty/relay8-rpi/python")).resolve()))
sys.path.insert(0, str((Path(__file__).parent / Path("../../3rdparty/4relay-rpi/python/4relay")).resolve()))

from relay8 import set as relay8SetV1
from relay8 import get as relay8GetV1
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ bme680==1.1.1
adafruit-circuitpython-sht31d==2.3.24
SM8relind==1.0.2
git+https://github.com/SequentMicrosystems/4relind-rpi.git#subdirectory=python/4relind
git+https://github.com/SequentMicrosystems/4relay-rpi.git#subdirectory=python/4relay

# Webcam packages
Pillow==9.5.0
Expand Down

0 comments on commit 35c79ae

Please sign in to comment.