Skip to content

Commit c35e85e

Browse files
fix: Set Development Status from component_lifecycle (#391)
This automatically sets the Python "Development Status" classifier as per the [list found here](https://pypi.org/classifiers/) based on the answer to the "component lifecycle" Copier question. [From my understanding](https://packaging.python.org/en/latest/specifications/core-metadata/) this classifier is not required, just a nice to have. So I'm not too worried about the potential for a misalignment between the `component_lifecycle` list of answers resulting in a lack of `Development Status`, but I am also open to tweaking the template to always default to "Alpha" status (as it was set to before)
1 parent cc59c86 commit c35e85e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎template/pyproject.toml.jinja‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ build-backend = "setuptools.build_meta"
55
[project]
66
name = "{{ distribution_name }}"
77
classifiers = [
8-
"Development Status :: 3 - Alpha",
9-
"License :: OSI Approved :: Apache Software License",
8+
{% if component_lifecycle=="experimental" %}"Development Status :: 3 - Alpha",
9+
{% elif component_lifecycle=="production" %}"Development Status :: 5 - Production/Stable",
10+
{% elif component_lifecycle=="deprecated" %}"Development Status :: 7 - Inactive",
11+
{% endif %}"License :: OSI Approved :: Apache Software License",
1012
"Programming Language :: Python :: 3.11",
1113
"Programming Language :: Python :: 3.12",
1214
"Programming Language :: Python :: 3.13",

0 commit comments

Comments
 (0)