Skip to content

Feat/poetry 2.1 compatibility#95

Open
tbrambor wants to merge 3 commits into
py-pkgs:mainfrom
tbrambor:feat/poetry-2.1-compatibility
Open

Feat/poetry 2.1 compatibility#95
tbrambor wants to merge 3 commits into
py-pkgs:mainfrom
tbrambor:feat/poetry-2.1-compatibility

Conversation

@tbrambor
Copy link
Copy Markdown

Changes

  • Added new [project] section to pyproject template
  • Migrated metadata fields to [project] section with updated object formats
  • Added dev dependency groups with pytest and pytest-cov
  • Updated semantic release to use project.version
  • Updated Poetry installation instructions to use pipx
  • Replaced deprecated --dev flag with --group dev

Note: This retains backward compatibility. The older pyproject.toml bits could be removed eventually but this allows prior users to update without breaking changes.

Testing

  • Template generates successfully
  • Poetry check validates configuration
  • Package builds and installs correctly

Closes #93

- Update [project] section following PyPA standards (PEP 621)
- Migrate metadata fields (name, version, description, authors, license, readme)
- Update authors/license formats to object structures
- Add requires-python and dependencies fields
- Include dev dependency groups with pytest and pytest-cov
- Update semantic release to use project.version
- Maintain backward compatibility with existing [tool.poetry] section
@tbrambor
Copy link
Copy Markdown
Author

@TomasBeuzen @ttimbers Is this project no longer being maintained?

@ttimbers
Copy link
Copy Markdown
Contributor

Apologies! I am on sabbatical and working a bit slowly. I will review this now.

@ttimbers
Copy link
Copy Markdown
Contributor

This all LGTM, but it requires I make related changes to our Python packages book. I will put together a PR that does that and merge these together at the same time.

@TomasBeuzen
Copy link
Copy Markdown
Collaborator

TomasBeuzen commented Nov 13, 2025

Thanks for the PR @tbrambor, appreciate your contribution, and apologies from me for the delayed response also, admittedly open-source work is a lower-priority item in life at the moment but glad to see people are still using the material, it definitely provides motivation to pursue an update 😄

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.

pyproject.toml template is outdated

3 participants