Skip to content

Commit 01eaaf2

Browse files
fix project.license SetuptoolsDeprecationWarning (#127)
* fix project.license SetuptoolsDeprecationWarning * bump setuptools requirement to >=77.0 for modern PEP 639 fields * update replay files license field to use SPDX name * use SPDX-compliant identifier for proprietary licenses Co-authored-by: Copilot <[email protected]> * bump setuptools requirement to ≥ 77.0.3 to support license-files structure --------- Co-authored-by: Copilot <[email protected]>
1 parent fb525b1 commit 01eaaf2

File tree

6 files changed

+17
-20
lines changed

6 files changed

+17
-20
lines changed

.github/replay-files/v2/template-reactless.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"package_name": "streamlit-custom-component",
77
"import_name": "my_component",
88
"description": "Streamlit component that allows you to do X",
9-
"open_source_license": "MIT license",
9+
"open_source_license": "MIT",
1010
"framework": "Pure Typescript"
1111
}
1212
}

.github/replay-files/v2/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"package_name": "streamlit-custom-component",
77
"import_name": "my_component",
88
"description": "Streamlit component that allows you to do X",
9-
"open_source_license": "MIT license",
9+
"open_source_license": "MIT",
1010
"framework": "React + Typescript"
1111
}
1212
}

cookiecutter/v2/cookiecutter.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"import_name": "{{ cookiecutter.package_name.lower().replace('-', '_') }}",
77
"description": "Streamlit component that allows you to do X",
88
"open_source_license": [
9-
"MIT license",
10-
"BSD license",
11-
"ISC license",
12-
"Apache Software License 2.0",
13-
"GNU General Public License v3",
14-
"Not open source"
9+
"MIT",
10+
"BSD-3-Clause",
11+
"ISC",
12+
"Apache-2.0",
13+
"GPL-3.0-or-later",
14+
"LicenseRef-Proprietary"
1515
],
1616
"framework": [
1717
"React + Typescript",

cookiecutter/v2/{{ cookiecutter.package_name }}/pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[build-system]
2-
requires = ["setuptools>=61.0", "wheel"]
2+
requires = ["setuptools>=77.0.3", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "{{ cookiecutter.package_name }}"
77
version = "0.0.1"
88
description = "{{ cookiecutter.description }}"
99
readme = "README.md"
10+
license = "{{ cookiecutter.open_source_license }}"
11+
license-files = ["LICENSE"]
1012
requires-python = ">=3.10"
1113
authors = [{ name = "{{ cookiecutter.author_name }}", email = "{{ cookiecutter.author_email }}" }]
1214
dependencies = ["streamlit >= 1.51"]
@@ -21,9 +23,6 @@ devel = [
2123
"pytest-rerunfailures==12.0",
2224
]
2325

24-
[project.license]
25-
file = "LICENSE"
26-
2726
[tool.setuptools.packages.find]
2827
include = ["{{ cookiecutter.import_name }}*"]
2928

templates/v2/template-reactless/pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[build-system]
2-
requires = ["setuptools>=61.0", "wheel"]
2+
requires = ["setuptools>=77.0.3", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "streamlit-custom-component"
77
version = "0.0.1"
88
description = "Streamlit component that allows you to do X"
99
readme = "README.md"
10+
license = "MIT"
11+
license-files = ["LICENSE"]
1012
requires-python = ">=3.10"
1113
authors = [{ name = "John Smith", email = "[email protected]" }]
1214
dependencies = ["streamlit >= 1.51"]
@@ -21,9 +23,6 @@ devel = [
2123
"pytest-rerunfailures==12.0",
2224
]
2325

24-
[project.license]
25-
file = "LICENSE"
26-
2726
[tool.setuptools.packages.find]
2827
include = ["my_component*"]
2928

templates/v2/template/pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[build-system]
2-
requires = ["setuptools>=61.0", "wheel"]
2+
requires = ["setuptools>=77.0.3", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "streamlit-custom-component"
77
version = "0.0.1"
88
description = "Streamlit component that allows you to do X"
99
readme = "README.md"
10+
license = "MIT"
11+
license-files = ["LICENSE"]
1012
requires-python = ">=3.10"
1113
authors = [{ name = "John Smith", email = "[email protected]" }]
1214
dependencies = ["streamlit >= 1.51"]
@@ -21,9 +23,6 @@ devel = [
2123
"pytest-rerunfailures==12.0",
2224
]
2325

24-
[project.license]
25-
file = "LICENSE"
26-
2726
[tool.setuptools.packages.find]
2827
include = ["my_component*"]
2928

0 commit comments

Comments
 (0)