chore: consolidate package metadata into pyproject.toml (PEP 621)
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 72/100
- Issue 类型
- 重构
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- python
- 领域
- build-system
调研方向
首先比较 setup.py 和 pyproject.toml 中的元数据与包发现配置,然后检查针对 [tool.setuptools.packages.find] 和 build-system 提出的更改。完成的标准是:pyproject.toml 是包元数据的唯一来源,setup.py 仅委托给 setuptools,并且保留 Adyen 包,同时排除测试。
由索引模型根据 Issue 内容生成。
描述
Context
Raised as a follow-up from PR #468.
Currently, package metadata (version, dependencies, etc.) is duplicated across setup.py and pyproject.toml, which led to the inconsistency fixed in PR #468 where pydantic>=2.0 was missing from setup.py.
Proposed Change
Consolidate all package metadata into pyproject.toml as the single source of truth, following modern Python packaging standards (PEP 621).
Steps:
- Move package discovery logic into
pyproject.tomlvia a[tool.setuptools.packages.find]section - Simplify
setup.pyto justfrom setuptools import setup; setup() - Update
build-system.requiresinpyproject.tomltosetuptools>=61.0.0
Example configuration:
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
[tool.setuptools.packages.find]
include = ["Adyen*"]
exclude = ["tests", "tests.*"]
Benefit
Prevents metadata from becoming out of sync in the future.
- 主要语言
- Python
- 星标
- 67
- 派生
- 51
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Adyen/adyen-python-api-library 的其他 Issue
-
[Bug] api_*_version override has no effect on PAL-based service URLs可能已有人在做 @cobanfurkanx 于 22 天前认领。 未关闭Bug do not stale
难度 2/5 1-3 小时 新手友好度 75/100
-
Feature stale
难度 4/5 3-5 天 新手友好度 45/100
Adyen/adyen-python-api-library#487 · 2 条评论 · 1 个 reaction ·
-
[Test] Add baseUrl environment tests to all service test files可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭do not stale Test
难度 4/5 3-5 天 新手友好度 55/100
-
[Bug]: Unknown properties return None可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭do not stale
难度 2/5 1-3 小时 新手友好度 48/100
Adyen/adyen-python-api-library#397 · 2 条评论 ·
-
do not stale Feature
难度 5/5 一周以上 新手友好度 35/100
Adyen/adyen-python-api-library#395 · 1 个 reaction ·
查看 Adyen/adyen-python-api-library 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
[oblt-aw][autodoc] Document obs-aw-automerge contract and fix automerge doc inconsistencies可能已有人在做 @github-actions 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
admission-deferred priority: medium status: ready work-class: scoped
难度 2/5 1-3 小时 新手友好度 70/100
melodic-software/claude-code-plugins#10887 · 4 条评论 ·
维护者通常 1 天内回复
-
backend bug good first issue
难度 2/5 1-3 小时 新手友好度 70/100
PoCInnovation/Distribox#255 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
google/langextract#598 ·
维护者通常 1 天内回复