Skip to content

Commit a8c8cca

Browse files
committed
Migrate from setup.py to pyproject.toml for uv compatibility
- 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
1 parent 8435690 commit a8c8cca

File tree

3 files changed

+48
-48
lines changed

3 files changed

+48
-48
lines changed

Pipfile

Lines changed: 0 additions & 11 deletions
This file was deleted.

pyproject.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
[project]
2+
name = "shot-scraper"
3+
version = "1.8"
4+
description = "A command-line utility for taking automated screenshots of websites"
5+
readme = "README.md"
6+
requires-python = ">=3.7"
7+
license = "Apache-2.0"
8+
authors = [
9+
{ name = "Simon Willison" }
10+
]
11+
12+
classifiers = [
13+
"License :: OSI Approved :: Apache Software License",
14+
]
15+
16+
dependencies = [
17+
"click",
18+
"PyYAML",
19+
"playwright",
20+
"click-default-group",
21+
]
22+
23+
[project.urls]
24+
Homepage = "https://github.com/simonw/shot-scraper"
25+
Issues = "https://github.com/simonw/shot-scraper/issues"
26+
CI = "https://github.com/simonw/shot-scraper/actions"
27+
Changelog = "https://github.com/simonw/shot-scraper/releases"
28+
29+
[project.scripts]
30+
shot-scraper = "shot_scraper.cli:cli"
31+
32+
[dependency-groups]
33+
dev = [
34+
"pytest",
35+
"cogapp",
36+
"pytest-mock",
37+
]
38+
docs = [
39+
"furo==2023.9.10",
40+
"sphinx-autobuild",
41+
"sphinx-copybutton",
42+
"myst-parser",
43+
"cogapp",
44+
]
45+
46+
[build-system]
47+
requires = ["hatchling"]
48+
build-backend = "hatchling.build"

setup.py

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)