From 5686f3fa5f36d87161d227d76fee0e6e46e59c96 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 10 Feb 2022 07:56:32 -0500 Subject: [PATCH] test --- .gitignore | 57 +++++++++++++++++++ COPYING | 23 ++++++++ MANIFEST.in | 6 ++ SpiceBot/requirements.txt => NEWS | 0 README.md | 1 + setup.cfg | 25 ++++++++ setup.py | 24 ++++++++ .../SpiceBotCore/SBCore}/__init__.py | 2 - .../SBCore}/interface/comms/__init__.py | 0 .../SBCore}/interface/config/__init__.py | 0 .../SBCore}/interface/database/__init__.py | 0 .../SBCore}/interface/events/__init__.py | 0 .../SBCore}/interface/logger/__init__.py | 0 .../SBCore}/interface/versions/__init__.py | 0 .../SpiceBotCore}/__init__.py | 4 +- .../SpiceBotCore}/version.json | 0 16 files changed, 138 insertions(+), 4 deletions(-) create mode 100644 .gitignore create mode 100644 COPYING create mode 100644 MANIFEST.in rename SpiceBot/requirements.txt => NEWS (100%) create mode 100644 setup.cfg create mode 100644 setup.py rename {SpiceBot/SpiceBotCore => sopel_SpiceBot/SpiceBotCore/SBCore}/__init__.py (98%) rename {SpiceBot/SpiceBotCore => sopel_SpiceBot/SpiceBotCore/SBCore}/interface/comms/__init__.py (100%) rename {SpiceBot/SpiceBotCore => sopel_SpiceBot/SpiceBotCore/SBCore}/interface/config/__init__.py (100%) rename {SpiceBot/SpiceBotCore => sopel_SpiceBot/SpiceBotCore/SBCore}/interface/database/__init__.py (100%) rename {SpiceBot/SpiceBotCore => sopel_SpiceBot/SpiceBotCore/SBCore}/interface/events/__init__.py (100%) rename {SpiceBot/SpiceBotCore => sopel_SpiceBot/SpiceBotCore/SBCore}/interface/logger/__init__.py (100%) rename {SpiceBot/SpiceBotCore => sopel_SpiceBot/SpiceBotCore/SBCore}/interface/versions/__init__.py (100%) rename {SpiceBot => sopel_SpiceBot/SpiceBotCore}/__init__.py (97%) rename {SpiceBot => sopel_SpiceBot/SpiceBotCore}/version.json (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba74660 --- /dev/null +++ b/.gitignore @@ -0,0 +1,57 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..7d1cd07 --- /dev/null +++ b/COPYING @@ -0,0 +1,23 @@ + + Eiffel Forum License, version 2 + + 1. Permission is hereby granted to use, copy, modify and/or + distribute this package, provided that: + * copyright notices are retained unchanged, + * any distribution of this package, whether modified or not, + includes this license text. + 2. Permission is hereby also granted to distribute binary programs + which depend on this package. If the binary program depends on a + modified version of this package, you are encouraged to publicly + release the modified version of this package. + +*********************** + +THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT WARRANTY. ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THIS PACKAGE. + +*********************** diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..10b886b --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,6 @@ +include NEWS +include COPYING +include README.md + +recursive-exclude * __pycache__ +recursive-exclude * *.py[co] diff --git a/SpiceBot/requirements.txt b/NEWS similarity index 100% rename from SpiceBot/requirements.txt rename to NEWS diff --git a/README.md b/README.md index eba29d7..6df81dd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # SpiceBot +A Niche Wrapper around Sopel diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..33fce01 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,25 @@ +[metadata] +name = SpiceBot +version = 0.1.0 +description = A Niche Wrapper around Sopel +author = deathbybandaid +author_email = sam@deathbybandaid.net +url = https://git.deathbybandaid.net/deathbybandaid/SpiceBot.git +license = Eiffel Forum License, version 2 +classifiers = + Intended Audience :: Developers + Intended Audience :: System Administrators + License :: Eiffel Forum License (EFL) + License :: OSI Approved :: Eiffel Forum License + Topic :: Communications :: Chat :: Internet Relay Chat + +[options] +packages = find: +zip_safe = false +include_package_data = true +install_requires = + sopel>=7.0,<8 + +[options.entry_points] +sopel.plugins = + SpiceBot = SpiceBot diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..05d38e6 --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +from __future__ import print_function +import os +import sys +from setuptools import setup, find_packages + + +if __name__ == '__main__': + print('Sopel does not correctly load plugins installed with setup.py ' + 'directly. Please use "pip install .", or add ' + '{}/SpiceBot to core.extra in your config.' + .format(os.path.dirname(os.path.abspath(__file__))), + file=sys.stderr) + +with open('README.md') as readme_file: + readme = readme_file.read() + +with open('NEWS') as history_file: + history = history_file.read() + + +setup( + long_description=readme + '\n\n' + history, +) diff --git a/SpiceBot/SpiceBotCore/__init__.py b/sopel_SpiceBot/SpiceBotCore/SBCore/__init__.py similarity index 98% rename from SpiceBot/SpiceBotCore/__init__.py rename to sopel_SpiceBot/SpiceBotCore/SBCore/__init__.py index 7c737ce..e3e45c8 100644 --- a/SpiceBot/SpiceBotCore/__init__.py +++ b/sopel_SpiceBot/SpiceBotCore/SBCore/__init__.py @@ -6,8 +6,6 @@ from .interface.database import Database from .interface.comms import Comms from .interface.events import Events -from .botsetup import * - class SpiceBotCore_OBJ(): diff --git a/SpiceBot/SpiceBotCore/interface/comms/__init__.py b/sopel_SpiceBot/SpiceBotCore/SBCore/interface/comms/__init__.py similarity index 100% rename from SpiceBot/SpiceBotCore/interface/comms/__init__.py rename to sopel_SpiceBot/SpiceBotCore/SBCore/interface/comms/__init__.py diff --git a/SpiceBot/SpiceBotCore/interface/config/__init__.py b/sopel_SpiceBot/SpiceBotCore/SBCore/interface/config/__init__.py similarity index 100% rename from SpiceBot/SpiceBotCore/interface/config/__init__.py rename to sopel_SpiceBot/SpiceBotCore/SBCore/interface/config/__init__.py diff --git a/SpiceBot/SpiceBotCore/interface/database/__init__.py b/sopel_SpiceBot/SpiceBotCore/SBCore/interface/database/__init__.py similarity index 100% rename from SpiceBot/SpiceBotCore/interface/database/__init__.py rename to sopel_SpiceBot/SpiceBotCore/SBCore/interface/database/__init__.py diff --git a/SpiceBot/SpiceBotCore/interface/events/__init__.py b/sopel_SpiceBot/SpiceBotCore/SBCore/interface/events/__init__.py similarity index 100% rename from SpiceBot/SpiceBotCore/interface/events/__init__.py rename to sopel_SpiceBot/SpiceBotCore/SBCore/interface/events/__init__.py diff --git a/SpiceBot/SpiceBotCore/interface/logger/__init__.py b/sopel_SpiceBot/SpiceBotCore/SBCore/interface/logger/__init__.py similarity index 100% rename from SpiceBot/SpiceBotCore/interface/logger/__init__.py rename to sopel_SpiceBot/SpiceBotCore/SBCore/interface/logger/__init__.py diff --git a/SpiceBot/SpiceBotCore/interface/versions/__init__.py b/sopel_SpiceBot/SpiceBotCore/SBCore/interface/versions/__init__.py similarity index 100% rename from SpiceBot/SpiceBotCore/interface/versions/__init__.py rename to sopel_SpiceBot/SpiceBotCore/SBCore/interface/versions/__init__.py diff --git a/SpiceBot/__init__.py b/sopel_SpiceBot/SpiceBotCore/__init__.py similarity index 97% rename from SpiceBot/__init__.py rename to sopel_SpiceBot/SpiceBotCore/__init__.py index a49db70..b1f61af 100644 --- a/SpiceBot/__init__.py +++ b/sopel_SpiceBot/SpiceBotCore/__init__.py @@ -1,5 +1,5 @@ # coding=utf8 -"""SpiceBotSERV +"""SpiceBot A Niche Wrapper around Sopel """ from __future__ import unicode_literals, absolute_import, division, print_function @@ -10,7 +10,7 @@ from threading import Thread from sopel import plugin -from .SpiceBotCore import SpiceBotCore_OBJ +from .SBCore import SpiceBotCore_OBJ SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__))) diff --git a/SpiceBot/version.json b/sopel_SpiceBot/SpiceBotCore/version.json similarity index 100% rename from SpiceBot/version.json rename to sopel_SpiceBot/SpiceBotCore/version.json