Skip to content

Commit

Permalink
move to requirements files for install
Browse files Browse the repository at this point in the history
  • Loading branch information
jblance committed Dec 18, 2020
1 parent 1860780 commit ac43d19
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ Also
- Direct USB connection to Inverter (LV5048)
- see [documented approach](docs/ubuntu_install.md)

## Install
`sudo python3 ./setup.py install`
## Install (from source)
* Download or clone the repo
* From the directory that has the requirements files:
* `sudo pip install -r requirements.txt` # for the minimal install (dependances must be installed manually)
* `sudo pip install -r requirements-serial.txt` # for the mqtt install (includes pyserial)
* `sudo pip install -r requirements-full.txt` # for the full install (includes pyserial, mqtt and bluepy)

[Documented Ubuntu Install](docs/ubuntu_install.md)

Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-e "git+https://github.com/jblance/mpp-solar.git#egg=mpp-solar"
4 changes: 4 additions & 0 deletions requirements-full.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-e "git+https://github.com/jblance/mpp-solar.git#egg=mpp-solar"
pyserial
paho-mqtt
bluepy
2 changes: 2 additions & 0 deletions requirements-serial.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-e "git+https://github.com/jblance/mpp-solar.git#egg=mpp-solar"
pyserial
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"git+https://github.com/jblance/mpp-solar.git#egg=mpp-solar"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=["pyserial", "paho-mqtt"],
# install_requires=["pyserial", "paho-mqtt", "bluepy"],
install_requires=[],
# List additional groups of dependencies here (e.g. development
# dependencies). You can install these using the following syntax,
# for example:
# $ pip install -e .[dev,test]
extras_require={
"dev": ["check-manifest"],
"test": ["coverage"],
"ble": ["bluepy"],
},
# To provide executable scripts, use entry points in preference to the
# "scripts" keyword. Entry points provide cross-platform support and allow
Expand Down

0 comments on commit ac43d19

Please sign in to comment.