Skip to content

Conversation

@BelpHegoR17
Copy link
Contributor

Summary

This updates the commitizen_cz_template to follow newer Python packaging conventions:

  • migrate metadata to pyproject.toml
  • remove setup.py in favor of pyproject-only packaging
  • move the generated module to a src/ layout

Note on __init__.py

The previously added __init__.py is removed as part of this change.
With the new src/cz_*.py layout, entry points resolve from the installed module under src/, making __init__.py unnecessary.

Related to commitizen-tools/commitizen#1709

Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to change the files in https://github.com/commitizen-tools/commitizen_cz_template/tree/master/%7B%7Bcookiecutter.cz_name%7D%7D

also this should be categorized as a feature instead of a doc

[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["setuptools>=61"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need setuptools

Copy link
Contributor Author

@BelpHegoR17 BelpHegoR17 Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do i replace it uv_build ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds like a good idea

@BelpHegoR17
Copy link
Contributor Author

I think we need to change the files in https://github.com/commitizen-tools/commitizen_cz_template/tree/master/%7B%7Bcookiecutter.cz_name%7D%7D

which files we need to change ?

@BelpHegoR17 BelpHegoR17 changed the title docs: update cz_template feat: update cz_template Jan 8, 2026
@Lee-W
Copy link
Member

Lee-W commented Jan 12, 2026

I think we need to change the files in master/%7B%7Bcookiecutter.cz_name%7D%7D

which files we need to change ?

pyproject.toml and setup.py and etc. please take a look at how cookie-cutter works and you'll have a better idea. Thanks!

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