From 0e0472296b4372fecb1206b440d2fdff426e45d1 Mon Sep 17 00:00:00 2001 From: Martin Carrasco Date: Thu, 27 Nov 2025 11:35:17 +0100 Subject: [PATCH 1/2] Fixing of the name calls --- mantra/representations/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mantra/representations/__init__.py b/mantra/representations/__init__.py index 35bf7e1..84a28a8 100644 --- a/mantra/representations/__init__.py +++ b/mantra/representations/__init__.py @@ -1,7 +1,7 @@ from .dual_graph import DualGraph -from .simplicial_connectivity import IncidenceSCTransform -from .simplicial_connectivity import AdjacencySCTransform -from .simplicial_connectivity import CoadjacencySCTransform +from .simplicial_connectivity import IncidenceSimplicialComplex +from .simplicial_connectivity import AdjacencySimplicialComplex +from .simplicial_connectivity import CoadjacencySimplicialComplex __all__ = [ "AdjacencySCTransform", From 14d5979f17e265c940afb95424f9bd7831ea8d43 Mon Sep 17 00:00:00 2001 From: Martin Carrasco Date: Thu, 27 Nov 2025 14:54:14 +0100 Subject: [PATCH 2/2] Basic switch to UV building --- .github/workflows/publish_to_pypi.yaml | 3 +++ pyproject.toml | 16 +++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish_to_pypi.yaml b/.github/workflows/publish_to_pypi.yaml index 16bded1..6b76cc0 100644 --- a/.github/workflows/publish_to_pypi.yaml +++ b/.github/workflows/publish_to_pypi.yaml @@ -26,6 +26,9 @@ jobs: pip install build --user + - name: Create versioning based on git + run: | + echo "__version__ = \"${GITHUB_REF#refs/*/}\"" >> mantra/__init__.py - name: Build a binary wheel and a source tarball run: python3 -m build - name: Store the distribution packages diff --git a/pyproject.toml b/pyproject.toml index ce4bade..b0b3fe2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,16 +1,12 @@ [build-system] -requires = ["setuptools >= 61.0","setuptools-git-versioning>=2.0,<3"] -build-backend = "setuptools.build_meta" - -[tool.setuptools-git-versioning] -enabled = true -template = "{tag}" +requires = ["uv_build>=0.9.13,<0.10.0"] +build-backend = "uv_build" [tool.pylint.main] load-plugins = "pylint_actions" -[tool.setuptools] -packages = ["mantra"] +[tool.uv.sources] +mantra = { path = "mantra" } [project] dynamic = ["version"] @@ -85,7 +81,7 @@ exclude = [ ] # Same as Black. -line-length = 88 +line-length = 79 indent-width = 4 # Assume Python 3.8 @@ -134,3 +130,5 @@ docstring-code-line-length = "dynamic" [tool.black] line-length = 79 + +