mirror of
https://codeberg.org/privacy1st/exec-notify
synced 2024-12-22 23:16:04 +01:00
refactor: rename to exec-notify
This commit is contained in:
parent
5d088864e6
commit
537c87600a
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,5 +5,5 @@
|
||||
__pycache__/
|
||||
|
||||
/dist/
|
||||
/src/de.p1st.exec_notify.egg-info/
|
||||
/src/exec_notify.egg-info/
|
||||
/build/
|
||||
|
@ -1,7 +1,7 @@
|
||||
# exec-notify
|
||||
|
||||
* Send email notification if command fails with [exec-notify](src/de/p1st/exec_notify/exec_notify.py).
|
||||
* Send unconditional notifications with [do-notify](src/de/p1st/exec_notify/do_notify.py).
|
||||
* Send email notification if command fails with [exec-notify](src/exec_notify/exec_notify.py).
|
||||
* Send unconditional notifications with [do-notify](src/exec_notify/do_notify.py).
|
||||
|
||||
## TODOs
|
||||
|
||||
@ -50,7 +50,6 @@ Then install with one of the following options:
|
||||
```shell
|
||||
sudo python3 -m pip install --upgrade --force-reinstall git+https://codeberg.org/privacy1st/exec-notify
|
||||
sudo python3 -m pip install --upgrade --force-reinstall .
|
||||
sudo python3 -m pip install --upgrade --index-url https://test.pypi.org/simple/ --no-deps de.p1st.exec-notify
|
||||
```
|
||||
|
||||
### Installation - venv
|
||||
@ -78,9 +77,6 @@ python3 -m pip install git+https://codeberg.org/privacy1st/exec-notify
|
||||
|
||||
# Install from local directory
|
||||
python3 -m pip install ~/Downloads/git/exec-notify/
|
||||
|
||||
# Install the module from TestPyPI
|
||||
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps --upgrade de.p1st.exec-notify
|
||||
```
|
||||
|
||||
Note about usage of TestPyPI and `--no-deps`:
|
||||
|
@ -32,5 +32,5 @@ where = src
|
||||
[options.entry_points]
|
||||
; https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html
|
||||
console_scripts=
|
||||
exec-notify = de.p1st.exec_notify.exec_notify:main
|
||||
do-notify = de.p1st.exec_notify.do_notify:main
|
||||
exec-notify = exec_notify.exec_notify:main
|
||||
do-notify = exec_notify.do_notify:main
|
||||
|
@ -3,7 +3,7 @@ import sys
|
||||
# print(sys.path)
|
||||
import socket
|
||||
|
||||
from de.p1st.exec_notify.lib import mail
|
||||
from exec_notify.lib import mail
|
||||
|
||||
|
||||
def main():
|
@ -5,7 +5,7 @@ from sys import argv
|
||||
import socket
|
||||
from typing import List
|
||||
|
||||
from de.p1st.exec_notify.lib import exec, mail, util
|
||||
from exec_notify.lib import exec, mail, util
|
||||
|
||||
|
||||
def main():
|
@ -4,7 +4,7 @@ from pathlib import Path, PosixPath
|
||||
import configparser
|
||||
from typing import Tuple
|
||||
|
||||
from de.p1st.exec_notify.lib import util
|
||||
from exec_notify.lib import util
|
||||
|
||||
|
||||
class LazyConfig:
|
@ -6,7 +6,7 @@ import ssl
|
||||
from email.mime.text import MIMEText
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
|
||||
from de.p1st.exec_notify.lib import config, util
|
||||
from exec_notify.lib import config, util
|
||||
|
||||
|
||||
def sendMailOrWriteToFile(SUBJECT: str, BODY: str, informAboutLocalMail: bool = True):
|
@ -1,6 +1,6 @@
|
||||
import unittest
|
||||
|
||||
import de.p1st.exec_notify.lib.util as util
|
||||
import exec_notify.lib.util as util
|
||||
|
||||
|
||||
class MyTestCase(unittest.TestCase):
|
||||
|
Loading…
Reference in New Issue
Block a user