From cf6fc312516efad2b1424d8aade7145ff1327ee5 Mon Sep 17 00:00:00 2001 From: Kye Shi Date: Tue, 27 Apr 2021 12:11:03 -0700 Subject: [PATCH 1/2] New package: python3-poetry-core-1.0.3 --- srcpkgs/python3-poetry-core/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-poetry-core/template diff --git a/srcpkgs/python3-poetry-core/template b/srcpkgs/python3-poetry-core/template new file mode 100644 index 000000000000..0366110f4cc0 --- /dev/null +++ b/srcpkgs/python3-poetry-core/template @@ -0,0 +1,19 @@ +# Template file for 'python3-poetry-core' +pkgname=python3-poetry-core +version=1.0.3 +revision=1 +wrksrc="poetry-core-${version}" +build_style="python3-pep517" +make_install_target="poetry_core-${version}-*-*-*.whl" +hostmakedepends="python3-wheel" +depends="python3" +short_desc="Poetry PEP 517 Build Backend & Core Utilities" +maintainer="Kye Shi " +license="MIT" +homepage="https://github.com/python-poetry/poetry-core" +distfiles="https://github.com/python-poetry/poetry-core/archive/refs/tags/${version}.tar.gz" +checksum="b5a9f8284c685c638796a322ea868843da5e2094c664436e44061e6bcea367ea" + +post_install() { + vlicense LICENSE +} From 9f9540de3b05e27e4684302490ba9b4229c86e51 Mon Sep 17 00:00:00 2001 From: Kye Shi Date: Tue, 27 Apr 2021 12:50:44 -0700 Subject: [PATCH 2/2] Manual.md: add instructions for Poetry-built Python packages --- Manual.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Manual.md b/Manual.md index 73cd9088f9bc..bf515d5185e9 100644 --- a/Manual.md +++ b/Manual.md @@ -1546,6 +1546,12 @@ dependencies at build time. If you notice warnings about `EasyInstall` deprecati present in `${wrksrc}/.eggs` after building the package, then those packages should be added to `hostmakedepends`. +Python packages that use [Poetry](https://github.com/python-poetry/poetry-core) +as a build backend should specify the `python3-pep517` build style, add +`python3-poetry-core` to `hostmakedepends` and approximately map +`tool.poetry.dependencies` entries in `pyproject.toml` to `depends` in the +template. + The following variables may influence how the python packages are built and configured at post-install time: