mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-07 09:00:07 +01:00
Merge pull request #446 from LarsVomMars/master
Pip requirements - closes #444
This commit is contained in:
commit
6f8354d6cd
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
### __[v2.5.1]__ - unreleased
|
||||
##### Added
|
||||
- Plugin requirements: Added requirements.txt for all plugins requiring extra python packages so the install will be easier
|
||||
##### Changed
|
||||
##### Deprecated
|
||||
##### Removed
|
||||
|
|
|
|||
|
|
@ -16,6 +16,16 @@ This `.run()` routine is called every time an alarm comes in
|
|||
|
||||
Here are the information from BOSWatch available. See section `5. Process the data from BOSWatch`
|
||||
|
||||
#### 1.4 Requirements
|
||||
Add all required (which need to be installed separately) python packages to a requirements.txt in the plugin directory so that the user can simply install all requirements for this plugin.
|
||||
|
||||
For examples look at [the Telegram plugin](Telegram/requirements.txt)
|
||||
|
||||
##### 1.4.1 Requirement installation
|
||||
To install the packages from the requirements.txt run
|
||||
`pip install -r /path/to/plugin/directory/requirements.txt`
|
||||
Or because for the current version (2.5) Python2 is required
|
||||
`pip2 install -r /path/to/plungin/directory/requirements.txt` will work for sure
|
||||
|
||||
## 2. Use Global Logging
|
||||
#### 2.1 Init and Use
|
||||
|
|
|
|||
2
plugins/Telegram/requirements.txt
Normal file
2
plugins/Telegram/requirements.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
python-telegram-bot
|
||||
requests
|
||||
1
plugins/yowsup/requirements.txt
Normal file
1
plugins/yowsup/requirements.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
yowsup2
|
||||
Loading…
Reference in a new issue