diff --git a/.gitignore b/.gitignore index 6288378..7f604d3 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ settings.ini database.sqlite3 database.sqlite3-journal venv/ -.vscode \ No newline at end of file +.vscode +dist/ \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4825fb9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2021-2022 Kumi Systems e.U. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..15cb255 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,27 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "contentmonster" +version = "0.0.1" +authors = [ + { name="Kumi Systems e.U.", email="office@kumi.systems" }, +] +description = "File replicator" +readme = "README.md" +license = { file="LICENSE" } +requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: POSIX :: Linux", +] +dependencies = [ + "paramiko", + "watchdog" +] + +[project.urls] +"Homepage" = "https://kumig.it/kumisystems/contentmonster" +"Bug Tracker" = "https://kumig.it/kumisystems/contentmonster/issues" \ No newline at end of file diff --git a/__main__.py b/src/contentmonster/__main__.py similarity index 100% rename from __main__.py rename to src/contentmonster/__main__.py diff --git a/classes/__init__.py b/src/contentmonster/classes/__init__.py similarity index 100% rename from classes/__init__.py rename to src/contentmonster/classes/__init__.py diff --git a/classes/chunk.py b/src/contentmonster/classes/chunk.py similarity index 100% rename from classes/chunk.py rename to src/contentmonster/classes/chunk.py diff --git a/classes/config.py b/src/contentmonster/classes/config.py similarity index 100% rename from classes/config.py rename to src/contentmonster/classes/config.py diff --git a/classes/connection.py b/src/contentmonster/classes/connection.py similarity index 100% rename from classes/connection.py rename to src/contentmonster/classes/connection.py diff --git a/classes/database.py b/src/contentmonster/classes/database.py similarity index 100% rename from classes/database.py rename to src/contentmonster/classes/database.py diff --git a/classes/directory.py b/src/contentmonster/classes/directory.py similarity index 100% rename from classes/directory.py rename to src/contentmonster/classes/directory.py diff --git a/classes/doghandler.py b/src/contentmonster/classes/doghandler.py similarity index 100% rename from classes/doghandler.py rename to src/contentmonster/classes/doghandler.py diff --git a/classes/file.py b/src/contentmonster/classes/file.py similarity index 100% rename from classes/file.py rename to src/contentmonster/classes/file.py diff --git a/classes/logger.py b/src/contentmonster/classes/logger.py similarity index 100% rename from classes/logger.py rename to src/contentmonster/classes/logger.py diff --git a/classes/remotefile.py b/src/contentmonster/classes/remotefile.py similarity index 100% rename from classes/remotefile.py rename to src/contentmonster/classes/remotefile.py diff --git a/classes/retry.py b/src/contentmonster/classes/retry.py similarity index 100% rename from classes/retry.py rename to src/contentmonster/classes/retry.py diff --git a/classes/shorethread.py b/src/contentmonster/classes/shorethread.py similarity index 100% rename from classes/shorethread.py rename to src/contentmonster/classes/shorethread.py diff --git a/classes/vessel.py b/src/contentmonster/classes/vessel.py similarity index 100% rename from classes/vessel.py rename to src/contentmonster/classes/vessel.py diff --git a/classes/vesselthread.py b/src/contentmonster/classes/vesselthread.py similarity index 100% rename from classes/vesselthread.py rename to src/contentmonster/classes/vesselthread.py diff --git a/const.py b/src/contentmonster/const.py similarity index 100% rename from const.py rename to src/contentmonster/const.py diff --git a/settings.example.ini b/src/contentmonster/settings.example.ini similarity index 100% rename from settings.example.ini rename to src/contentmonster/settings.example.ini diff --git a/worker.py b/src/contentmonster/worker.py similarity index 100% rename from worker.py rename to src/contentmonster/worker.py