From d8a52289f80937d1f54a701f885dfe998fdbb820 Mon Sep 17 00:00:00 2001 From: Stiofain Date: Mon, 13 Mar 2023 22:47:10 +0000 Subject: [PATCH] Fie hyphen praise setup.cfg --- pyproject.toml | 6 ++---- setup.cfg | 7 +++++++ {src => tautoloader}/cli.py | 6 +++--- {src => tautoloader}/methods.py | 2 +- {src => tautoloader}/torrent.py | 0 {src => tautoloader}/transmission.py | 0 6 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 setup.cfg rename {src => tautoloader}/cli.py (94%) rename {src => tautoloader}/methods.py (97%) rename {src => tautoloader}/torrent.py (100%) rename {src => tautoloader}/transmission.py (100%) diff --git a/pyproject.toml b/pyproject.toml index 51711c5..19f6dc8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,6 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [project] -name = "transmission_autoloader" +name = "tautoloader" requires-python = ">=3.8" - -[project.scripts] -my-script = "transmission_autoloader.cli:main" +version = "0.0.1" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..1190932 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,7 @@ +[metadata] +name = tautoloader +version = "0.0.1" + +[options] +packages = tautoloader, +python_requires = >=3.8 diff --git a/src/cli.py b/tautoloader/cli.py similarity index 94% rename from src/cli.py rename to tautoloader/cli.py index 7771752..b54dba6 100644 --- a/src/cli.py +++ b/tautoloader/cli.py @@ -5,9 +5,9 @@ from pathlib import Path from typing import Optional -from src.torrent import TorrentData -from src.transmission import TransmissionCommand -from src.methods import find_files, parse_list_output +from .torrent import TorrentData +from .transmission import TransmissionCommand +from .methods import find_files, parse_list_output def main( diff --git a/src/methods.py b/tautoloader/methods.py similarity index 97% rename from src/methods.py rename to tautoloader/methods.py index 60a02b8..5e4623e 100644 --- a/src/methods.py +++ b/tautoloader/methods.py @@ -3,7 +3,7 @@ from pathlib import Path from typing import Optional -from src.transmission import TransmissionRow +from .transmission import TransmissionRow def find_files( diff --git a/src/torrent.py b/tautoloader/torrent.py similarity index 100% rename from src/torrent.py rename to tautoloader/torrent.py diff --git a/src/transmission.py b/tautoloader/transmission.py similarity index 100% rename from src/transmission.py rename to tautoloader/transmission.py