From c23ed5623bce716221b3eaa65bbfad576773d15f Mon Sep 17 00:00:00 2001 From: Kanishk Pachauri Date: Thu, 17 Oct 2024 19:14:39 +0530 Subject: [PATCH 1/2] refactor(build): migrate from tool.flit.metadata to project table --- pyproject.toml | 60 ++++++++++++++++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e90693b..c51870a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,19 +2,17 @@ requires = ["flit_core <4"] build-backend = "flit_core.buildapi" -[tool.flit.metadata] -module = "gidgethub" -author = "Brett Cannon" -author-email = "brett@python.org" -requires = [ - "uritemplate>=3.0.1", - "PyJWT[crypto]>=2.4.0" +[project] +name = "gidgethub" +authors = [ + {name = "Brett Cannon", email = "brett@python.org"}, ] -requires-python = ">=3.8" -license = "Apache" -keywords = "github sans-io async" description-file = "README.rst" -classifiers = ["Intended Audience :: Developers", +license = {text = "Apache"} +requires-python = ">=3.8" +keywords = ["github", "sans-io", "async"] +classifiers = [ + "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Development Status :: 5 - Production/Stable", "Programming Language :: Python :: 3 :: Only", @@ -25,22 +23,40 @@ classifiers = ["Intended Audience :: Developers", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", ] +dependencies = [ + "uritemplate>=3.0.1", + "PyJWT[crypto]>=2.4.0", +] + +[project.urls] +Documentation = "https://gidgethub.readthedocs.io" +Repository = "https://github.com/brettcannon/gidgethub" -[tool.flit.metadata.requires-extra] -test = ["importlib-resources", "pytest>=5.4.1", "pytest-asyncio", "pytest-tornasync"] -doc = ["sphinx>=4.0.0", "sphinx-rtd-theme>=0.5.2"] -# The 'dev' target should contain all dependencies listed in any extras coming -# after it to make sure that the test suite will run successfully. -dev = ["aiohttp", "black", "coverage[toml]>=5.0.3", "httpx", "mypy", "pytest-cov", - "pytest-xdist", "tornado"] +[project.optional-dependencies] +test = [ + "importlib-resources", + "pytest>=5.4.1", + "pytest-asyncio", + "pytest-tornasync", +] +doc = [ + "sphinx>=4.0.0", + "sphinx-rtd-theme>=0.5.2", +] +dev = [ + "aiohttp", + "black", + "coverage[toml]>=5.0.3", + "httpx", + "mypy", + "pytest-cov", + "pytest-xdist", + "tornado", +] aiohttp = ["aiohttp"] tornado = ["tornado"] httpx = ["httpx>=0.16.1"] -[tool.flit.metadata.urls] -Documentation = "https://gidgethub.readthedocs.io" -Repository = "https://github.com/brettcannon/gidgethub" - [tool.coverage.run] branch = true From b1c4783fb151a166f131a20d07ad0f086d07f53d Mon Sep 17 00:00:00 2001 From: Kanishk Pachauri Date: Tue, 11 Mar 2025 23:42:28 +0530 Subject: [PATCH 2/2] fix: update list of the repository. Co-authored-by: Mariatta --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c51870a..f2a2c85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ [project.urls] Documentation = "https://gidgethub.readthedocs.io" -Repository = "https://github.com/brettcannon/gidgethub" +Repository = "https://github.com/gidgethub/gidgethub" [project.optional-dependencies] test = [