Remove unused python-dotenv dependency

load_dotenv() was called, but no setting was ever read from a .env
file. Drop it from the code, pyproject.toml, PKGBUILD and README.
This commit is contained in:
Fuxino
2026-10-08 18:15:07 +02:00
parent 871dd0f49a
commit 793a30fad8
4 changed files with 1 additions and 10 deletions
+1 -2
View File
@@ -14,8 +14,7 @@ makedepends=('git'
'python-build' 'python-build'
'python-installer') 'python-installer')
depends=('python>=3.10' depends=('python>=3.10'
'rsync' 'rsync')
'python-dotenv')
optdepends=('python-systemd: use systemd log' optdepends=('python-systemd: use systemd log'
'python-dbus: for desktop notifications' 'python-dbus: for desktop notifications'
'python-paramiko: for remote backup through ssh') 'python-paramiko: for remote backup through ssh')
-2
View File
@@ -20,8 +20,6 @@ The script uses rsync to actually run the backup, so you will have to install it
sudo pacman -Syu rsync sudo pacman -Syu rsync
``` ```
It's also required to have python-dotenv
Optional dependencies are systemd-python to enable using systemd journal for logging, and dbus-python for desktop notifications. Optional dependencies are systemd-python to enable using systemd journal for logging, and dbus-python for desktop notifications.
## Install ## Install
-3
View File
@@ -29,9 +29,6 @@ classifiers = [
"Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.14",
"Topic :: System :: Archiving :: Backup", "Topic :: System :: Archiving :: Backup",
] ]
dependencies = [
"python-dotenv",
]
[project.optional-dependencies] [project.optional-dependencies]
JOURNAL = ["systemd-python"] JOURNAL = ["systemd-python"]
-3
View File
@@ -34,8 +34,6 @@ from tempfile import mkstemp
from getpass import GetPassWarning, getpass from getpass import GetPassWarning, getpass
from glob import glob from glob import glob
from dotenv import load_dotenv
try: try:
import paramiko import paramiko
from paramiko import RSAKey, Ed25519Key, ECDSAKey, DSSKey from paramiko import RSAKey, Ed25519Key, ECDSAKey, DSSKey
@@ -53,7 +51,6 @@ except ImportError:
dbus = None dbus = None
load_dotenv()
logging.getLogger().setLevel(logging.DEBUG) logging.getLogger().setLevel(logging.DEBUG)
logger = logging.getLogger(os.path.basename(__file__)) logger = logging.getLogger(os.path.basename(__file__))
c_handler = StreamHandler() c_handler = StreamHandler()