From 90bd2e31b72ee535c6be5cdc310d17a2b8f78c24 Mon Sep 17 00:00:00 2001 From: Rogier van Staveren Date: Tue, 25 Jun 2024 19:50:46 +0200 Subject: [PATCH] Rollback to setuptools and bump version --- pyproject.toml | 12 +++--------- rfcontrol/__init__.py | 7 ++----- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 334ea73..41a8972 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,16 +1,10 @@ [build-system] -requires = ["hatchling>=1.24", "hatch-vcs"] -build-backend = "hatchling.build" - -[tool.hatch.build.hooks.vcs] -version-file = "rfcontrol/_version.py" - -[tool.hatch.version] -source = "vcs" +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" [project] name = "rfcontrolpy" -dynamic = ["version"] +version = "0.0.8" license = {text = "GPLv3"} authors = [ { name="Rogier van Staveren", email="rogier@batoid.com" } diff --git a/rfcontrol/__init__.py b/rfcontrol/__init__.py index 168b997..6a1f9b5 100644 --- a/rfcontrol/__init__.py +++ b/rfcontrol/__init__.py @@ -1,8 +1,5 @@ # pylint: disable=missing-module-docstring -try: - from ._version import __version__ -except ModuleNotFoundError: - pass +__version__ = "0.0.8" -from rfcontrol import controller, helpers +from . import controller, helpers