You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Feat: Add license options in prompt
* Feat: Extend supported licenses: GPL-3, MIT, BSD-3, Apace-2.0
* set default license to MIT
* Chore: Delete obsolete/nan files
* Docs: Update with new extended license support
* Fix: Delete leftover licenses dir - post gen
* Feat: Add tests support license options; modernize type hints
* Chore: update CHANGELOG + AUTHORS
* Refact: Use SPDX as lookup in setup
* Chore: Remove deprecated classifiers
* Fix: Set license w/ SPDX - PEP639
* Add AUTHORS to pyproject.toml license files
* Update {{cookiecutter.repo_name}}/devtools/conda-envs/test_env.yaml
* use conda instead of mamba in {{cookiecutter._ci_name}}.yaml (see MDAnalysis/install-mdanalysis#11 )
---------
Co-authored-by: Oliver Beckstein <orbeckst@gmail.com>
Copy file name to clipboardExpand all lines: cookiecutter.json
+20-1Lines changed: 20 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,25 @@
17
17
"n"
18
18
],
19
19
"template_analysis_class": "Class name to template (e.g. {{ cookiecutter.project_name.title().replace(' ', '').replace('-', '').replace('_', '') }} ). Press Enter to skip including analysis templates",
20
+
"license": [
21
+
"MIT License",
22
+
"GNU General Public License v3 or later (GPL-3.0+)",
23
+
"BSD 3-Clause License",
24
+
"Apache License 2.0"
25
+
],
26
+
"_license_SPDX_identifiers": {
27
+
"MIT License":"MIT",
28
+
"GNU General Public License v3 or later (GPL-3.0+)":"GPL-3.0-or-later",
Copy file name to clipboardExpand all lines: hooks/pre_gen_project.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,8 @@
39
39
40
40
=== LICENSE ===
41
41
42
-
{{ cookiecutter.update({"open_source_license": 'GNU Public License v2+'}) }}
42
+
{% set _license_trimmed = cookiecutter.license | trim %}
43
+
{{ cookiecutter.update({"license": cookiecutter._license_SPDX_identifiers[_license_trimmed] if _license_trimmed in cookiecutter._license_SPDX_identifiers else _license_trimmed}) }}
0 commit comments