From a81d028d44767041dc0b993bc257fbc423fb552a Mon Sep 17 00:00:00 2001 From: Dylan Stephano-Shachter Date: Tue, 17 Dec 2024 09:47:31 -0500 Subject: [PATCH] include version in lib and improve pyproject --- optprompt/__init__.py | 2 ++ pyproject.toml | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/optprompt/__init__.py b/optprompt/__init__.py index 7468997..67f6f08 100644 --- a/optprompt/__init__.py +++ b/optprompt/__init__.py @@ -1 +1,3 @@ from optprompt.optprompt import OptionPrompter + +__version__ = "0.5.0" diff --git a/pyproject.toml b/pyproject.toml index 325e351..3a0a60b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] -requires = ["setuptools"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" [project] +dynamic = ["version"] name = "optprompt" -version = "0.4.0" authors = [ { name="Dylan Stephano-Shachter", email="dylan@theone.ninja" } ] @@ -19,8 +19,8 @@ classifiers = [ ] [project.urls] -Homepage = "https://github.com/dstathis/optprompt" -"Bug Tracker" = "https://github.com/dstathis/optprompt/issues" +homepage = "https://github.com/dstathis/optprompt" +issues = "https://github.com/dstathis/optprompt/issues" -[tool.setuptools] -packages = ["optprompt"] +[tool.hatch.version] +path = "optprompt/__init__.py"