Daniel Bermond pushed to branch main at Arch Linux / Packaging / Packages / 
xonsh


Commits:
3a0dacbc by Daniel Bermond at 2024-12-18T10:38:08-03:00
Update description

- - - - -
66f845e4 by Daniel Bermond at 2024-12-18T10:39:04-03:00
Use SPDX license identifier

- - - - -
a3083071 by Daniel Bermond at 2024-12-18T10:46:57-03:00
Cosmetic changes

- - - - -
aa3cda2a by Daniel Bermond at 2024-12-18T10:47:43-03:00
Update maintainer

- - - - -
0f999d16 by Daniel Bermond at 2024-12-18T11:00:35-03:00
Use python-build and python-install for building

This follows the 'Python Package Guidelines'[1] in the Arch Wiki.

[1] https://wiki.archlinux.org/title/Python_package_guidelines

- - - - -
89a4367e by Daniel Bermond at 2024-12-18T11:54:05-03:00
Update dependencies

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- xonsh.install


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,17 +1,24 @@
 pkgbase = xonsh
-       pkgdesc = Python-powered, cross-platform, Unix-gazing shell
+       pkgdesc = A python-powered shell. Full-featured and cross-platform.
        pkgver = 0.18.3
        pkgrel = 2
        url = https://xon.sh/
        install = xonsh.install
        arch = any
-       license = BSD
+       license = BSD-2-Clause
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
        makedepends = python-wheel
        depends = python
+       depends = python-distro
+       depends = python-packaging
        depends = python-ply
-       depends = python-setproctitle
-       optdepends = python-prompt_toolkit: support for 
SHELL_TYPE=prompt_toolkit
+       depends = python-pyperclip
+       depends = python-ujson
+       optdepends = python-prompt_toolkit: for SHELL_TYPE=prompt_toolkit
+       optdepends = python-pygments: for syntax highlighting and colorization
+       optdepends = python-setproctitle: for updating process title to match 
Xonsh arguments
        source = 
https://github.com/xonsh/xonsh/archive/0.18.3/xonsh-0.18.3.tar.gz
        sha256sums = 
1fdf6a61fcfafa052883cd387c430d9cb87c6764bc253a6727bb5161163d3929
 


=====================================
PKGBUILD
=====================================
@@ -1,21 +1,39 @@
-# Maintainer: Jerome Leclanche <jer...@leclan.ch>
+# Maintainer : Daniel Bermond <dberm...@archlinux.org>
+# Contributor: Jerome Leclanche <jer...@leclan.ch>
 
 pkgname=xonsh
 pkgver=0.18.3
 pkgrel=2
-pkgdesc="Python-powered, cross-platform, Unix-gazing shell"
-url="https://xon.sh/";
-arch=("any")
-license=("BSD")
-depends=("python" "python-ply" "python-setproctitle")
-optdepends=("python-prompt_toolkit: support for SHELL_TYPE=prompt_toolkit")
-makedepends=("python-setuptools" "python-wheel")
-source=("https://github.com/xonsh/xonsh/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
+pkgdesc='A python-powered shell. Full-featured and cross-platform.'
+url='https://xon.sh/'
+arch=('any')
+license=('BSD-2-Clause')
+depends=(
+    'python'
+    'python-distro'
+    'python-packaging'
+    'python-ply'
+    'python-pyperclip'
+    'python-ujson')
+optdepends=(
+    'python-prompt_toolkit: for SHELL_TYPE=prompt_toolkit'
+    'python-pygments: for syntax highlighting and colorization'
+    'python-setproctitle: for updating process title to match Xonsh arguments')
+makedepends=(
+    'python-build'
+    'python-installer'
+    'python-setuptools'
+    'python-wheel')
 install=xonsh.install
+source=("https://github.com/xonsh/xonsh/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
 sha256sums=('1fdf6a61fcfafa052883cd387c430d9cb87c6764bc253a6727bb5161163d3929')
 
+build() {
+    cd "${pkgname}-${pkgver}"
+    python -m build --wheel --no-isolation
+}
+
 package() {
-  cd $pkgname-$pkgver
-  python setup.py install --root="$pkgdir"
-  install -Dm644 license "$pkgdir/usr/share/licenses/$pkgname/license"
+    python -m installer --destdir="$pkgdir" "${pkgname}-${pkgver}/dist"/*.whl
+    install -D -m644 "${pkgname}-${pkgver}/license" 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }


=====================================
xonsh.install
=====================================
@@ -1,11 +1,11 @@
 post_install() {
-       grep -x /usr/bin/xonsh /etc/shells >/dev/null || echo /usr/bin/xonsh >> 
/etc/shells
+    grep -x /usr/bin/xonsh /etc/shells >/dev/null || echo /usr/bin/xonsh >> 
/etc/shells
 }
 
 post_remove() {
-       sed -i "/^\/usr\/bin\/xonsh$/d" /etc/shells
+    sed -i '|^/usr/bin|xonsh$|d' /etc/shells
 }
 
 post_upgrade() {
-       post_install
+    post_install
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/xonsh/-/compare/c1f53997c52fc78f5c111089751ab55d82ebb62e...89a4367e3c3294f9544930a19bc3152c47de451e

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/xonsh/-/compare/c1f53997c52fc78f5c111089751ab55d82ebb62e...89a4367e3c3294f9544930a19bc3152c47de451e
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to