forked from pool/python-radon
- 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
This commit is contained in:
25
add-scripts-to-pyproject.toml.patch
Normal file
25
add-scripts-to-pyproject.toml.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user