Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: python3-editables #6761

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packagelist
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ protonvpn-nm-lib
pulsar-deb
pycharm-community-bin
python3-anyascii
python3-editables
python3-flit-core
python3-fvs
python3-gbinder-deb
Expand Down
18 changes: 18 additions & 0 deletions packages/python3-editables/.SRCINFO
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
source = python3-editables::git+https://github.com/pfmoore/editables#commit=2331418af764ef203959327354335c431978e70d
sha256sums = SKIP

pkgname = python3-editables
35 changes: 35 additions & 0 deletions packages/python3-editables/python3-editables.pacscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
pkgname=python3-editables
gives=python3-editables
pkgver=0.5
pkgrel=5
Xdavius marked this conversation as resolved.
Show resolved Hide resolved
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}")
Xdavius marked this conversation as resolved.
Show resolved Hide resolved
sha256sums=('SKIP')
maintainer=("xdavius <[email protected]>")

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])")
Xdavius marked this conversation as resolved.
Show resolved Hide resolved
install -d "${pkgdir}/usr/share/licenses/${_pkgname}"
Xdavius marked this conversation as resolved.
Show resolved Hide resolved
}
19 changes: 19 additions & 0 deletions srclist
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
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
Expand Down
Loading