Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"}
]
Expand Down
20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down
Loading