Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

chore: consolidate package metadata into pyproject.toml (PEP 621)

未关闭
#471 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@erdemtuna 已经在做这个了。

开始于 2026年4月7日。

  • #473 来自 @erdemtuna —— 未关闭

评估

难度
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 内容生成。

描述

do not stale

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:

  1. Move package discovery logic into pyproject.toml via a [tool.setuptools.packages.find] section
  2. Simplify setup.py to just from setuptools import setup; setup()
  3. Update build-system.requires in pyproject.toml to setuptools>=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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Adyen/adyen-python-api-library 的其他 Issue

查看 Adyen/adyen-python-api-library 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。