mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
29d6a3ae34
commit
f4c43d7921
@@ -0,0 +1,100 @@
|
||||
From f00dd220346773bc088d403847ee7f06f2b4c30a Mon Sep 17 00:00:00 2001
|
||||
From: Tim Orling <tim.orling@konsulko.com>
|
||||
Date: Fri, 18 Feb 2022 11:09:16 -0800
|
||||
Subject: [PATCH] Backport pyproject.toml from flit-backend branch
|
||||
|
||||
This allows us to bootstrap wheels and PEP-517 packaging.
|
||||
|
||||
Upstream-Status: Backport from flit-backend branch
|
||||
https://raw.githubusercontent.com/pypa/wheel/4f6ba78fede38a8d9e35a14e38377a121033afb3/pyproject.toml
|
||||
|
||||
Signed-off-by: Tim Orling <tim.orling@konsulko.com>
|
||||
---
|
||||
pyproject.toml | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 78 insertions(+)
|
||||
create mode 100644 pyproject.toml
|
||||
|
||||
diff --git a/pyproject.toml b/pyproject.toml
|
||||
new file mode 100644
|
||||
index 0000000..749b8de
|
||||
--- /dev/null
|
||||
+++ b/pyproject.toml
|
||||
@@ -0,0 +1,78 @@
|
||||
+[build-system]
|
||||
+requires = ["flit_core >=3.2,<4"]
|
||||
+build-backend = "flit_core.buildapi"
|
||||
+
|
||||
+[project]
|
||||
+name = "wheel"
|
||||
+description = "A built-package format for Python"
|
||||
+readme = "README.rst"
|
||||
+classifiers = [
|
||||
+ "Development Status :: 5 - Production/Stable",
|
||||
+ "Intended Audience :: Developers",
|
||||
+ "Topic :: System :: Archiving :: Packaging",
|
||||
+ "License :: OSI Approved :: MIT License",
|
||||
+ "Programming Language :: Python",
|
||||
+ "Programming Language :: Python :: 3 :: Only",
|
||||
+ "Programming Language :: Python :: 3.7",
|
||||
+ "Programming Language :: Python :: 3.8",
|
||||
+ "Programming Language :: Python :: 3.9",
|
||||
+ "Programming Language :: Python :: 3.10"
|
||||
+]
|
||||
+authors = [{name = "Daniel Holth", email = "dholth@fastmail.fm"}]
|
||||
+maintainers = [{name = "Alex Grönholm", email = "alex.gronholm@nextday.fi"}]
|
||||
+keywords = ["wheel", "packaging"]
|
||||
+license = {file = "LICENSE.txt"}
|
||||
+requires-python = ">=3.7"
|
||||
+dependencies = [
|
||||
+ "setuptools >= 45.2.0"
|
||||
+]
|
||||
+dynamic = ["version"]
|
||||
+
|
||||
+[project.urls]
|
||||
+Documentation = "https://wheel.readthedocs.io/"
|
||||
+Changelog = "https://wheel.readthedocs.io/en/stable/news.html"
|
||||
+"Issue Tracker" = "https://github.com/pypa/wheel/issues"
|
||||
+
|
||||
+[project.scripts]
|
||||
+wheel = "wheel.cli:main"
|
||||
+
|
||||
+[project.entry-points."distutils.commands"]
|
||||
+bdist_wheel = "wheel.bdist_wheel:bdist_wheel"
|
||||
+
|
||||
+[project.optional-dependencies]
|
||||
+test = [
|
||||
+ "pytest >= 3.0.0"
|
||||
+]
|
||||
+
|
||||
+[tool.flit.sdist]
|
||||
+exclude = [
|
||||
+ ".cirrus.yml",
|
||||
+ ".github/*",
|
||||
+ ".gitignore",
|
||||
+ ".pre-commit-config.yaml",
|
||||
+ ".readthedocs.yml"
|
||||
+]
|
||||
+
|
||||
+[tool.black]
|
||||
+target-version = ['py37']
|
||||
+extend-exclude = '''
|
||||
+^/src/wheel/vendored/
|
||||
+'''
|
||||
+
|
||||
+[tool.isort]
|
||||
+src_paths = ["src"]
|
||||
+profile = "black"
|
||||
+skip_gitignore = true
|
||||
+
|
||||
+[tool.flake8]
|
||||
+max-line-length = 88
|
||||
+
|
||||
+[tool.pytest.ini_options]
|
||||
+testpaths = "tests"
|
||||
+
|
||||
+[tool.coverage.run]
|
||||
+source = ["wheel"]
|
||||
+omit = ["*/vendored/*"]
|
||||
+
|
||||
+[tool.coverage.report]
|
||||
+show_missing = true
|
||||
Reference in New Issue
Block a user