From c736ab40b10a767f4a2a0aa9825fb39c1774da97 Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Mon, 29 Apr 2024 11:47:19 +0300 Subject: [PATCH] hatchling build --- pyproject.toml | 21 +++++++++++---------- setup.py | 3 --- src/base91x/__init__.py | 4 ++++ 3 files changed, 15 insertions(+), 13 deletions(-) delete mode 100644 setup.py diff --git a/pyproject.toml b/pyproject.toml index b4b9456..3d056a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "base91x" -version = "1.0.0" +dynamic = ["version"] description = "base91x encoding/decoding library" authors = [{ name = "Roman Babenko", email = "babenek@users.noreply.github.com" }] -readme = "README.md" requires-python = ">=3.8" +readme = "README.md" keywords = ["encode", "decode", "base91x"] classifiers = [ "Programming Language :: Python :: 3", @@ -17,15 +17,16 @@ classifiers = [ ] [project.urls] -"Homepage" = "https://github.com/babenek/base91" -"Bug Tracker" = "https://github.com/babenek/base91/issues" +"Homepage" = "https://github.com/babenek/base91x" +"Bug Tracker" = "https://github.com/babenek/base91x/issues" [build-system] -requires = ["setuptools"] -build-backend = "setuptools.build_meta" +requires = ["hatchling"] +build-backend = "hatchling.build" + +[tool.hatch.version] +path = "src/base91x/__init__.py" -[tool.setuptools.packages.find] -where = ["src"] +[project.scripts] +base91x = "base91x.__main__:main" -[tool.setuptools.package-data] -base91x = ["py.typed"] diff --git a/setup.py b/setup.py deleted file mode 100644 index 8c7fad0..0000000 --- a/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -import setuptools - -setuptools.setup(entry_points={"console_scripts": ["base91x=base91x.__main__:main"]}) diff --git a/src/base91x/__init__.py b/src/base91x/__init__.py index 5df7288..2df6149 100644 --- a/src/base91x/__init__.py +++ b/src/base91x/__init__.py @@ -2,3 +2,7 @@ from .base91x import BASE91X_LEN from .base91x import decode from .base91x import encode + +__all__ = ["__version__"] + +__version__ = "1.0.1"