From 737b231dc880b75ffd6363e0c44d79f956d074bd Mon Sep 17 00:00:00 2001 From: xdavius Date: Tue, 17 Dec 2024 16:24:57 +0100 Subject: [PATCH 1/6] add: python3-editables --- packagelist | 1 + packages/python3-editables/.SRCINFO | 18 ++++++++++ .../python3-editables.pacscript | 35 +++++++++++++++++++ srclist | 19 ++++++++++ 4 files changed, 73 insertions(+) create mode 100644 packages/python3-editables/.SRCINFO create mode 100644 packages/python3-editables/python3-editables.pacscript diff --git a/packagelist b/packagelist index 6006d129e8..7263cbf943 100644 --- a/packagelist +++ b/packagelist @@ -447,6 +447,7 @@ protonvpn-nm-lib pulsar-deb pycharm-community-bin python3-anyascii +python3-editables python3-flit-core python3-fvs python3-gbinder-deb diff --git a/packages/python3-editables/.SRCINFO b/packages/python3-editables/.SRCINFO new file mode 100644 index 0000000000..c8837b029f --- /dev/null +++ b/packages/python3-editables/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python3-editables + gives = python3-editables + pkgver = 0.5 + pkgrel = 5 + pkgdesc = Python library for creating editable wheels + url = https://github.com/pfmoore/editables + arch = any + depends = python3 + makedepends = git + makedepends = python3-build + makedepends = python3-installer + makedepends = python3-flit-scm + license = MIT + maintainer = xdavius + source = python3-editables::git+https://github.com/pfmoore/editables#commit=2331418af764ef203959327354335c431978e70d + sha256sums = SKIP + +pkgname = python3-editables diff --git a/packages/python3-editables/python3-editables.pacscript b/packages/python3-editables/python3-editables.pacscript new file mode 100644 index 0000000000..93d03a74a6 --- /dev/null +++ b/packages/python3-editables/python3-editables.pacscript @@ -0,0 +1,35 @@ +pkgname=python3-editables +gives=python3-editables +pkgver=0.5 +pkgrel=5 +pkgdesc='Python library for creating editable wheels' +arch=('any') +url='https://github.com/pfmoore/editables' +license=('MIT') +depends=('python3') +makedepends=( + 'git' + 'python3-build' + 'python3-installer' + 'python3-flit-scm' +) +_commit='2331418af764ef203959327354335c431978e70d' +source=("${pkgname}::git+${url}#commit=${_commit}") +sha256sums=('SKIP') +maintainer=("xdavius ") + +build() { + cd "${pkgname}" + python3 -m build --wheel --no-isolation +} + +package() { + cd "${pkgname}" + + python3 -m installer --destdir="${pkgdir}" dist/*.whl + + # symlink license file + # shellcheck disable=SC2155 + local site_packages=$(python3 -c "import site; print(site.getsitepackages()[0])") + install -d "${pkgdir}/usr/share/licenses/${_pkgname}" +} diff --git a/srclist b/srclist index a5bf0efe22..4917d08fab 100644 --- a/srclist +++ b/srclist @@ -9021,6 +9021,25 @@ pkgbase = python3-anyascii pkgname = python3-anyascii --- +pkgbase = python3-editables + gives = python3-editables + pkgver = 0.5 + pkgrel = 5 + pkgdesc = Python library for creating editable wheels + url = https://github.com/pfmoore/editables + arch = any + depends = python3 + makedepends = git + makedepends = python3-build + makedepends = python3-installer + makedepends = python3-flit-scm + license = MIT + maintainer = xdavius + source = python3-editables::git+https://github.com/pfmoore/editables#commit=2331418af764ef203959327354335c431978e70d + sha256sums = SKIP + +pkgname = python3-editables +--- pkgbase = python3-flit-core pkgver = 3.9.0 pkgdesc = A PEP 517 build backend for packages using Flit From 1fc1446709a8743fd162d7a9997fb4b97adcbf15 Mon Sep 17 00:00:00 2001 From: Davius <66792063+Xdavius@users.noreply.github.com> Date: Sun, 22 Dec 2024 13:59:15 +0100 Subject: [PATCH 2/6] Update packages/python3-editables/python3-editables.pacscript Co-authored-by: Elsie --- packages/python3-editables/python3-editables.pacscript | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/python3-editables/python3-editables.pacscript b/packages/python3-editables/python3-editables.pacscript index 93d03a74a6..9d709d70a0 100644 --- a/packages/python3-editables/python3-editables.pacscript +++ b/packages/python3-editables/python3-editables.pacscript @@ -1,7 +1,5 @@ -pkgname=python3-editables -gives=python3-editables -pkgver=0.5 -pkgrel=5 +pkgname="python3-editables" +pkgver="0.5" pkgdesc='Python library for creating editable wheels' arch=('any') url='https://github.com/pfmoore/editables' From b5355e0710214620c86882433f14809b878aa1e2 Mon Sep 17 00:00:00 2001 From: Davius <66792063+Xdavius@users.noreply.github.com> Date: Sun, 22 Dec 2024 13:59:24 +0100 Subject: [PATCH 3/6] Update packages/python3-editables/python3-editables.pacscript Co-authored-by: Elsie --- packages/python3-editables/python3-editables.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/python3-editables/python3-editables.pacscript b/packages/python3-editables/python3-editables.pacscript index 9d709d70a0..afe11016b8 100644 --- a/packages/python3-editables/python3-editables.pacscript +++ b/packages/python3-editables/python3-editables.pacscript @@ -28,6 +28,6 @@ package() { # symlink license file # shellcheck disable=SC2155 - local site_packages=$(python3 -c "import site; print(site.getsitepackages()[0])") + local site_packages="$(python3 -c "import site; print(site.getsitepackages()[0])")" install -d "${pkgdir}/usr/share/licenses/${_pkgname}" } From 469def759992736323ab672c555dfb6cdfd90092 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 22 Dec 2024 13:01:21 +0000 Subject: [PATCH 4/6] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- packages/python3-editables/.SRCINFO | 2 -- srclist | 2 -- 2 files changed, 4 deletions(-) diff --git a/packages/python3-editables/.SRCINFO b/packages/python3-editables/.SRCINFO index c8837b029f..87a2e28fb9 100644 --- a/packages/python3-editables/.SRCINFO +++ b/packages/python3-editables/.SRCINFO @@ -1,7 +1,5 @@ pkgbase = python3-editables - gives = python3-editables pkgver = 0.5 - pkgrel = 5 pkgdesc = Python library for creating editable wheels url = https://github.com/pfmoore/editables arch = any diff --git a/srclist b/srclist index 57e0273684..25bbc93674 100644 --- a/srclist +++ b/srclist @@ -9022,9 +9022,7 @@ pkgbase = python3-anyascii pkgname = python3-anyascii --- pkgbase = python3-editables - gives = python3-editables pkgver = 0.5 - pkgrel = 5 pkgdesc = Python library for creating editable wheels url = https://github.com/pfmoore/editables arch = any From a7bb3b8a18d7b4813d8948619181d2c396449e97 Mon Sep 17 00:00:00 2001 From: xdavius Date: Sun, 22 Dec 2024 14:04:32 +0100 Subject: [PATCH 5/6] solve review --- packages/python3-editables/python3-editables.pacscript | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/python3-editables/python3-editables.pacscript b/packages/python3-editables/python3-editables.pacscript index afe11016b8..7dcaa43a4b 100644 --- a/packages/python3-editables/python3-editables.pacscript +++ b/packages/python3-editables/python3-editables.pacscript @@ -5,14 +5,9 @@ arch=('any') url='https://github.com/pfmoore/editables' license=('MIT') depends=('python3') -makedepends=( - 'git' - 'python3-build' - 'python3-installer' - 'python3-flit-scm' -) +makedepends=('git' 'python3-build' 'python3-installer' 'python3-flit-scm') _commit='2331418af764ef203959327354335c431978e70d' -source=("${pkgname}::git+${url}#commit=${_commit}") +source=("${pkgname}::git+https://github.com/pfmoore/editables#commit=${_commit}") sha256sums=('SKIP') maintainer=("xdavius ") From d2f46d9ad1aff4918a7b147dda7d14d5180d35ca Mon Sep 17 00:00:00 2001 From: xdavius Date: Sun, 22 Dec 2024 14:21:21 +0100 Subject: [PATCH 6/6] solved licences --- packages/python3-editables/python3-editables.pacscript | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/python3-editables/python3-editables.pacscript b/packages/python3-editables/python3-editables.pacscript index 7dcaa43a4b..c8141b80b4 100644 --- a/packages/python3-editables/python3-editables.pacscript +++ b/packages/python3-editables/python3-editables.pacscript @@ -18,11 +18,7 @@ build() { package() { cd "${pkgname}" - python3 -m installer --destdir="${pkgdir}" dist/*.whl + install -Dm 665 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" - # symlink license file - # shellcheck disable=SC2155 - local site_packages="$(python3 -c "import site; print(site.getsitepackages()[0])")" - install -d "${pkgdir}/usr/share/licenses/${_pkgname}" }