From 39dcfc4245cab3c90845e76fddb88a6eaf835f0b Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 20 Feb 2022 13:12:50 +0100 Subject: [PATCH] packaged new-style --- pyproject.toml | 7 +++++ requirements.txt | 5 ---- setup.cfg | 30 +++++++++++++++++++ setup.py | 27 ----------------- {treepuncher => src/treepuncher}/__init__.py | 0 {treepuncher => src/treepuncher}/__main__.py | 0 .../treepuncher}/events/__init__.py | 0 .../treepuncher}/events/base.py | 0 .../treepuncher}/events/chat.py | 0 .../treepuncher}/events/death.py | 0 .../treepuncher}/events/join_game.py | 0 .../treepuncher}/game/__init__.py | 0 {treepuncher => src/treepuncher}/game/chat.py | 0 .../treepuncher}/game/inventory.py | 0 .../treepuncher}/game/state.py | 0 .../treepuncher}/game/tablist.py | 0 .../treepuncher}/game/world.py | 0 {treepuncher => src/treepuncher}/helpers.py | 0 {treepuncher => src/treepuncher}/notifier.py | 0 {treepuncher => src/treepuncher}/py.typed | 0 {treepuncher => src/treepuncher}/storage.py | 0 .../treepuncher}/treepuncher.py | 0 22 files changed, 37 insertions(+), 32 deletions(-) create mode 100644 pyproject.toml delete mode 100644 requirements.txt create mode 100644 setup.cfg delete mode 100644 setup.py rename {treepuncher => src/treepuncher}/__init__.py (100%) rename {treepuncher => src/treepuncher}/__main__.py (100%) rename {treepuncher => src/treepuncher}/events/__init__.py (100%) rename {treepuncher => src/treepuncher}/events/base.py (100%) rename {treepuncher => src/treepuncher}/events/chat.py (100%) rename {treepuncher => src/treepuncher}/events/death.py (100%) rename {treepuncher => src/treepuncher}/events/join_game.py (100%) rename {treepuncher => src/treepuncher}/game/__init__.py (100%) rename {treepuncher => src/treepuncher}/game/chat.py (100%) rename {treepuncher => src/treepuncher}/game/inventory.py (100%) rename {treepuncher => src/treepuncher}/game/state.py (100%) rename {treepuncher => src/treepuncher}/game/tablist.py (100%) rename {treepuncher => src/treepuncher}/game/world.py (100%) rename {treepuncher => src/treepuncher}/helpers.py (100%) rename {treepuncher => src/treepuncher}/notifier.py (100%) rename {treepuncher => src/treepuncher}/py.typed (100%) rename {treepuncher => src/treepuncher}/storage.py (100%) rename {treepuncher => src/treepuncher}/treepuncher.py (100%) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..96a6c5b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[build-system] +requires = [ + "setuptools>=42", + "wheel" +] +build-backend = "setuptools.build_meta" + diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index bdd9ba4..0000000 --- a/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -setproctitle -termcolor -apscheduler -aiocraft -aioconsole diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..76a076b --- /dev/null +++ b/setup.cfg @@ -0,0 +1,30 @@ +[metadata] +name = treepuncher +version = 0.0.2 +author = alemi +author_email = me@alemi.dev +description = An hackable Minecraft client, built with aiocraft +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/alemidev/treepuncher +project_urls = + Bug Tracker = https://github.com/alemidev/treepuncher/issues +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent + +[options] +install_requires = + setproctitle + termcolor + apscheduler + aioconsole + aiocraft +package_dir = + = src +packages = find: +python_requires = >=3.6 + +[options.packages.find] +where = src diff --git a/setup.py b/setup.py deleted file mode 100644 index d57ae4b..0000000 --- a/setup.py +++ /dev/null @@ -1,27 +0,0 @@ -from setuptools import setup, find_packages - -with open("requirements.txt") as f: - requirements = f.read().split("\n") - -setup( - name='treepuncher', - version='0.0.2', - description='An hackable Minecraft client, built with aiocraft', - url='https://github.com/alemidev/treepuncher', - author='alemi', - author_email='me@alemi.dev', - license='MIT', - packages=find_packages(), - package_data = { - 'treepuncher': ['py.typed'], - }, - install_requires=requirements, - classifiers=[ - 'Development Status :: 1 - Planning', - 'Intended Audience :: Developers', - 'License :: OSI Approved :: MIT License', - 'Operating System :: POSIX :: Linux', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.8', - ], -) diff --git a/treepuncher/__init__.py b/src/treepuncher/__init__.py similarity index 100% rename from treepuncher/__init__.py rename to src/treepuncher/__init__.py diff --git a/treepuncher/__main__.py b/src/treepuncher/__main__.py similarity index 100% rename from treepuncher/__main__.py rename to src/treepuncher/__main__.py diff --git a/treepuncher/events/__init__.py b/src/treepuncher/events/__init__.py similarity index 100% rename from treepuncher/events/__init__.py rename to src/treepuncher/events/__init__.py diff --git a/treepuncher/events/base.py b/src/treepuncher/events/base.py similarity index 100% rename from treepuncher/events/base.py rename to src/treepuncher/events/base.py diff --git a/treepuncher/events/chat.py b/src/treepuncher/events/chat.py similarity index 100% rename from treepuncher/events/chat.py rename to src/treepuncher/events/chat.py diff --git a/treepuncher/events/death.py b/src/treepuncher/events/death.py similarity index 100% rename from treepuncher/events/death.py rename to src/treepuncher/events/death.py diff --git a/treepuncher/events/join_game.py b/src/treepuncher/events/join_game.py similarity index 100% rename from treepuncher/events/join_game.py rename to src/treepuncher/events/join_game.py diff --git a/treepuncher/game/__init__.py b/src/treepuncher/game/__init__.py similarity index 100% rename from treepuncher/game/__init__.py rename to src/treepuncher/game/__init__.py diff --git a/treepuncher/game/chat.py b/src/treepuncher/game/chat.py similarity index 100% rename from treepuncher/game/chat.py rename to src/treepuncher/game/chat.py diff --git a/treepuncher/game/inventory.py b/src/treepuncher/game/inventory.py similarity index 100% rename from treepuncher/game/inventory.py rename to src/treepuncher/game/inventory.py diff --git a/treepuncher/game/state.py b/src/treepuncher/game/state.py similarity index 100% rename from treepuncher/game/state.py rename to src/treepuncher/game/state.py diff --git a/treepuncher/game/tablist.py b/src/treepuncher/game/tablist.py similarity index 100% rename from treepuncher/game/tablist.py rename to src/treepuncher/game/tablist.py diff --git a/treepuncher/game/world.py b/src/treepuncher/game/world.py similarity index 100% rename from treepuncher/game/world.py rename to src/treepuncher/game/world.py diff --git a/treepuncher/helpers.py b/src/treepuncher/helpers.py similarity index 100% rename from treepuncher/helpers.py rename to src/treepuncher/helpers.py diff --git a/treepuncher/notifier.py b/src/treepuncher/notifier.py similarity index 100% rename from treepuncher/notifier.py rename to src/treepuncher/notifier.py diff --git a/treepuncher/py.typed b/src/treepuncher/py.typed similarity index 100% rename from treepuncher/py.typed rename to src/treepuncher/py.typed diff --git a/treepuncher/storage.py b/src/treepuncher/storage.py similarity index 100% rename from treepuncher/storage.py rename to src/treepuncher/storage.py diff --git a/treepuncher/treepuncher.py b/src/treepuncher/treepuncher.py similarity index 100% rename from treepuncher/treepuncher.py rename to src/treepuncher/treepuncher.py