From d9a805c8a7e9e53b708833434dfe8088179d018f Mon Sep 17 00:00:00 2001 From: "Faruk D." Date: Wed, 28 Aug 2024 11:27:34 +0200 Subject: [PATCH 1/3] allow uppercase in package name --- copier/questions/essential.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copier/questions/essential.yml b/copier/questions/essential.yml index 54fe971f..20a85c2e 100644 --- a/copier/questions/essential.yml +++ b/copier/questions/essential.yml @@ -5,7 +5,7 @@ package_name: placeholder: my_python_package help: Enter the name of the Python package. validator: >- - {% if not (package_name | regex_search('^[a-z][a-z0-9\_]+$')) %} + {% if not (package_name | regex_search('^[A-Za-z][A-Za-z0-9\_]+$')) %} Package name must start with a letter, followed one or more letters, digits or underscores all lowercase {% endif %} version: From 383c80acf9f899e3011b6448c8de8ede7e960d23 Mon Sep 17 00:00:00 2001 From: "Faruk D." Date: Wed, 28 Aug 2024 11:31:07 +0200 Subject: [PATCH 2/3] update the changelog --- CHANGELOG.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6eed046..7dfaa144 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ * Make online documentation optional [#476](https://github.com/NLeSC/python-template/pull/476) ### Changed +* Allow uppercase in package name [#613](https://github.com/NLeSC/python-template/pull/613) * next_steps.md is shown as a copier message [#609](https://github.com/NLeSC/python-template/pull/609) * Change the default profile to 'recommended' [#598](https://github.com/NLeSC/python-template/pull/598) * Updated the user documentation (README.md) of the template [#569](https://github.com/NLeSC/python-template/pull/569) @@ -33,7 +34,6 @@ Released on August 15, 2024 ### Added - * Added Python 3.12 support [#356](https://github.com/NLeSC/python-template/issues/356) * Template unit tests for documentation generation, linting and version bumping * Docstring for function @@ -42,7 +42,6 @@ Released on August 15, 2024 * Added new 'docs' section in extra dependencies [#317](https://github.com/NLeSC/python-template/issues/317) ### Changed - * Made copier configuration more modular [#529](https://github.com/NLeSC/python-template/pull/529) * pre-commit script is optional ([#457](https://github.com/NLeSC/python-template/issues/457)) * CHANGELOG.md is now optional ([#462](https://github.com/NLeSC/python-template/issues/462)) From c42546afceb4d18384c692d0ab1bedbee2f1cbcb Mon Sep 17 00:00:00 2001 From: "Faruk D." Date: Wed, 28 Aug 2024 11:33:29 +0200 Subject: [PATCH 3/3] move changelog entries to correct section --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dfaa144..5756eded 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ * Make contributing guidelines optional [#465](https://github.com/NLeSC/python-template/pull/465) * Make developer documentation optional [#467](https://github.com/NLeSC/python-template/pull/541) * Make Code of Conduct optional [#464](https://github.com/NLeSC/python-template/pull/530) +* CHANGELOG.md is now optional ([#462](https://github.com/NLeSC/python-template/issues/462)) +* pre-commit script is optional ([#457](https://github.com/NLeSC/python-template/issues/457)) * New YAML files for copier questions [#529](https://github.com/NLeSC/python-template/pull/529) * Make zenodo next step instructions optional [#520](https://github.com/NLeSC/python-template/pull/520) * Make SonarCloud optional [#515](https://github.com/NLeSC/python-template/pull/515) @@ -17,6 +19,7 @@ * Make online documentation optional [#476](https://github.com/NLeSC/python-template/pull/476) ### Changed +* Made copier configuration more modular [#529](https://github.com/NLeSC/python-template/pull/529) * Allow uppercase in package name [#613](https://github.com/NLeSC/python-template/pull/613) * next_steps.md is shown as a copier message [#609](https://github.com/NLeSC/python-template/pull/609) * Change the default profile to 'recommended' [#598](https://github.com/NLeSC/python-template/pull/598) @@ -42,9 +45,6 @@ Released on August 15, 2024 * Added new 'docs' section in extra dependencies [#317](https://github.com/NLeSC/python-template/issues/317) ### Changed -* Made copier configuration more modular [#529](https://github.com/NLeSC/python-template/pull/529) -* pre-commit script is optional ([#457](https://github.com/NLeSC/python-template/issues/457)) -* CHANGELOG.md is now optional ([#462](https://github.com/NLeSC/python-template/issues/462)) * Moved to src/ based layout for generated packages * Moved from setup.cfg/.py to pyproject.toml [#351](https://github.com/NLeSC/python-template/issues/351) * Moved from prospector to ruff [#336](https://github.com/NLeSC/python-template/issues/336)