Skip to content

Conversation

@jakob1379
Copy link
Collaborator

This commit introduces a Copier template to streamline project setup, which in turn can generate the main branch

The template includes:

  • copier.yml: Defines project configuration options such as project_name, module_name, description, user_name, user_email, python_version, and include_dockerfile.
  • Renamed and templated pyproject.toml to pyproject.toml.jinja to dynamically set project metadata, based on user input.
  • Renamed module directory postmodern to {{ module_name }} and its contents (init.py, main.py, adder.py, cli.py, hello.py, server.py) to allow for customizable module names.
  • Renamed test_import.py to test_import.py.jinja for templating.

The python_version field now includes validation to ensure it follows the X, X.Y, or X.Y.Z format.

This commit introduces a Copier template to streamline project setup, which in turn can generate the main branch

The template includes:

 - copier.yml: Defines project configuration options such as project_name, module_name, description, user_name, user_email, python_version, and include_dockerfile.
 - Renamed and templated pyproject.toml to pyproject.toml.jinja to dynamically set project metadata, based on user input.
 - Renamed module directory postmodern to {{ module_name }} and its contents (__init__.py, __main__.py, adder.py, cli.py, hello.py, server.py) to allow for customizable module names.
 - Renamed test_import.py to test_import.py.jinja for templating.

The python_version field now includes validation to ensure it follows the X.Y.Z format.
@jakob1379 jakob1379 merged commit a6da1af into carderne:template Jul 14, 2025
0 of 2 checks passed
@carderne
Copy link
Owner

Nice!

@carderne
Copy link
Owner

@jakob1379 what about adding a CONTRIBUTING.md file or similar (that makes it clear that it is about the repo and can be deleted by people using the repo) about how to do the Cookiecutter stuff? Because I have no idea :)

@jakob1379
Copy link
Collaborator Author

jakob1379 commented Jul 15, 2025

I'll make sure to add one in a jiffy

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