From a23a9810ddf2f870c3740d8fd1c5b93a7c47774d Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 6 Dec 2023 14:25:25 +0100 Subject: [PATCH] fix pytest11 entrypoint, add wip scripts --- pyproject.toml | 19 +++++++++++++++---- pytest_abra/demo.py | 1 + 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 pytest_abra/demo.py diff --git a/pyproject.toml b/pyproject.toml index d7492d4..9fafad8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,16 +25,27 @@ dependencies = [ "icecream", ] -[project.scripts] -pytest11 = "pytest_abra:pytest_abra" +[project.entry_points] +pytest11 = [ + "pytest_abra = pytest_abra.pytest_abra", +] -[tool.setuptools] -package-dir = {"" = ""} +[project.scripts] +abrademo = "pytest_abra:demo" [build-system] requires = ["hatchling"] build-backend = "hatchling.build" +[tool.hatch.build] +include = [ + "pytest_abra/*.py", +] +exclude = [ + "*.json", +] + + [tool.ruff] line-length = 120 target-version = "py311" diff --git a/pytest_abra/demo.py b/pytest_abra/demo.py new file mode 100644 index 0000000..0ece3c2 --- /dev/null +++ b/pytest_abra/demo.py @@ -0,0 +1 @@ +print("wooooorking")