summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2022-02-22 11:16:30 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-25 15:07:50 +0000
commitf4c43d7921e51b6d0700d4cc7e257b9932bd4e30 (patch)
treec30424908212038092de68ea089838751fa16ab8 /meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch
parent29d6a3ae348422a6a286fb08ed1c4c722a9f6a25 (diff)
downloadpoky-f4c43d7921e51b6d0700d4cc7e257b9932bd4e30.tar.gz
python3-wheel: inherit flit_core
Backport pyproject.toml from flit-backend branch. Inherit flit_core class to build Inherit pip_install_wheel to install wheels for target We need to bootstrap python3-wheel-native in order to have bdist_wheel available to python3-setuptools-native and the refactored setuptools3.bbclass. Simply unzip the wheel into PYTHON_SITEPACKAGES_DIR for class-native. [YOCTO #14638] (From OE-Core rev: 764d0c2e079b3511afe03deadf3ec922e41b89aa) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch')
-rw-r--r--meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch100
1 files changed, 100 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch b/meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch
new file mode 100644
index 0000000000..023de0e6a8
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch
@@ -0,0 +1,100 @@
1From f00dd220346773bc088d403847ee7f06f2b4c30a Mon Sep 17 00:00:00 2001
2From: Tim Orling <tim.orling@konsulko.com>
3Date: Fri, 18 Feb 2022 11:09:16 -0800
4Subject: [PATCH] Backport pyproject.toml from flit-backend branch
5
6This allows us to bootstrap wheels and PEP-517 packaging.
7
8Upstream-Status: Backport from flit-backend branch
9https://raw.githubusercontent.com/pypa/wheel/4f6ba78fede38a8d9e35a14e38377a121033afb3/pyproject.toml
10
11Signed-off-by: Tim Orling <tim.orling@konsulko.com>
12---
13 pyproject.toml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++
14 1 file changed, 78 insertions(+)
15 create mode 100644 pyproject.toml
16
17diff --git a/pyproject.toml b/pyproject.toml
18new file mode 100644
19index 0000000..749b8de
20--- /dev/null
21+++ b/pyproject.toml
22@@ -0,0 +1,78 @@
23+[build-system]
24+requires = ["flit_core >=3.2,<4"]
25+build-backend = "flit_core.buildapi"
26+
27+[project]
28+name = "wheel"
29+description = "A built-package format for Python"
30+readme = "README.rst"
31+classifiers = [
32+ "Development Status :: 5 - Production/Stable",
33+ "Intended Audience :: Developers",
34+ "Topic :: System :: Archiving :: Packaging",
35+ "License :: OSI Approved :: MIT License",
36+ "Programming Language :: Python",
37+ "Programming Language :: Python :: 3 :: Only",
38+ "Programming Language :: Python :: 3.7",
39+ "Programming Language :: Python :: 3.8",
40+ "Programming Language :: Python :: 3.9",
41+ "Programming Language :: Python :: 3.10"
42+]
43+authors = [{name = "Daniel Holth", email = "dholth@fastmail.fm"}]
44+maintainers = [{name = "Alex Grönholm", email = "alex.gronholm@nextday.fi"}]
45+keywords = ["wheel", "packaging"]
46+license = {file = "LICENSE.txt"}
47+requires-python = ">=3.7"
48+dependencies = [
49+ "setuptools >= 45.2.0"
50+]
51+dynamic = ["version"]
52+
53+[project.urls]
54+Documentation = "https://wheel.readthedocs.io/"
55+Changelog = "https://wheel.readthedocs.io/en/stable/news.html"
56+"Issue Tracker" = "https://github.com/pypa/wheel/issues"
57+
58+[project.scripts]
59+wheel = "wheel.cli:main"
60+
61+[project.entry-points."distutils.commands"]
62+bdist_wheel = "wheel.bdist_wheel:bdist_wheel"
63+
64+[project.optional-dependencies]
65+test = [
66+ "pytest >= 3.0.0"
67+]
68+
69+[tool.flit.sdist]
70+exclude = [
71+ ".cirrus.yml",
72+ ".github/*",
73+ ".gitignore",
74+ ".pre-commit-config.yaml",
75+ ".readthedocs.yml"
76+]
77+
78+[tool.black]
79+target-version = ['py37']
80+extend-exclude = '''
81+^/src/wheel/vendored/
82+'''
83+
84+[tool.isort]
85+src_paths = ["src"]
86+profile = "black"
87+skip_gitignore = true
88+
89+[tool.flake8]
90+max-line-length = 88
91+
92+[tool.pytest.ini_options]
93+testpaths = "tests"
94+
95+[tool.coverage.run]
96+source = ["wheel"]
97+omit = ["*/vendored/*"]
98+
99+[tool.coverage.report]
100+show_missing = true