Skip to content

Commit cbc9889

Browse files
committed
Give up on namespace packages.
This didn't work right because referencing isn't one, given it contains an __init__.py. Nonsense... Just do the simpler thing and live with the slight ugliness, this is all temporary.
1 parent 5156b6c commit cbc9889

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

noxfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
ROOT = Path(__file__).parent
88
PYPROJECT = ROOT / "pyproject.toml"
99
DOCS = ROOT / "docs"
10-
PACKAGE = ROOT / "referencing"
10+
PACKAGE = ROOT / "referencing_loaders"
1111

1212
REQUIREMENTS = dict(
1313
docs=DOCS / "requirements.txt",

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,4 @@ docstring-quotes = "double"
134134
[tool.ruff.per-file-ignores]
135135
"noxfile.py" = ["ANN", "D100"]
136136
"docs/*" = ["ANN", "D"]
137-
"referencing/tests/*" = ["ANN", "D", "RUF012"]
137+
"referencing_loaders/tests/*" = ["ANN", "D", "RUF012"]
File renamed without changes.
File renamed without changes.

referencing/tests/test_loaders.py renamed to referencing_loaders/tests/test_loaders.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import json
22

3-
from referencing import Registry, loaders
3+
from referencing import Registry
44
from referencing.jsonschema import EMPTY_REGISTRY
55

6+
import referencing_loaders as loaders
7+
68

79
def test_absolute_internally_identified(tmp_path):
810
root_path, root = tmp_path / "schema.json", {

0 commit comments

Comments
 (0)