-
-
Notifications
You must be signed in to change notification settings - Fork 106
Migrate from setup.py to pyproject.toml for uv compatibility #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Create pyproject.toml with project metadata, dependencies, and build config - Add dependency-groups for dev (pytest, cogapp, pytest-mock) and docs - Use hatchling as build backend - Remove obsolete setup.py and Pipfile
- Switch build backend from hatchling to uv_build - Set homepage to shot-scraper.datasette.io
- Update requires-python to >=3.10 - Use correct [tool.uv.build-backend] section for flat layout - Add version constraint to uv_build (>=0.9.18,<0.10.0)
|
Claude pointed out that we are running on
But the Playwright cache uses the Linux path convention: shot-scraper/.github/workflows/test.yml Lines 19 to 23 in 159187c
I don't see why that would cause the tests to pause like this though. Trying Ubuntu anyway. |
|
I tried using my new skill for the conversion: https://github.com/simonw/skills/blob/e953363f5708fbf6ddddd27e0ea10aaec3f1311f/setup-to-pyproject/SKILL.md It didn't work great though: https://gistpreview.github.io/?f3290331ec6340757ceb8c2a853bdb95/index.html |
* Fix accessibility command for Playwright 1.57+ Playwright 1.57.0 removed `page.accessibility.snapshot()` after 3 years of deprecation. This updates the accessibility command to use the new `locator.aria_snapshot()` API instead. Note: The output format has changed due to the new API returning a different accessibility tree structure (using semantic landmark roles like banner, main, contentinfo, navigation). * -3.9, +3.14 * Enable accessibilty tests again Refs #186 (comment) --------- https://gistpreview.github.io/?f8ce6bdb7ee606c6eac20a9b1357c7e1/index.html

📚 Documentation preview 📚: https://shot-scraper--186.org.readthedocs.build/en/186/