Skip to content

Update cz template page #1709

Description

@bearomorphism

looks like we'll need to update the template as well...

Originally posted by @Lee-W in #1657 (comment)

Activity

  1. added theissue type on Dec 11, 2025
  2. Stoiicc commented on Jan 3, 2026

    @Stoiicc
    Contributor

    I’ve opened a PR to update the cz_template so that the generated cz directory is a proper Python package:

    commitizen-tools/commitizen_cz_template#6

    This aligns the template with the customization docs introduced in #1657.

  3. Lee-W commented on Jan 4, 2026

    @Lee-W
    Member

    some more details might need more care but we have our first step. Thanks!

  4. Stoiicc commented on Jan 4, 2026

    @Stoiicc
    Contributor

    If you think there are specific follow-ups needed, I’d be happy to take a look.

  5. Lee-W commented on Jan 4, 2026

    @Lee-W
    Member

    Many things there are outdated. e.g., poetry 1.x (poetry >= 2.2 or uv are better) and not using pep 735 compatible spec and etc. basically we'd better update the project to follow newer python conventions

  6. Stoiicc commented on Jan 4, 2026

    @Stoiicc
    Contributor

    That makes sense. If you’d like, I can help with follow-up updates to the template , but I wanted to check first before starting anything. Let me know what you’d prefer.

  7. Lee-W commented on Jan 5, 2026

    @Lee-W
    Member

    let's try uv since commitizen itself is using uv

  8. woile commented on Jan 5, 2026

    @woile
    Member

    As Lee pointed out, in a summary it would be:

    1. update pyproject.toml to match latest standard. This plugin is a good start: https://github.com/zyf722/poetry-plugin-migrate
    2. replace setup.py in favor of pyproject.toml
    3. Create a project folder, like src/cz_{{cookiecutter.cz_name}}.py insted of being at the top
    4. Correct the new pyproject.toml based on the previous changes
  9. Stoiicc commented on Jan 7, 2026

    @Stoiicc
    Contributor

    I’ve opened a PR (commitizen-tools/commitizen_cz_template#7) that updates the cz template based on the discussion (pyproject-only config, src layout, updated entry point).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions