Title: Update license keys in pyproject.toml · Issue #706 · NLeSC/python-template · GitHub
Open Graph Title: Update license keys in pyproject.toml · Issue #706 · NLeSC/python-template
X Title: Update license keys in pyproject.toml · Issue #706 · NLeSC/python-template
Description: Checklist before submitting an issue I have checked the existing issues and couldn't find an issue about this bug. Issue details In the generated pyproject.toml, we currently specify: [project] license = {file = "LICENSE"} This has been ...
Open Graph Description: Checklist before submitting an issue I have checked the existing issues and couldn't find an issue about this bug. Issue details In the generated pyproject.toml, we currently specify: [project] lic...
X Description: Checklist before submitting an issue I have checked the existing issues and couldn't find an issue about this bug. Issue details In the generated pyproject.toml, we currently specify: [project]...
Opengraph URL: https://github.com/NLeSC/python-template/issues/706
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update license keys in pyproject.toml","articleBody":"## Checklist before submitting an issue\n\n- [x] I have checked the [existing issues](https://github.com/NLeSC/python-template/issues) and couldn't find an issue about this bug.\n\n## Issue details\n\nIn the generated `pyproject.toml`, we currently specify:\n```toml\n[project]\nlicense = {file = \"LICENSE\"}\n```\n\nThis has been deprecated since [PEP 639](https://peps.python.org/pep-0639/#specification) has been accepted.\nWhen building the package using `uvx --from build pyproject-build --installer uv`, this raises the following DeprecationWarning from setuptools:\n\n```\n/tmp/build-env-bjz_rxiz/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated\n!!\n\n ********************************************************************************\n Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools\u003e=77.0.0).\n\n By 2026-Feb-18, you need to update your project and remove deprecated calls\n or your builds will no longer be supported.\n\n See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.\n ********************************************************************************\n```\n\n## Solution\n\n- `license` should map to the appropriate SPDX string for the selected license\n- a new `license-files` key should be added that points to the `LICENSE` file. The `NOTICE` file should probably also be included if it is present.\n\nFor example:\n```toml\n[project]\nlicense = \"Apache-2.0\"\nlicense-files = [\"LICENSE\", \"NOTICE\"]\n```\n","author":{"url":"https://github.com/sjvrijn","@type":"Person","name":"sjvrijn"},"datePublished":"2025-12-09T00:59:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/706/python-template/issues/706"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:37b2f4bf-0e40-ee3c-e260-09452e31e29d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E488:2E308D:66E4E3:8CD01C:6982490C |
| html-safe-nonce | 98b04379fe2f283d7e0bfcc3947a0b462237c1b8d1e69ee1660cf5cdf7f7d4b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDg4OjJFMzA4RDo2NkU0RTM6OENEMDFDOjY5ODI0OTBDIiwidmlzaXRvcl9pZCI6IjgxMjI3MTUyNzM3ODM1NjA0NjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dd50baf9d9579f2735e01f7d3a575229a042443242c7fa7a3f9cf146174eec2b |
| hovercard-subject-tag | issue:3708656658 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NLeSC/python-template/706/issue_layout |
| twitter:image | https://opengraph.githubassets.com/384cfd492c42f5abff75f129ec8545941c177297bf7543cd327432fa853d6677/NLeSC/python-template/issues/706 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/384cfd492c42f5abff75f129ec8545941c177297bf7543cd327432fa853d6677/NLeSC/python-template/issues/706 |
| og:image:alt | Checklist before submitting an issue I have checked the existing issues and couldn't find an issue about this bug. Issue details In the generated pyproject.toml, we currently specify: [project] lic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sjvrijn |
| hostname | github.com |
| expected-hostname | github.com |
| None | e2ebc70d7d37443ffd1ae8f91a253417e0725a69916687ec3b823f2451fb6caa |
| turbo-cache-control | no-preview |
| go-import | github.com/NLeSC/python-template git https://github.com/NLeSC/python-template.git |
| octolytics-dimension-user_id | 1705862 |
| octolytics-dimension-user_login | NLeSC |
| octolytics-dimension-repository_id | 68704490 |
| octolytics-dimension-repository_nwo | NLeSC/python-template |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68704490 |
| octolytics-dimension-repository_network_root_nwo | NLeSC/python-template |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6241ad74f49cf194bf94dad6a72d8792f1c2ab10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width