MNT: Decouple and Extract `Function` Class to Standalone Repository
维护者通常 3 天内回复
@Gui-FernandesBR 已经在做这个了。
开始于 2026年8月14日。
评估
这个 Issue 还没有评估数据。
描述
Rationale
The Function class has evolved into a powerful, general-purpose tool for handling 1D/ND interpolation, algebra, FFTs, and plotting. It is mathematically robust and useful outside the context of rocketry simulations.
Currently, a user who wants to use Function for general engineering tasks must install the entire RocketPy library (and its heavy dependencies). By extracting Function into its own repository and PyPI package:
- Broader Usage: It can be used in other scientific projects without the RocketPy overhead.
- Cleaner Architecture: RocketPy becomes a consumer of this new package, adhering to the "Separation of Concerns" principle.
- Independent Lifecycle: The
Functionclass can be versioned, tested, and released independently of RocketPy's flight physics engine.
Task List
This migration should be performed in phases to minimize disruption.
Phase 1: Setup New Infrastructure
- Create a new repository within the RocketPy-Team organization (suggested name:
function-toolboxorpylib-function). - Port the
Functionclass code,utilities.py(if relevant), and associated unit tests to the new repository. - Set up a dedicated CI/CD pipeline (GitHub Actions) for the new repo.
- Create
pyproject.toml/setup.pyand publish the initial version to TestPyPI and eventually PyPI.
Phase 2: Integration
- Add the new package as a dependency in RocketPy's
pyproject.toml. - Refactor RocketPy codebase to import
Functionfrom the new external package instead ofrocketpy.Function. - Run the full RocketPy test suite to ensure no behavior has changed (Regression Testing).
Phase 3: Cleanup
- Deprecate/Remove the internal
Functionclass file from the main RocketPy repository. - Update documentation to point users to the new repository for
Functionspecific details.
Final Comments
- Naming: We need to decide on a PyPI package name that isn't taken (e.g.,
rocketpy-functionormath-function). - Breaking Change: This is a breaking change for users who import
Function. We should consider a transition period wherefrom rocketpy import Functionwraps the new library with a deprecation warning before being removed in v2.0. - Git History: Ideally, we should try to preserve the git commit history of the
Functionclass when moving it to the new repo (usinggit subtreeorfilter-branch).
- 主要语言
- Python
- 星标
- 1.1k
- 派生
- 280
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 24
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
RocketPy-Team/RocketPy 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
RocketPy-Team/RocketPy#1255 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
RocketPy-Team/RocketPy#1241 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
RocketPy-Team/RocketPy#1202 ·
维护者通常 3 天内回复
-
Monte Carlo test fixtures write their logs into the working directory可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
RocketPy-Team/RocketPy#1189 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
RocketPy-Team/RocketPy#1171 · 1 条评论 ·
维护者通常 3 天内回复
查看 RocketPy-Team/RocketPy 的全部 Issue
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭available documentation good first issue
难度 1/5 1-3 小时 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
JTHCode/secretguard#24 ·
维护者通常 1 天内回复
-
area: middleware documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
维护者通常 1 天内回复