Skip to content

Commit 8b51f4a

Browse files
authored
Merge pull request #33 from jwbargsten/fix-tests-in-dist
2 parents cdee7ab + af73510 commit 8b51f4a

File tree

14 files changed

+10
-12
lines changed

14 files changed

+10
-12
lines changed

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
exclude .*
22
prune .github
33
include Makefile
4-
recursive-include pytest_archon *.txt
5-
include pytest_archon/py.typed
4+
recursive-include src/pytest_archon *.txt
5+
include src/pytest_archon/py.typed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ test: $(VENV)/init ## run pytest
1111
. $(VENV)/bin/activate && pytest -rA -vvs --log-level INFO
1212

1313
cov: $(VENV)/init ## run pytest
14-
. $(VENV)/bin/activate && coverage run --source=pytest_archon --module pytest && coverage report
14+
. $(VENV)/bin/activate && coverage run --module pytest && coverage report
1515

1616
lint: $(VENV)/init ## run flake8 to check the code
17-
. $(VENV)/bin/activate && flake8 pytest_archon tests && mypy -m pytest_archon
17+
. $(VENV)/bin/activate && flake8 src/ tests/ && mypy -m pytest_archon
1818

1919
install-editable: $(VENV)/init
2020
. $(VENV)/bin/activate && $(PIP) install -e '.[dev]'
@@ -23,10 +23,10 @@ install: $(VENV)/init
2323
. $(VENV)/bin/activate && $(PIP) install '.[dev]'
2424

2525
fmt: $(VENV)/init ## run black to format the code
26-
. $(VENV)/bin/activate && black pytest_archon tests
26+
. $(VENV)/bin/activate && black src/ tests/
2727

2828
fmt-check: $(VENV)/init ## run black to format the code
29-
. $(VENV)/bin/activate && black --check pytest_archon tests
29+
. $(VENV)/bin/activate && black --check src/ tests/
3030

3131
clean:
3232
rm -rf dist/ build/ *.egg-info

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ dev = [
4444

4545
[tool.setuptools_scm]
4646

47-
[tool.setuptools.packages.find]
48-
namespaces = true
49-
5047
[tool.setuptools.package-data]
5148
"pytest_archon.assets" = ["*.txt"]
5249

@@ -58,9 +55,10 @@ profile = "black"
5855
line_length = 110
5956

6057
[tool.pytest.ini_options]
61-
addopts = [
62-
"--import-mode=importlib",
63-
]
58+
pythonpath = [ "src", "tests" ]
6459

6560
[project.entry-points.pytest11]
6661
arch = "pytest_archon.plugin"
62+
63+
[tool.coverage.paths]
64+
source = ["src"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)