Skip to content

Commit 36b0968

Browse files
committed
WIP
1 parent 49b39d7 commit 36b0968

File tree

5 files changed

+11
-19
lines changed

5 files changed

+11
-19
lines changed

.coveragerc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/Tests.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ jobs:
3939

4040
- name: Upload coverage report to codecov
4141
if: matrix.os == 'ubuntu-24.04' && matrix.python == '3.14'
42-
<<<<<<< HEAD
4342
uses: codecov/codecov-action@v5
44-
=======
45-
uses: codecov/codecov-action@v4
46-
>>>>>>> 89f9199 (Add support for Python 3.14 and upgrade dependencies)
4743
with:
4844
fail_ci_if_error: true
4945
token: ${{ secrets.CODECOV_TOKEN }}

pyproject.toml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ libzim = [
118118
[tool.cibuildwheel]
119119
build = "*"
120120
# disabling PyPy due to 2 failing tests
121-
skip = "pp* *win32*"
121+
# disabling free-threaded builds (cp313t, cp314t) as module is not compatible
122+
skip = "pp* *win32* cp313t-* cp314t-*"
122123

123124
test-requires = ["pytest"]
124125
test-command = "py.test {project}/tests/"
@@ -309,21 +310,19 @@ minversion = "7.3"
309310
testpaths = ["tests"]
310311
pythonpath = ["."]
311312

312-
[tool.coverage]
313-
plugins = "Cython.Coverage"
314-
315-
[tool.coverage.paths]
316-
libzim = ["libzim"]
317-
tests = ["tests"]
318-
319313
[tool.coverage.run]
320-
source_pkgs = ["libzim"]
314+
plugins = ["Cython.Coverage"]
315+
source = ["libzim"]
321316
branch = true
322317
parallel = true
323318
omit = [
324319
"libzim/__about__.py",
325320
]
326321

322+
[tool.coverage.paths]
323+
libzim = ["libzim"]
324+
tests = ["tests"]
325+
327326
[tool.coverage.report]
328327
exclude_lines = [
329328
"no cov",

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,11 +389,11 @@ def can_sign_apple(self) -> bool:
389389

390390
def get_cython_extension() -> list[Extension]:
391391
define_macros: list[tuple[str, str | None]] = []
392-
compiler_directives = {"language_level": "3"}
392+
compiler_directives: dict[str, str | bool] = {"language_level": "3"}
393393

394394
if config.profiling:
395395
define_macros += [("CYTHON_TRACE", "1"), ("CYTHON_TRACE_NOGIL", "1")]
396-
compiler_directives.update(linetrace="true")
396+
compiler_directives["linetrace"] = True
397397

398398
include_dirs: list[str] = []
399399
library_dirs: list[str] = []

tasks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def test(ctx: Context, args: str = ""):
3636
@task(optional=["args"], help={"args": "pytest additional arguments"})
3737
def test_cov(ctx: Context, args: str = ""):
3838
"""run test vith coverage"""
39+
build_ext(ctx)
3940
ctx.run(f"coverage run -m pytest {args}", pty=use_pty)
4041

4142

0 commit comments

Comments
 (0)