Skip to content

feat: update cz_template#7

Open
Stoiicc wants to merge 1 commit intocommitizen-tools:masterfrom
Stoiicc:docs/update-cz-template-page
Open

feat: update cz_template#7
Stoiicc wants to merge 1 commit intocommitizen-tools:masterfrom
Stoiicc:docs/update-cz-template-page

Conversation

@Stoiicc
Copy link
Contributor

@Stoiicc Stoiicc commented Jan 7, 2026

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

@Stoiicc Stoiicc 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

@Stoiicc
Copy link
Contributor Author

Stoiicc commented Jan 8, 2026

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 ?

@Stoiicc Stoiicc 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