Package Details: libervia-templates-hg 0.7.r338.a90baa4d3ed1-1

Git Clone URL: https://aur.archlinux.org/libervia-templates-hg.git (read-only, click to copy)
Package Base: libervia-templates-hg
Description: sat-templates is a collection of templates for Salut à Toi, the multi-frontends multi-purposes XMPP client (core). For now, it needs to be accessible in the PYTHONPATH
Upstream URL: https://salut-a-toi.org/
Licenses: AGPL3
Conflicts: sat-templates, sat-templates-hg
Provides: libervia-templates
Submitter: jnanar
Maintainer: jnanar
Last Packager: jnanar
Votes: 0
Popularity: 0.000000
First Submitted: 2021-08-29 08:03 (UTC)
Last Updated: 2021-08-29 08:03 (UTC)

Latest Comments

rakoo commented on 2025-07-09 19:54 (UTC)

The upstream way of installing is with pyproject.toml. Here's a working diff:

diff --git a/PKGBUILD b/PKGBUILD
index 6d89a85..6b28e8b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@

 pkgname=('libervia-templates-hg')
 _realname=libervia-templates
-pkgver=0.7.r338.a90baa4d3ed1
+pkgver=0.7.r411.f7a434581872
 _version=0.7
 pkgrel=1
 url="https://salut-a-toi.org/"
@@ -10,7 +10,7 @@ pkgdesc="sat-templates is a collection of templates for Salut à Toi, the multi-

 arch=('any')
 depends=('python' 'python-jinja')
-makedepends=('mercurial')
+makedepends=('mercurial' 'python-build' 'python-installer' 'python-wheel')
 conflicts=('sat-templates' 'sat-templates-hg')
 provides=('libervia-templates')
 license=('AGPL3')
@@ -23,7 +23,12 @@ pkgver() {
   printf "$_version.r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
 }

-package(){
-  cd "$srcdir/$_realname"
-  python setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1
+build() {
+    cd $_realname
+    python -m build --wheel --no-isolation
+}
+
+package() {
+    cd $_realname
+    python -m installer --destdir="$pkgdir" dist/*.whl
 }

rakoo commented on 2025-07-09 18:23 (UTC)

I have this error when building:

Traceback (most recent call last):
  File "/tmp/libervia-templates-hg/src/libervia-templates/setup.py", line 75, in <module>
    setup(**setup_info)
    ~~~~~^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/__init__.py", line 115, in setup
    return distutils.core.setup(**attrs)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 148, in setup
    _setup_distribution = dist = klass(attrs)
                                 ~~~~~^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/dist.py", line 321, in __init__
    _Distribution.__init__(self, dist_attrs)
    ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 309, in __init__
    self.finalize_options()
    ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/setuptools/dist.py", line 784, in finalize_options
    ep(self)
    ~~^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/dist.py", line 804, in _finalize_setup_keywords
    ep.load()(self, ep.name, value)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools_scm/_integration/setuptools.py", line 82, in version_keyword
    assert isinstance(value, dict), "version_keyword expects a dict or True"
           ~~~~~~~~~~^^^^^^^^^^^^^
AssertionError: version_keyword expects a dict or True

Looking at the setup.py file version is a string, maybe that's the cause of the issue