From d6ea9ac904d5284b61e93293b91febb596468188 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Mon, 27 Mar 2023 20:43:25 +0300 Subject: [PATCH] Switch packaging to hatch, add numpy dependency --- icosphere.py | 2 ++ pyproject.toml | 28 ++++++++++++++++++++++++++++ setup.py | 1 - 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 pyproject.toml delete mode 100644 setup.py diff --git a/icosphere.py b/icosphere.py index 791e071..6693dd7 100644 --- a/icosphere.py +++ b/icosphere.py @@ -28,6 +28,8 @@ ''' +__version__ = "0.1.3" + import numpy as np diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..7e15479 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,28 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "icosphere" +dynamic = ["version"] +description = "Constructs geodesic icosahedron given subdivision frequency." +readme = "README.md" +license = "lgpl-2.1" +authors = [ + { name = "Vedrana Andersen Dahl", email = "vand@dtu.dk" }, +] + +dependencies = [ + "numpy", +] + +[project.urls] +Homepage = "https://github.com/vedranaa/icosphere" + +[tool.hatch.version] +path = "icosphere.py" + +[tool.hatch.build.targets.sdist] +include = [ + "icosphere.py", +] diff --git a/setup.py b/setup.py deleted file mode 100644 index d833df1..0000000 --- a/setup.py +++ /dev/null @@ -1 +0,0 @@ -from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup( name = 'icosphere', version = '0.1.3', description = 'Constructs geodesic icosahedron given subdivision frequency.', long_description = long_description, long_description_content_type = "text/markdown", url = 'https://github.com/vedranaa/icosphere', author = 'Vedrana Andersen Dahl', author_email = 'vand@dtu.dk', license ='lgpl-2.1', py_modules = ['icosphere'] ) \ No newline at end of file