[PR #81] Add pyproject.toml and reorganize sources #125

Open
opened 2026-05-07 00:18:47 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/81
Author: @frodon1
Created: 12/18/2025
Status: 🔄 Open

Base: mainHead: improve_packaging


📝 Commits (1)

  • 7f153fe Add pyproject.toml and reorganize sources

📊 Changes

35 files changed (+4983 additions, -1070 deletions)

View changed files

📝 .gitignore (+2 -0)
.python-version (+1 -0)
📝 README.md (+76 -25)
📝 main.py (+4 -112)
pyproject.toml (+27 -0)
src/f1_race_replay/__init__.py (+1 -0)
📝 src/f1_race_replay/arcade_replay.py (+16 -5)
📝 src/f1_race_replay/f1_data.py (+229 -152)
📝 src/f1_race_replay/images/controls/arrow-down.png (+0 -0)
📝 src/f1_race_replay/images/controls/arrow-left.png (+0 -0)
📝 src/f1_race_replay/images/controls/arrow-right.png (+0 -0)
📝 src/f1_race_replay/images/controls/arrow-up.png (+0 -0)
📝 src/f1_race_replay/images/controls/pause.png (+0 -0)
📝 src/f1_race_replay/images/controls/play.png (+0 -0)
📝 src/f1_race_replay/images/controls/rewind.png (+0 -0)
📝 src/f1_race_replay/images/controls/speed+.png (+0 -0)
📝 src/f1_race_replay/images/controls/speed-.png (+0 -0)
📝 src/f1_race_replay/images/tyres/0.0.png (+0 -0)
📝 src/f1_race_replay/images/tyres/1.0.png (+0 -0)
📝 src/f1_race_replay/images/tyres/2.0.png (+0 -0)

...and 15 more files

📄 Description

Hello,

This PR is purely about packaging.

The use of current method to run the code still works fine

All sources are moved in a subdirectory src/f1_race_replay to reflect common Python source organisation.
A pyproject.toml is added to add some packaging information. Specifically it adds an entry-point named f1-race-replay that can be executed when the package is installed.
The README.md file was updated with commands example when using uv.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/81 **Author:** [@frodon1](https://github.com/frodon1) **Created:** 12/18/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `improve_packaging` --- ### 📝 Commits (1) - [`7f153fe`](https://github.com/IAmTomShaw/f1-race-replay/commit/7f153feab6f68e7c7636c67aa9e5d42c1199552d) Add pyproject.toml and reorganize sources ### 📊 Changes **35 files changed** (+4983 additions, -1070 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -0) ➕ `.python-version` (+1 -0) 📝 `README.md` (+76 -25) 📝 `main.py` (+4 -112) ➕ `pyproject.toml` (+27 -0) ➕ `src/f1_race_replay/__init__.py` (+1 -0) 📝 `src/f1_race_replay/arcade_replay.py` (+16 -5) 📝 `src/f1_race_replay/f1_data.py` (+229 -152) 📝 `src/f1_race_replay/images/controls/arrow-down.png` (+0 -0) 📝 `src/f1_race_replay/images/controls/arrow-left.png` (+0 -0) 📝 `src/f1_race_replay/images/controls/arrow-right.png` (+0 -0) 📝 `src/f1_race_replay/images/controls/arrow-up.png` (+0 -0) 📝 `src/f1_race_replay/images/controls/pause.png` (+0 -0) 📝 `src/f1_race_replay/images/controls/play.png` (+0 -0) 📝 `src/f1_race_replay/images/controls/rewind.png` (+0 -0) 📝 `src/f1_race_replay/images/controls/speed+.png` (+0 -0) 📝 `src/f1_race_replay/images/controls/speed-.png` (+0 -0) 📝 `src/f1_race_replay/images/tyres/0.0.png` (+0 -0) 📝 `src/f1_race_replay/images/tyres/1.0.png` (+0 -0) 📝 `src/f1_race_replay/images/tyres/2.0.png` (+0 -0) _...and 15 more files_ </details> ### 📄 Description Hello, This PR is purely about packaging. **The use of current method to run the code still works fine** All sources are moved in a subdirectory `src/f1_race_replay` to reflect common Python source organisation. A `pyproject.toml` is added to add some packaging information. Specifically it adds an entry-point named `f1-race-replay` that can be executed when the package is installed. The README.md file was updated with commands example when using `uv`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#125
No description provided.