Package Details: randrctl 1.9.0-2

Git Clone URL: https://aur.archlinux.org/randrctl.git (read-only, click to copy)
Package Base: randrctl
Description: Lightweight profile based screen manager for X
Upstream URL: http://github.com/koiuo/randrctl
Licenses: GPL3
Submitter: itsme
Maintainer: Wolfizen
Last Packager: Wolfizen
Votes: 3
Popularity: 0.000010
First Submitted: 2016-09-11 19:58 (UTC)
Last Updated: 2024-04-30 07:36 (UTC)

Required by (0)

Sources (1)

Latest Comments

Wolfizen commented on 2024-04-30 07:42 (UTC) (edited on 2024-04-30 07:45 (UTC) by Wolfizen)

Thank you for the notifications! I've addressed the following in 1.9.0-2:
- Package now uses python-build and python-installer during the build() and package() steps.
- Missing dependencies are added: python-pbr (make), python-argcomplete
- Upstream source URL changed: http://github.com/edio/randrctl -> https://github.com/koiuo/randrctl

The deprecation warnings are not fully resolved, I suspect this is due to upstream using setup.cfg + setup.py instead of pyproject.toml

Let me know if there are further issues.

dreieck commented on 2024-04-28 15:35 (UTC)

Build fails for me:

Error parsing
Traceback (most recent call last):
  File "/var/cache/makepkg/build/randrctl/src/randrctl-1.9.0/.eggs/pbr-6.0.0-py3.12.egg/pbr/core.py", line 105, in pbr
    attrs = util.cfg_to_args(path, dist.script_args)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/cache/makepkg/build/randrctl/src/randrctl-1.9.0/.eggs/pbr-6.0.0-py3.12.egg/pbr/util.py", line 272, in cfg_to_args
    pbr.hooks.setup_hook(config)
  File "/var/cache/makepkg/build/randrctl/src/randrctl-1.9.0/.eggs/pbr-6.0.0-py3.12.egg/pbr/hooks/__init__.py", line 25, in setup_hook
    metadata_config.run()
  File "/var/cache/makepkg/build/randrctl/src/randrctl-1.9.0/.eggs/pbr-6.0.0-py3.12.egg/pbr/hooks/base.py", line 27, in run
    self.hook()
  File "/var/cache/makepkg/build/randrctl/src/randrctl-1.9.0/.eggs/pbr-6.0.0-py3.12.egg/pbr/hooks/metadata.py", line 25, in hook
    self.config['version'] = packaging.get_version(
                             ^^^^^^^^^^^^^^^^^^^^^^
  File "/var/cache/makepkg/build/randrctl/src/randrctl-1.9.0/.eggs/pbr-6.0.0-py3.12.egg/pbr/packaging.py", line 866, in get_version
    raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name randrctl was given, but was not able to be found.
error in setup command: Error parsing /var/cache/makepkg/build/randrctl/src/randrctl-1.9.0/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. It's also possible that there is a mismatch between the package name in setup.cfg and the argument given to pbr.version.VersionInfo. Project name randrctl was given, but was not able to be found.
==> ERROR: A failure occurred in build().

Regards!

dreieck commented on 2024-04-28 15:34 (UTC) (edited on 2024-04-28 15:35 (UTC) by dreieck)

Ahoj,

you need to change the build process to move away from setup.py and use python-wheel together with python-build and python-installer. See the Arch Linux wiki on python package guidelines.

==> Starting build()...
/usr/lib/python3.12/site-packages/setuptools/dist.py:472: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

        ********************************************************************************
        Usage of dash-separated 'home-page' will not be supported in future
        versions. Please use the underscore name 'home_page' instead.

        By 2024-Sep-26, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self.warn_dash_deprecation(opt, section)
/usr/lib/python3.12/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)

Regards!

dreieck commented on 2023-07-07 11:08 (UTC)

python-argcomplete needs to be added as a dependency.

Without it, I‌ get the following error:

Installing randrctl script to /home/felics/.cache/yay/randrctl/pkg/randrctl/usr/bin
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/felics/.cache/yay/randrctl/src/randrctl-1.9.0/randrctl/__main__.py", line 3, in <module>
    from randrctl import cli
  File "/home/felics/.cache/yay/randrctl/src/randrctl-1.9.0/randrctl/cli.py", line 5, in <module>
    import argcomplete
ModuleNotFoundError: No module named 'argcomplete'
==> ERROR: A failure occurred in package().

It is also needed at runtime.

Thanks for maintaining,
regards!

drws commented on 2020-03-13 09:14 (UTC) (edited on 2020-03-13 09:15 (UTC) by drws)

During update to 1.8.2, the build is failing with:

install: cannot stat 'randrctl/misc/config.ini': No such file or directory

There seems to be multiple problems introduced in the latest PKGBUILD. First of all, there are two package() functions defined, the first one should be build(). Even after this correction, building is still not working with different error:

rm: cannot remove 'bin/randrctl-setup': No such file or directory

Furthermore, inbetween the previous AUR-published version (1.6.0) and the current one (1.8.2), the support for INI config format has been deprecated and only YAML is supported in the current 1.8.2. The PKGBUILD should at least inform the user that configuration needs to be reworked in case of INI format.

Last but not least, currently there is one yet-to-be-accepted pull request in randrctl repo: https://github.com/edio/randrctl/pull/22

As it is update-related and randrctl repo hasn't been updated for some time, I propose it be applied in the PKGBUILD.

drws commented on 2018-04-10 10:54 (UTC)

Also python-yaml is missing as a dependency:

https://github.com/edio/randrctl/blob/master/requirements.txt

drws commented on 2018-04-04 20:02 (UTC) (edited on 2023-08-09 14:00 (UTC) by drws)

Package needs Python's packit package and builds successfully after.

itsme commented on 2017-11-22 10:45 (UTC)

fixed, thank you

xduugu commented on 2017-11-21 21:03 (UTC)

The package does not build without git.