Skip to content

Commit

Permalink
Merge pull request #33 from jwbargsten/fix-tests-in-dist
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbargsten authored Dec 18, 2023
2 parents cdee7ab + af73510 commit 8b51f4a
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exclude .*
prune .github
include Makefile
recursive-include pytest_archon *.txt
include pytest_archon/py.typed
recursive-include src/pytest_archon *.txt
include src/pytest_archon/py.typed
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ test: $(VENV)/init ## run pytest
. $(VENV)/bin/activate && pytest -rA -vvs --log-level INFO

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

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

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

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

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

clean:
rm -rf dist/ build/ *.egg-info
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ dev = [

[tool.setuptools_scm]

[tool.setuptools.packages.find]
namespaces = true

[tool.setuptools.package-data]
"pytest_archon.assets" = ["*.txt"]

Expand All @@ -58,9 +55,10 @@ profile = "black"
line_length = 110

[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
pythonpath = [ "src", "tests" ]

[project.entry-points.pytest11]
arch = "pytest_archon.plugin"

[tool.coverage.paths]
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 comments on commit 8b51f4a

Please sign in to comment.