fix(build): remove redundant force-include that caused duplicate wheel entries (PyPI reject), add pytest slow marker
This commit is contained in:
+48
-45
@@ -1,45 +1,48 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling"]
|
requires = ["hatchling"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "invisible-playwright"
|
name = "invisible-playwright"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Playwright wrapper for a patched Firefox with deterministic stealth profile."
|
description = "Playwright wrapper for a patched Firefox with deterministic stealth profile."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = [{ name = "feder-cr", email = "85809106+feder-cr@users.noreply.github.com" }]
|
authors = [{ name = "feder-cr", email = "85809106+feder-cr@users.noreply.github.com" }]
|
||||||
keywords = ["playwright", "firefox", "stealth", "anti-detect", "automation"]
|
keywords = ["playwright", "firefox", "stealth", "anti-detect", "automation"]
|
||||||
classifiers = [
|
classifiers = [
|
||||||
"Development Status :: 4 - Beta",
|
"Development Status :: 4 - Beta",
|
||||||
"Intended Audience :: Developers",
|
"Intended Audience :: Developers",
|
||||||
"License :: OSI Approved :: MIT License",
|
"License :: OSI Approved :: MIT License",
|
||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"playwright>=1.40",
|
"playwright>=1.40",
|
||||||
"platformdirs>=4",
|
"platformdirs>=4",
|
||||||
"requests>=2.31",
|
"requests>=2.31",
|
||||||
"tqdm>=4.66",
|
"tqdm>=4.66",
|
||||||
"pywin32>=306; sys_platform == 'win32'",
|
"pywin32>=306; sys_platform == 'win32'",
|
||||||
]
|
]
|
||||||
|
|
||||||
[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"]
|
||||||
|
|
||||||
[project.scripts]
|
[tool.pytest.ini_options]
|
||||||
invisible-playwright = "invisible_playwright.cli:main"
|
markers = ["slow: tests that build the wheel — opt-in only"]
|
||||||
|
addopts = "-m 'not slow'"
|
||||||
[project.urls]
|
|
||||||
Homepage = "https://github.com/feder-cr/invisible_playwright"
|
[project.scripts]
|
||||||
Issues = "https://github.com/feder-cr/invisible_playwright/issues"
|
invisible-playwright = "invisible_playwright.cli:main"
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[project.urls]
|
||||||
packages = ["src/invisible_playwright"]
|
Homepage = "https://github.com/feder-cr/invisible_playwright"
|
||||||
|
Issues = "https://github.com/feder-cr/invisible_playwright/issues"
|
||||||
[tool.hatch.build.targets.wheel.force-include]
|
|
||||||
"src/invisible_playwright/data" = "invisible_playwright/data"
|
[tool.hatch.build.targets.wheel]
|
||||||
"src/invisible_playwright/_fpforge/data" = "invisible_playwright/_fpforge/data"
|
packages = ["src/invisible_playwright"]
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.sdist]
|
||||||
|
include = ["src/invisible_playwright", "tests", "README.md", "LICENSE", "pyproject.toml"]
|
||||||
|
|||||||
Reference in New Issue
Block a user