Skip to content

Migrate to pyproject.toml, remove setup.py, update package initialization, rename build script#524

Merged
ppizarror merged 5 commits into
ppizarror:masterfrom
JaskRendix:toml
Mar 13, 2026
Merged

Migrate to pyproject.toml, remove setup.py, update package initialization, rename build script#524
ppizarror merged 5 commits into
ppizarror:masterfrom
JaskRendix:toml

Conversation

@JaskRendix

@JaskRendix JaskRendix commented Mar 10, 2026

Copy link
Copy Markdown
Collaborator

PR updates the project to use modern packaging standards. The legacy setup.py file has been removed and replaced with pyproject.toml. All metadata previously defined in setup.py has been moved into the new configuration file, including project information, dependencies, optional dependencies, entry points, and dynamic version handling.

The init has been updated to load metadata through importlib.metadata and to provide fallback values when running from a local checkout. The file keeps the original public API and conditional imports while removing setup‑related logic.

The previous build.py script has been renamed to build_package.py to avoid conflicts with the standard build module. The script still supports building and uploading distributions. The project can now be built either through the script:

python build_package.py pip or directly with the standard command python -m build

Once uploads are fully verified, the build_package.py script can be removed if desired, since the standard build and upload commands cover the same functionality.

Comment thread pygame_menu/__init__.py Fixed
Comment thread pygame_menu/__init__.py Fixed
Comment thread pygame_menu/__init__.py Fixed
Comment thread pygame_menu/__init__.py Fixed
@JaskRendix
JaskRendix marked this pull request as ready for review March 13, 2026 10:32
@ppizarror

Copy link
Copy Markdown
Owner

LGTM. Thanks

@ppizarror
ppizarror merged commit 90e4a58 into ppizarror:master Mar 13, 2026
9 of 10 checks passed
@JaskRendix
JaskRendix deleted the toml branch March 13, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants