From 39dd5cc49e3b689124e140efdf7f1be5c9680828 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Mon, 13 Apr 2026 10:11:09 +0100 Subject: [PATCH] fix: add Python version check and update homepage URL Add runtime check for Python >= 3.12 at import time so users get a clear error instead of cryptic import failures. Update homepage URL to PyAutoLabs org. Co-Authored-By: Claude Opus 4.6 --- autoconf/__init__.py | 8 ++++++++ pyproject.toml | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/autoconf/__init__.py b/autoconf/__init__.py index 9841531..18de095 100644 --- a/autoconf/__init__.py +++ b/autoconf/__init__.py @@ -1,3 +1,11 @@ +import sys + +if sys.version_info < (3, 12): + raise RuntimeError( + f"PyAutoConf requires Python 3.12 or later. " + f"You are running Python {sys.version_info.major}.{sys.version_info.minor}." + ) + from . import jax_wrapper from . import exc from .tools.decorators import cached_property diff --git a/pyproject.toml b/pyproject.toml index 2b79f57..bd1642d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ classifiers = [ "Topic :: Scientific/Engineering :: Physics", "Natural Language :: English", "Operating System :: OS Independent", - "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13" ] keywords = ["cli"] @@ -33,7 +33,7 @@ dependencies = [ ] [project.urls] -Homepage = "https://github.com/rhayes777/PyAutoConf" +Homepage = "https://github.com/PyAutoLabs/PyAutoConf" [tool.setuptools] include-package-data = true