fix(build): remove redundant force-include that caused duplicate wheel entries (PyPI reject), add pytest slow marker

This commit is contained in:
feder-cr
2026-05-16 10:39:39 -07:00
parent b42dc31456
commit c60a1891b8
+7 -4
View File
@@ -28,7 +28,11 @@ dependencies = [
] ]
[project.optional-dependencies] [project.optional-dependencies]
dev = ["pytest>=7", "pytest-mock>=3", "responses>=0.24"] dev = ["pytest>=7", "pytest-mock>=3", "responses>=0.24", "build>=1"]
[tool.pytest.ini_options]
markers = ["slow: tests that build the wheel — opt-in only"]
addopts = "-m 'not slow'"
[project.scripts] [project.scripts]
invisible-playwright = "invisible_playwright.cli:main" invisible-playwright = "invisible_playwright.cli:main"
@@ -40,6 +44,5 @@ Issues = "https://github.com/feder-cr/invisible_playwright/issues"
[tool.hatch.build.targets.wheel] [tool.hatch.build.targets.wheel]
packages = ["src/invisible_playwright"] packages = ["src/invisible_playwright"]
[tool.hatch.build.targets.wheel.force-include] [tool.hatch.build.targets.sdist]
"src/invisible_playwright/data" = "invisible_playwright/data" include = ["src/invisible_playwright", "tests", "README.md", "LICENSE", "pyproject.toml"]
"src/invisible_playwright/_fpforge/data" = "invisible_playwright/_fpforge/data"