Skip to content

Add Python package build infrastructure with pyproject.toml#64

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/create-python-package-structure
Draft

Add Python package build infrastructure with pyproject.toml#64
Copilot wants to merge 3 commits intomainfrom
copilot/create-python-package-structure

Conversation

Copy link

Copilot AI commented Jan 14, 2026

The CONTRIBUTING.md referenced python -m build but the required pyproject.toml was missing and excluded from git, preventing package builds.

Changes

  • Created pyproject.toml: PEP 517/518 compliant build configuration with package metadata, dependencies, and setuptools backend
  • Updated .gitignore: Removed pyproject.toml exclusion, added build/ directory
  • Created BUILD_INSTRUCTIONS.md: Complete build workflow covering prerequisites, build steps, PyPI upload, version updates, and troubleshooting
  • Created QUICKSTART_BUILD.md: TL;DR reference for common build tasks
  • Updated CONTRIBUTING.md: Reference new docs, update version file path from setup.py to pyproject.toml

Building the package

pip install --upgrade pip build twine
python -m build

Produces dist/planetprofile-3.0.0-py3-none-any.whl and .tar.gz source distribution.

Version updates

Update version in both:

  • pyproject.toml (line 6)
  • PlanetProfile/Utilities/PPverNum.txt
Original prompt

I want to make this codebase into a python package. The Contributing.MD has a description but it says to run python -m build but this doesnt exist as a file. Read through the codebase and give me instructions on how to build a package


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 14, 2026 00:23
…ctions

Co-authored-by: Chang-Scott <190667263+Chang-Scott@users.noreply.github.com>
Co-authored-by: Chang-Scott <190667263+Chang-Scott@users.noreply.github.com>
Copilot AI changed the title [WIP] Add instructions for building Python package Add Python package build infrastructure with pyproject.toml Jan 14, 2026
Copilot AI requested a review from Chang-Scott January 14, 2026 00:26
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.

2 participants