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.000085
First Submitted: 2023-04-24 16:44 (UTC)
Last Updated: 2023-04-24 16:44 (UTC)

Latest Comments

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).