Merge pull request #446 from LarsVomMars/master

Pip requirements - closes #444
This commit is contained in:
Bastian Schroll 2020-04-19 09:38:53 +02:00 committed by GitHub
commit 6f8354d6cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 0 deletions

View file

@ -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

View file

@ -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

View file

@ -0,0 +1,2 @@
python-telegram-bot
requests

View file

@ -0,0 +1 @@
yowsup2