Package Details: python-baron 0.10.1-2

Git Clone URL: https://aur.archlinux.org/python-baron.git (read-only, click to copy)
Package Base: python-baron
Description: Full Syntax Tree for python to make writing refactoring code a realist task
Upstream URL: https://github.com/PyCQA/baron
Licenses: LGPL
Submitter: Foxboron
Maintainer: WSDMatty
Last Packager: Foxboron
Votes: 2
Popularity: 0.000056
First Submitted: 2023-04-24 16:44 (UTC)
Last Updated: 2023-04-24 16:44 (UTC)

Latest Comments

kode54 commented on 2025-04-06 13:50 (UTC)

This will bring it up to date and building again:

diff --git a/.SRCINFO b/.SRCINFO
index ede9b83..86e14d7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -4,10 +4,13 @@ pkgbase = python-baron
    pkgrel = 2
    url = https://github.com/PyCQA/baron
    arch = any
-   license = LGPL
-   checkdepends = python-pytest-runner
+   license = LGPL-3.0-only
+   checkdepends = python-pytest
    makedepends = python-setuptools
    makedepends = python-pypandoc
+   makedepends = python-build
+   makedepends = python-installer
+   depends = python
    depends = python-rply
    source = python-baron-0.10.1.tar.gz::https://github.com/PyCQA/baron/archive/0.10.1.tar.gz
    sha512sums = 01c3a69227d1de435dc466bc8e848e9d3d88f182cb404c2614bf868615af92a81c6379c872c36b9f28e63e0cec5757a5a8f6e9bb11eeccb9a75a408199448626
diff --git a/PKGBUILD b/PKGBUILD
index 4ae0c43..b3815e0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,25 +5,25 @@ pkgver=0.10.1
 pkgrel=2
 pkgdesc="Full Syntax Tree for python to make writing refactoring code a realist task"
 url="https://github.com/PyCQA/baron"
-license=('LGPL')
+license=('LGPL-3.0-only')
 arch=('any')
-depends=('python-rply')
-makedepends=('python-setuptools' 'python-pypandoc')
-checkdepends=('python-pytest-runner')
+depends=('python' 'python-rply')
+makedepends=('python-setuptools' 'python-pypandoc' 'python-build' 'python-installer')
+checkdepends=('python-pytest')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/baron/archive/$pkgver.tar.gz")
 sha512sums=('01c3a69227d1de435dc466bc8e848e9d3d88f182cb404c2614bf868615af92a81c6379c872c36b9f28e63e0cec5757a5a8f6e9bb11eeccb9a75a408199448626')

 build() {
   cd baron-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }

 check() {
   cd baron-$pkgver
-  python setup.py pytest
+  pytest
 }

 package() {
   cd baron-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }

Dornhoeschen commented on 2025-03-03 00:27 (UTC) (edited on 2025-03-03 00:27 (UTC) by Dornhoeschen)

Could you take a look? It is currently broken as https://aur.archlinux.org/packages/python-baron#comment-1004306 reported

==> Starting check()...
/usr/lib/python3.13/site-packages/ptr/__init__.py:81: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated.
!!

        ********************************************************************************
        Please remove any references to `setuptools.command.test` in all supported versions of the affected package.

        This deprecation is overdue, please update your project and remove deprecated
        calls to avoid build errors in the future.
        ********************************************************************************

!!
  class PyTest(orig.test):
running pytest
Traceback (most recent call last):
  File "/home/***/.cache/yay/python-baron/src/baron-0.10.1/setup.py", line 7, in <module>
    setup(name='baron',
    ~~~~~^^^^^^^^^^^^^^
          version='0.10.1',
          ^^^^^^^^^^^^^^^^^
    ...<23 lines>...
          ],
          ^^
          )
          ^
  File "/usr/lib/python3.13/site-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 186, in setup
    return run_commands(dist)
  File "/usr/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
    dist.run_commands()
    ~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
    self.run_command(cmd)
    ~~~~~~~~~~~~~~~~^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/dist.py", line 999, in run_command
    super().run_command(command)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
    cmd_obj.run()
    ~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/ptr/__init__.py", line 195, in run
    setattr(dist, attr, getattr(self.distribution, attr))
                        ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Distribution' object has no attribute 'tests_require'. Did you mean: 'extras_require'?
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-baron-exit status 4

bmwinger commented on 2024-12-29 21:43 (UTC)

The tests are broken, probable due to a recent setuptools update. Replacing python-pytest-runner with python-pytest and running pytest directly instead of invoking it through setup.py fixes the problem (pytest-runner is deprecated and archived/unmaintained now upstream).