This repository has been archived by the owner on Oct 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,20 @@ You need to add your gmail details as environment variables using `GMAIL_USER` a | |
Execute: `pip install --user -r dev-requirements.txt` | ||
|
||
### Publish your package | ||
Execute: `python setup.py sdist;twine upload dist/*` | ||
Execute: `python setup.py sdist;twine upload dist/*;rm dist/*` | ||
|
||
### Run tests | ||
Execute: `behave` | ||
|
||
## Cron | ||
Create a file in /etc/profile.d/ipteller.sh with the variables: | ||
```bash | ||
export GMAIL_USER='[email protected]' | ||
export GMAIL_PASS='Password' | ||
``` | ||
|
||
and then in execute `crontab -e` and add this line at the end: | ||
```bash | ||
SHELL=/bin/bash | ||
0 * * * * source /etc/profile.d/ipteller.sh;~/.local/lib/python2.7/site-packages/ipteller/ipteller.py | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters