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
3 changes: 3 additions & 0 deletions .github/workflows/publish_to_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions mantra/representations/__init__.py
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
16 changes: 7 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down Expand Up @@ -85,7 +81,7 @@ exclude = [
]

# Same as Black.
line-length = 88
line-length = 79
indent-width = 4

# Assume Python 3.8
Expand Down Expand Up @@ -134,3 +130,5 @@ docstring-code-line-length = "dynamic"

[tool.black]
line-length = 79