From bc01ea89d58e9359856d2a60e2e3d8138d334a1a Mon Sep 17 00:00:00 2001 From: Tom Weber Date: Sun, 1 Jan 2023 19:28:38 +0100 Subject: [PATCH] refactor for woodpecker and testing --- LICENSE | 19 +++++++++++++++++++ pyproject.toml | 22 ++++++++++++++++++++++ setup.py | 19 ------------------- {conway => src/conway}/__init__.py | 0 {conway => src/conway}/anime.py | 0 {conway => src/conway}/gameoflife.py | 0 6 files changed, 41 insertions(+), 19 deletions(-) create mode 100644 LICENSE create mode 100644 pyproject.toml delete mode 100644 setup.py rename {conway => src/conway}/__init__.py (100%) rename {conway => src/conway}/anime.py (100%) rename {conway => src/conway}/gameoflife.py (100%) diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ef44d6d --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2022 Tom Weber + +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. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..bacc0ef --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,22 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "conway" +version = "0.0.1" +authors = [ + { name="Tom Weber", email="tom@weber.codes" }, +] +description = "A game of life implementation" +readme = "README.md" +requires-python = ">=3.7" +classifiers = [ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", +] + +[project.urls] +"Homepage" = "https://git.weber.codes/tom/gameoflife" +"Bug Tracker" = "https://git.weber.codes/tom/gameoflife/issues" \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index d7d296a..0000000 --- a/setup.py +++ /dev/null @@ -1,19 +0,0 @@ -from setuptools import setup - -setup( - name='conway', - version='0.1.0', - description="A conway's game of life implementation", - url='https://git.weber.codes/tom/conwaysgameoflife', - author='Tom Weber', - author_email='mail@weber.codes', - license='BSD 2-clause', - packages=['conway'], - install_requires=['wheel', - 'numpy', - 'pandas', - 'matplotlib', - 'plotly' - ], - -) diff --git a/conway/__init__.py b/src/conway/__init__.py similarity index 100% rename from conway/__init__.py rename to src/conway/__init__.py diff --git a/conway/anime.py b/src/conway/anime.py similarity index 100% rename from conway/anime.py rename to src/conway/anime.py diff --git a/conway/gameoflife.py b/src/conway/gameoflife.py similarity index 100% rename from conway/gameoflife.py rename to src/conway/gameoflife.py