refactor: rename to exec-notify

This commit is contained in:
Daniel Langbein 2023-06-14 21:16:09 +02:00
parent 5d088864e6
commit 537c87600a
14 changed files with 10 additions and 14 deletions

2
.gitignore vendored
View File

@ -5,5 +5,5 @@
__pycache__/ __pycache__/
/dist/ /dist/
/src/de.p1st.exec_notify.egg-info/ /src/exec_notify.egg-info/
/build/ /build/

View File

@ -1,7 +1,7 @@
# exec-notify # exec-notify
* Send email notification if command fails with [exec-notify](src/de/p1st/exec_notify/exec_notify.py). * Send email notification if command fails with [exec-notify](src/exec_notify/exec_notify.py).
* Send unconditional notifications with [do-notify](src/de/p1st/exec_notify/do_notify.py). * Send unconditional notifications with [do-notify](src/exec_notify/do_notify.py).
## TODOs ## TODOs
@ -50,7 +50,6 @@ Then install with one of the following options:
```shell ```shell
sudo python3 -m pip install --upgrade --force-reinstall git+https://codeberg.org/privacy1st/exec-notify 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 --force-reinstall .
sudo python3 -m pip install --upgrade --index-url https://test.pypi.org/simple/ --no-deps de.p1st.exec-notify
``` ```
### Installation - venv ### Installation - venv
@ -78,9 +77,6 @@ python3 -m pip install git+https://codeberg.org/privacy1st/exec-notify
# Install from local directory # Install from local directory
python3 -m pip install ~/Downloads/git/exec-notify/ 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`: Note about usage of TestPyPI and `--no-deps`:

View File

@ -32,5 +32,5 @@ where = src
[options.entry_points] [options.entry_points]
; https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html ; https://setuptools.readthedocs.io/en/latest/userguide/entry_point.html
console_scripts= console_scripts=
exec-notify = de.p1st.exec_notify.exec_notify:main exec-notify = exec_notify.exec_notify:main
do-notify = de.p1st.exec_notify.do_notify:main do-notify = exec_notify.do_notify:main

View File

@ -3,7 +3,7 @@ import sys
# print(sys.path) # print(sys.path)
import socket import socket
from de.p1st.exec_notify.lib import mail from exec_notify.lib import mail
def main(): def main():

View File

@ -5,7 +5,7 @@ from sys import argv
import socket import socket
from typing import List from typing import List
from de.p1st.exec_notify.lib import exec, mail, util from exec_notify.lib import exec, mail, util
def main(): def main():

View File

@ -4,7 +4,7 @@ from pathlib import Path, PosixPath
import configparser import configparser
from typing import Tuple from typing import Tuple
from de.p1st.exec_notify.lib import util from exec_notify.lib import util
class LazyConfig: class LazyConfig:

View File

@ -6,7 +6,7 @@ import ssl
from email.mime.text import MIMEText from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart 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): def sendMailOrWriteToFile(SUBJECT: str, BODY: str, informAboutLocalMail: bool = True):

View File

@ -1,6 +1,6 @@
import unittest import unittest
import de.p1st.exec_notify.lib.util as util import exec_notify.lib.util as util
class MyTestCase(unittest.TestCase): class MyTestCase(unittest.TestCase):