14
0
forked from pool/python-radon
Files
python-radon/add-scripts-to-pyproject.toml.patch
Steve Kowalik a9c6246890 - Update to 6.0.1:
* Prevent tomllib error when the `toml` module is not available
  * Add support for `match` pattern in Python 3.10+, by @DolajoCZ: #227
  * Fix typo in Markdown export, reported by @huornlmj: #231
  * Remove unnecessary "future" dependency, by @mgorny: #234
  * Add `pyproject.toml` support, by @ajslater: #236
  * Allow Mando v0.7.1, by @ajslater: #237
  * Fix HCHarvester JSON results format, by @benabel: #240
- Use pyproject macros due to the switch to poetry.
- Add patch add-scripts-to-pyproject.toml.patch, make sure the CLI tool
  is built.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-radon?expand=0&rev=28
2023-09-01 04:46:32 +00:00

26 lines
731 B
Diff

From d88d9f5651aab064b5535e3b33d923771dcceeea Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Fri, 1 Sep 2023 14:37:06 +1000
Subject: [PATCH] Add radon CLI script to pyproject.toml
The pyproject.toml is missing the tool.poetry.scripts section, which
means that builds that rely only on pyproject.toml will not install it.
---
pyproject.toml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pyproject.toml b/pyproject.toml
index 0e869cf..c25f1bd 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -26,6 +26,9 @@ argparse = "*"
nbformat = "*"
tox = "^4.4.7"
+[tool.poetry.scripts]
+radon = "radon:main"
+
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"