Skip to content

Commit 2ed19a5

Browse files
authored
Add generated files and small config changes (#35)
1 parent f5b248b commit 2ed19a5

File tree

5 files changed

+46681
-6
lines changed

5 files changed

+46681
-6
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
run: poetry install --with dev,benchmark
3333

3434
- name: Benchmark with pytest-benchmark
35-
run: poetry run pytest --benchmark-only benchmarks/test_benchmark.py
35+
run: poetry run pytest --benchmark-only --benchmark-warmup-iterations=0 benchmarks/test_benchmark.py

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ venv
112112

113113
# Cython
114114
*.html
115-
*.cpp
116-
*.c
117115

118116
speed/
119117

build_package.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
from setuptools.command.build_ext import build_ext
99
from setuptools.dist import Distribution
1010

11+
MACROS = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
12+
1113

1214
def build_cython_extensions() -> None:
1315
# Flag to enable Cython code generation during install / build. This is
@@ -27,6 +29,7 @@ def build_cython_extensions() -> None:
2729
# Not so nice. We need the random/lib library from numpy
2830
library_dirs=[os.path.join(np.get_include(), "..", "..", "random", "lib")],
2931
libraries=["npyrandom"],
32+
define_macros=MACROS, # type: ignore
3033
),
3134
]
3235

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cynetdiff"
3-
version = "0.1.16"
3+
version = "0.1.17"
44
description = "A fast network diffusion library"
55
authors = ["Eliot W. Robson <[email protected]>"]
66
license = "MIT"
@@ -90,8 +90,6 @@ ignore_missing_imports = true
9090

9191
[tool.pytest.ini_options]
9292
testpaths = "tests"
93-
# Don't need warmup iterations because benchmark is already an average.
94-
benchmark_warmups = 0
9593

9694
[tool.ruff]
9795
line-length = 120

0 commit comments

Comments
 (0)