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 b6be09c09193f21c6b7866bd008de3826cfad055 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, 5 insertions(+), 1 deletion(-) diff --git a/Manual.md b/Manual.md index 73cd9088f9bc..d90158a4394d 100644 --- a/Manual.md +++ b/Manual.md @@ -1533,7 +1533,11 @@ The `python3-pep517` build style provides means to build python packages that pr definition compliant with [PEP 517](https://www.python.org/dev/peps/pep-0517/) without a traditional `setup.py` script. -Python packages that rely on `python3-setuptools` should generally map `setup_requires` +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. Python packages that rely on `python3-setuptools` should generally map `setup_requires` dependencies in `setup.py` to `hostmakedepends` in the template and `install_requires` dependencies to `depends` in the template; include `python3` in `depends` if there are no other python dependencies. If the package includes a compiled extension, the `python3-devel` packages