Merge pull request #2 from christianbaumann/main
Add comprehensive test suite (270+ tests across 14 files) - Bayesian network primitives (25 tests) - fingerprint sampler (55 tests) - Profile dataclass + pin system (43 tests) - configure_proxy decision table (24 tests) - Windows + platform-agnostic prefs (27 tests) - CLI / download gap coverage (17 tests) - Multi-module integration (12 tests) - E2e launcher lifecycle (9 tests) - launcher / headless / async_api (32 tests) - Linux-specific prefs / headless (16 tests) - Linux tar.gz download (4 tests) - Linux integration pipeline (3 tests) - Linux launcher e2e (4 tests) - pytest markers + shared conftest Resolves conflicts in pyproject.toml, test_prefs.py, test_proxy.py by keeping the upstream additions and merging with the previous wheel-build fix. 323 tests pass on Windows; 14 e2e tests deselected by default (require patched Firefox binary).
This commit is contained in:
+54
-48
@@ -1,48 +1,54 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "invisible-playwright"
|
||||
version = "0.1.0"
|
||||
description = "Playwright wrapper for a patched Firefox with deterministic stealth profile."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
license = "MIT"
|
||||
authors = [{ name = "feder-cr", email = "85809106+feder-cr@users.noreply.github.com" }]
|
||||
keywords = ["playwright", "firefox", "stealth", "anti-detect", "automation"]
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
]
|
||||
dependencies = [
|
||||
"playwright>=1.40",
|
||||
"platformdirs>=4",
|
||||
"requests>=2.31",
|
||||
"tqdm>=4.66",
|
||||
"pywin32>=306; sys_platform == 'win32'",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
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]
|
||||
invisible-playwright = "invisible_playwright.cli:main"
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/feder-cr/invisible_playwright"
|
||||
Issues = "https://github.com/feder-cr/invisible_playwright/issues"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/invisible_playwright"]
|
||||
|
||||
[tool.hatch.build.targets.sdist]
|
||||
include = ["src/invisible_playwright", "tests", "README.md", "LICENSE", "pyproject.toml"]
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "invisible-playwright"
|
||||
version = "0.1.0"
|
||||
description = "Playwright wrapper for a patched Firefox with deterministic stealth profile."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
license = "MIT"
|
||||
authors = [{ name = "feder-cr", email = "85809106+feder-cr@users.noreply.github.com" }]
|
||||
keywords = ["playwright", "firefox", "stealth", "anti-detect", "automation"]
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
]
|
||||
dependencies = [
|
||||
"playwright>=1.40",
|
||||
"platformdirs>=4",
|
||||
"requests>=2.31",
|
||||
"tqdm>=4.66",
|
||||
"pywin32>=306; sys_platform == 'win32'",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["pytest>=7", "pytest-mock>=3", "responses>=0.24", "build>=1"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
markers = [
|
||||
"unit: pure-logic tests, no I/O or external deps",
|
||||
"integration: multi-module tests, no browser",
|
||||
"e2e: requires patched Firefox binary and display",
|
||||
"slow: tests that build the wheel — opt-in only",
|
||||
"linux_only: tests that require Linux platform",
|
||||
]
|
||||
addopts = "-m 'not slow and not e2e'"
|
||||
|
||||
[project.scripts]
|
||||
invisible-playwright = "invisible_playwright.cli:main"
|
||||
|
||||
[project.urls]
|
||||
Homepage = "https://github.com/feder-cr/invisible_playwright"
|
||||
Issues = "https://github.com/feder-cr/invisible_playwright/issues"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
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