From f2c5753cc176a90810776405199349ddb9c67de1 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 8 Aug 2022 09:26:27 +0000 Subject: [PATCH] Convert to package for import to AcadeMon --- .gitignore | 1 + LICENSE | 19 ++++++++++++ __init__.py => README.md | 0 pyproject.toml | 29 +++++++++++++++++++ {classes => src/reportmonster}/__init__.py | 0 __main__.py => src/reportmonster/__main__.py | 0 .../reportmonster/classes}/__init__.py | 0 .../reportmonster/classes}/config.py | 0 .../reportmonster/classes}/connection.py | 0 .../reportmonster/classes}/database.py | 0 .../reportmonster/classes}/logger.py | 0 .../reportmonster/classes}/user.py | 0 .../reportmonster/classes}/vessel.py | 0 const.py => src/reportmonster/const.py | 0 src/reportmonster/reports/__init__.py | 0 .../reportmonster/runreport.py | 0 server.py => src/reportmonster/server.py | 0 .../reportmonster/settings.dist.ini | 0 18 files changed, 49 insertions(+) create mode 100644 LICENSE rename __init__.py => README.md (100%) create mode 100644 pyproject.toml rename {classes => src/reportmonster}/__init__.py (100%) rename __main__.py => src/reportmonster/__main__.py (100%) rename {reports => src/reportmonster/classes}/__init__.py (100%) rename {classes => src/reportmonster/classes}/config.py (100%) rename {classes => src/reportmonster/classes}/connection.py (100%) rename {classes => src/reportmonster/classes}/database.py (100%) rename {classes => src/reportmonster/classes}/logger.py (100%) rename {classes => src/reportmonster/classes}/user.py (100%) rename {classes => src/reportmonster/classes}/vessel.py (100%) rename const.py => src/reportmonster/const.py (100%) create mode 100644 src/reportmonster/reports/__init__.py rename runreport.py => src/reportmonster/runreport.py (100%) rename server.py => src/reportmonster/server.py (100%) rename settings.dist.ini => src/reportmonster/settings.dist.ini (100%) diff --git a/.gitignore b/.gitignore index 69f5f57..dfda775 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ reports/*.py .vscode *.old *.bak +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/__init__.py b/README.md similarity index 100% rename from __init__.py rename to README.md diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..55d8d57 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,29 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "reportmonster" +version = "0.9.1" +authors = [ + { name="Kumi Systems e.U.", email="office@kumi.systems" }, +] +description = "A package to communicate with multiple Moodle instances" +readme = "README.md" +license = { file="LICENSE" } +requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.urls] +"Homepage" = "https://kumig.it/kumisystems/reportmonster.git" + +[options] +install_requires = [ + "mysqlclient", + "paramiko", + "sshtunnel" +] \ No newline at end of file diff --git a/classes/__init__.py b/src/reportmonster/__init__.py similarity index 100% rename from classes/__init__.py rename to src/reportmonster/__init__.py diff --git a/__main__.py b/src/reportmonster/__main__.py similarity index 100% rename from __main__.py rename to src/reportmonster/__main__.py diff --git a/reports/__init__.py b/src/reportmonster/classes/__init__.py similarity index 100% rename from reports/__init__.py rename to src/reportmonster/classes/__init__.py diff --git a/classes/config.py b/src/reportmonster/classes/config.py similarity index 100% rename from classes/config.py rename to src/reportmonster/classes/config.py diff --git a/classes/connection.py b/src/reportmonster/classes/connection.py similarity index 100% rename from classes/connection.py rename to src/reportmonster/classes/connection.py diff --git a/classes/database.py b/src/reportmonster/classes/database.py similarity index 100% rename from classes/database.py rename to src/reportmonster/classes/database.py diff --git a/classes/logger.py b/src/reportmonster/classes/logger.py similarity index 100% rename from classes/logger.py rename to src/reportmonster/classes/logger.py diff --git a/classes/user.py b/src/reportmonster/classes/user.py similarity index 100% rename from classes/user.py rename to src/reportmonster/classes/user.py diff --git a/classes/vessel.py b/src/reportmonster/classes/vessel.py similarity index 100% rename from classes/vessel.py rename to src/reportmonster/classes/vessel.py diff --git a/const.py b/src/reportmonster/const.py similarity index 100% rename from const.py rename to src/reportmonster/const.py diff --git a/src/reportmonster/reports/__init__.py b/src/reportmonster/reports/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/runreport.py b/src/reportmonster/runreport.py similarity index 100% rename from runreport.py rename to src/reportmonster/runreport.py diff --git a/server.py b/src/reportmonster/server.py similarity index 100% rename from server.py rename to src/reportmonster/server.py diff --git a/settings.dist.ini b/src/reportmonster/settings.dist.ini similarity index 100% rename from settings.dist.ini rename to src/reportmonster/settings.dist.ini