Skip to content

Commit 070100f

Browse files
committed
Fixed build steps
1 parent e85938a commit 070100f

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
python -m pip install -e .
2222
- name: Build package
2323
run: |
24-
python -m build --sdist --wheel
24+
python -m build
2525
python -m twine check dist/*
2626
- name: Upload package to TestPyPI
2727
run: |

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,17 @@ keywords = ["tda", "mapper", "topology", "topological data analysis"]
1919
dependencies = [
2020
"matplotlib>=3.3.4",
2121
"networkx>=2.5",
22-
"numpy>=1.20.1",
22+
"numpy>=1.20.1, <2.0.0",
2323
"plotly>=4.14.3"
2424
]
2525
requires-python = ">=3.6"
2626

2727
[project.optional-dependencies]
2828
dev = ["coverage", "pandas", "scikit-learn"]
2929

30+
[tool.setuptools.package-data]
31+
"tdamapper.utils" = ["_metrics.c", "_metrics.pyx"]
32+
3033
[project.urls]
3134
Homepage = "https://github.com/lucasimi/tda-mapper-python"
3235
Documentation = "https://tda-mapper.readthedocs.io"

setup.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
from Cython.Build import cythonize
44

55

6+
ext_modules = [
7+
Extension(
8+
name='tdamapper.utils._metrics',
9+
sources=[
10+
'src/tdamapper/utils/_metrics.pyx',
11+
],
12+
),
13+
]
14+
615
setup(
7-
ext_modules=cythonize([
8-
Extension(
9-
name="tdamapper.utils._metrics",
10-
sources=["src/tdamapper/utils/_metrics.pyx"],
11-
),
12-
])
16+
ext_modules=cythonize(ext_modules),
1317
)

0 commit comments

Comments
 (0)