From c60a1891b873301ec4f899af9a41cdec1319ddf8 Mon Sep 17 00:00:00 2001 From: feder-cr <85809106+feder-cr@users.noreply.github.com> Date: Sat, 16 May 2026 10:39:39 -0700 Subject: [PATCH] fix(build): remove redundant force-include that caused duplicate wheel entries (PyPI reject), add pytest slow marker --- pyproject.toml | 93 ++++++++++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 45 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8c0b3db..c2fa8f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,45 +1,48 @@ -[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"] - -[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.wheel.force-include] -"src/invisible_playwright/data" = "invisible_playwright/data" -"src/invisible_playwright/_fpforge/data" = "invisible_playwright/_fpforge/data" +[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"]