diff options
-rw-r--r-- | meta/recipes-devtools/python/python3-wheel/0001-Backport-pyproject.toml-from-flit-backend-branch.patch | 100 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-wheel_0.37.1.bb | 16 |
2 files changed, 114 insertions, 2 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 @@ | |||
1 | From f00dd220346773bc088d403847ee7f06f2b4c30a Mon Sep 17 00:00:00 2001 | ||
2 | From: Tim Orling <tim.orling@konsulko.com> | ||
3 | Date: Fri, 18 Feb 2022 11:09:16 -0800 | ||
4 | Subject: [PATCH] Backport pyproject.toml from flit-backend branch | ||
5 | |||
6 | This allows us to bootstrap wheels and PEP-517 packaging. | ||
7 | |||
8 | Upstream-Status: Backport from flit-backend branch | ||
9 | https://raw.githubusercontent.com/pypa/wheel/4f6ba78fede38a8d9e35a14e38377a121033afb3/pyproject.toml | ||
10 | |||
11 | Signed-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 | |||
17 | diff --git a/pyproject.toml b/pyproject.toml | ||
18 | new file mode 100644 | ||
19 | index 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 | ||
diff --git a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb index 6c7a31db9e..c7354c9d98 100644 --- a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb +++ b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb | |||
@@ -6,7 +6,19 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=10;endline=10;md5=8227180126797a01 | |||
6 | 6 | ||
7 | SRC_URI[sha256sum] = "e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4" | 7 | SRC_URI[sha256sum] = "e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4" |
8 | 8 | ||
9 | inherit pypi setuptools3 | 9 | inherit flit_core pypi setuptools3-base |
10 | 10 | ||
11 | BBCLASSEXTEND = "native" | 11 | SRC_URI += " file://0001-Backport-pyproject.toml-from-flit-backend-branch.patch" |
12 | |||
13 | DEPENDS:remove:class-native = "python3-pip-native" | ||
14 | |||
15 | do_install:class-native () { | ||
16 | # We need to bootstrap python3-wheel-native | ||
17 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} | ||
18 | PYPA_WHEEL="${B}/dist/${PYPI_PACKAGE}-${PV}-*.whl" | ||
19 | unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || \ | ||
20 | bbfatal_log "Failed to install" | ||
21 | } | ||
22 | |||
23 | BBCLASSEXTEND = "native nativesdk" | ||
12 | 24 | ||