diff --git a/pyproject.toml b/pyproject.toml index 20a25891658cf..45753dd4ad054 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,8 +3,8 @@ requires = ["cmake", "setuptools<72", "wheel", "numpy"] [project] name = "ROOT" -version = "0.1a8" -requires-python = ">=3.8" +version = "0.1a9" +requires-python = ">=3.9" maintainers = [ {name = "Vincenzo Eduardo Padulano", email = "vincenzo.eduardo.padulano@cern.ch"} ] diff --git a/setup.py b/setup.py index 95d1aa617f9dc..be8aa84f0eaeb 100644 --- a/setup.py +++ b/setup.py @@ -54,6 +54,16 @@ def _patch_root_init(): class ROOTBuild(_build): + def finalize_options(self): + # Normalize the distribution name before building + if self.distribution.metadata.name == "ROOT": + # Store original name for metadata + self.distribution.metadata._original_name = "ROOT" + # Use normalized name to comply with PEP625 and avoid errors + # caused by https://github.com/pypi/warehouse/pull/18924 + self.distribution.metadata.name = "root" + super().finalize_options() + def run(self): _build.run(self) @@ -94,6 +104,16 @@ def run(self): class ROOTInstall(_install): + def finalize_options(self): + # Normalize the distribution name before installing + if self.distribution.metadata.name == "ROOT": + # Store original name for metadata + self.distribution.metadata._original_name = "ROOT" + # Use normalized name to comply with PEP625 and avoid errors + # caused by https://github.com/pypi/warehouse/pull/18924 + self.distribution.metadata.name = "root" + super().finalize_options() + def _get_install_path(self): if hasattr(self, "bdist_dir") and self.bdist_dir: install_path = self.bdist_dir