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