installable package (#9)
* turn repo into installable package (pip install -e .) * add hatchling build packend * call it pytest-abra * add pytest entrypoint, so that it gets loaded automatically if installed (and pytest is run) * make fixtures optional, so that pytest can still be used in other context * add cli script -> you can now directly run "pytest-abra" in console Reviewed-on: local-it-infrastructure/e2e_tests#9 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
This commit is contained in:
parent
4c5a470a70
commit
8685688698
33 changed files with 294 additions and 210 deletions
|
|
@ -1,18 +1,50 @@
|
|||
[project]
|
||||
name = "abratest"
|
||||
name = "pytest-abra"
|
||||
description = "A pytest plugin to test instances of abra recipes"
|
||||
authors = [{name = "Local-IT e.V."}]
|
||||
readme = "README.md"
|
||||
version = "0.2.0"
|
||||
requires-python = "~=3.11"
|
||||
requires-python = ">=3.10"
|
||||
classifiers = [
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Framework :: Pytest",
|
||||
]
|
||||
dependencies = [
|
||||
"pytest == 7.4.3",
|
||||
"playwright == 1.40",
|
||||
"pytest-html == 4.1.1",
|
||||
"pytest-playwright == 0.4.3",
|
||||
"python-dotenv == 1.0.0",
|
||||
"loguru == 0.7.2",
|
||||
"beautifulsoup4 == 4.12.2",
|
||||
"imbox == 0.9.8",
|
||||
"hatchling == 1.18.0",
|
||||
"icecream",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = [
|
||||
"ruff >= 0.1.7",
|
||||
[project.entry_points]
|
||||
pytest11 = [
|
||||
"pytest_abra = pytest_abra.pytest_abra",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
abratest = "pytest_abra.cli:run"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build]
|
||||
include = [
|
||||
"pytest_abra/*.py",
|
||||
]
|
||||
exclude = [
|
||||
"*.json",
|
||||
]
|
||||
|
||||
[tool.setuptools]
|
||||
package-dir = {"" = "abratest"}
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 120
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue