Skip to content

feat: update cz_template#7

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

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

Conversation

@Stoiicc

@Stoiicc Stoiicc commented Jan 7, 2026

Copy link
Copy Markdown
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

@Lee-W Lee-W left a comment

Copy link
Copy Markdown
Member

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

Comment thread pyproject.toml
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["setuptools>=61"]

Copy link
Copy Markdown
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

@Stoiicc Stoiicc Jan 8, 2026

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

Stoiicc commented Jan 8, 2026

Copy link
Copy Markdown
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 ?

@Stoiicc Stoiicc changed the title docs: update cz_template feat: update cz_template Jan 8, 2026
@Lee-W

Lee-W commented Jan 12, 2026

Copy link
Copy Markdown
Member

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