Skip to content

Commit 0ee6e0f

Browse files
committed
Make testing work (or check that it seems working)
Signed-off-by: Sebastian Berg <sebastianb@nvidia.com>
1 parent fbbe442 commit 0ee6e0f

13 files changed

Lines changed: 37 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
push:
77
branches:
88
- main
9+
- take2 # for testing
910

1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.ref }}
@@ -20,7 +21,6 @@ jobs:
2021
checks:
2122
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
2223
runs-on: ${{ matrix.runs-on }}
23-
needs: [pre-commit]
2424
strategy:
2525
fail-fast: false
2626
matrix:

docs/source/EXAMPLE_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../spatch/_spatch_example/README.md
1+
../../src/spatch/_spatch_example/README.md

pyproject.toml

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,43 @@
1+
[build-system]
2+
requires = ["hatchling", "hatch-vcs", "hatch-fancy-pypi-readme"]
3+
build-backend = "hatchling.build"
4+
15
[project]
26
name = "spatch"
37
authors = [
48
{name = "Jarrod Millman", email = "millman@berkeley.edu"},
59
]
610
version = "0.0.0"
711
description = "Coming soon"
12+
readme = "README.md"
13+
license = "BSD-3-Clause"
14+
requires-python = ">=3.9"
15+
dependencies = ["importlib_metadata"]
816

9-
[project.optional-dependencies]
10-
# black is used to help format autogenerated code in entry_points
11-
black = [
12-
"black",
17+
[dependency-groups]
18+
# black is used to format entry-point files
19+
backend_utils = ["black"]
20+
test = [
21+
"pytest >=6",
22+
"pytest-cov >=3",
23+
"pytest-doctestplus",
24+
{ include-group = "backend_utils" },
25+
]
26+
dev = [
27+
{ include-group = "test" },
28+
]
29+
docs = [
30+
# TODO: Fixme, this is not complete/correct yet
31+
"sphinx>=7.0",
32+
"pydata-sphinx-theme",
1333
]
1434

35+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
36+
content-type = "text/markdown"
37+
38+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
39+
path = "README.md"
40+
1541
[project.entry-points._spatch_example_backends]
1642
backend1 = 'spatch._spatch_example.entry_point'
1743
backend2 = 'spatch._spatch_example.entry_point2'
@@ -20,12 +46,13 @@ backend2 = 'spatch._spatch_example.entry_point2'
2046
doctest_plus = "enabled"
2147
testpaths = [
2248
"tests",
23-
"spatch", # for doc testing
49+
"src/spatch", # for doc testing
2450
"docs",
2551
]
52+
norecursedirs = ["src"]
2653
addopts = [
2754
"--doctest-glob=docs/source/**.md",
2855
]
2956

30-
[tool.coverage.run]
31-
include = ["spatch/*"]
57+
[tool.coverage]
58+
run.source = ["spatch"]
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)