From 95718991f8964b09e3374498284abf679882fa06 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Wed, 18 Mar 2026 18:34:11 +0800 Subject: [PATCH] build: add project metadata and restructure dependency groups Add authors, readme, license, and project URLs to pyproject.toml. Move build deps out of the default dependencies list into named groups (build, lint, test, dev) so each tool group can be installed independently. uv.lock updated to reflect the new group structure. Co-Authored-By: Claude --- pyproject.toml | 7 +++++++ uv.lock | 26 ++++++++++++++++++++------ 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 100d8f1..7c04fec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,9 +2,16 @@ name = "awesome-python" version = "0.1.0" description = "An opinionated list of awesome Python frameworks, libraries, software and resources." +authors = [{ name = "Vinta Chen", email = "vinta.chen@gmail.com" }] +readme = "README.md" +license = "MIT" requires-python = ">=3.13" dependencies = [] +[project.urls] +Homepage = "https://awesome-python.com/" +Repository = "https://github.com/vinta/awesome-python" + [dependency-groups] build = ["httpx==0.28.1", "jinja2==3.1.6", "markdown-it-py==4.0.0"] lint = ["ruff==0.15.6"] diff --git a/uv.lock b/uv.lock index 8a4cdfe..ecff729 100644 --- a/uv.lock +++ b/uv.lock @@ -18,32 +18,46 @@ wheels = [ name = "awesome-python" version = "0.1.0" source = { virtual = "." } -dependencies = [ + +[package.dev-dependencies] +build = [ { name = "httpx" }, { name = "jinja2" }, { name = "markdown-it-py" }, ] - -[package.dev-dependencies] dev = [ + { name = "httpx" }, + { name = "jinja2" }, + { name = "markdown-it-py" }, { name = "pytest" }, { name = "ruff" }, { name = "watchdog" }, ] +lint = [ + { name = "ruff" }, +] +test = [ + { name = "pytest" }, +] [package.metadata] -requires-dist = [ + +[package.metadata.requires-dev] +build = [ { name = "httpx", specifier = "==0.28.1" }, { name = "jinja2", specifier = "==3.1.6" }, { name = "markdown-it-py", specifier = "==4.0.0" }, ] - -[package.metadata.requires-dev] dev = [ + { name = "httpx", specifier = "==0.28.1" }, + { name = "jinja2", specifier = "==3.1.6" }, + { name = "markdown-it-py", specifier = "==4.0.0" }, { name = "pytest", specifier = "==9.0.2" }, { name = "ruff", specifier = "==0.15.6" }, { name = "watchdog", specifier = "==6.0.0" }, ] +lint = [{ name = "ruff", specifier = "==0.15.6" }] +test = [{ name = "pytest", specifier = "==9.0.2" }] [[package]] name = "certifi"