MNT: Decouple and Extract `Function` Class to Standalone Repository
Maintainer antworten meist innerhalb von 3 Tagen
@Gui-FernandesBR arbeitet bereits daran.
Seit 14.8.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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).
- Vorherrschende Sprache
- Python
- Sterne
- 1.1k
- Forks
- 280
- Ø Merge
- 3 T. 2 Std.
- Gemergte PRs (30 T.)
- 24
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus RocketPy-Team/RocketPy
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
RocketPy-Team/RocketPy#1255 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
RocketPy-Team/RocketPy#1241 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
RocketPy-Team/RocketPy#1202 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Monte Carlo test fixtures write their logs into the working directoryEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
RocketPy-Team/RocketPy#1189 ·
Maintainer antworten meist innerhalb von 3 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
RocketPy-Team/RocketPy#1171 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 3 Tagen
Alle Issues in RocketPy-Team/RocketPy
Ähnliche Issues
-
docs(contributing): the two things that silently block a PREvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenavailable documentation good first issue
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 95/100
Nixitov/Riptide-Native#944 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
JTHCode/secretguard#24 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: middleware documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainer antworten meist innerhalb von 1 Tag