Package Details: python-readchar 4.0.5-1

Git Clone URL: https://aur.archlinux.org/python-readchar.git (read-only, click to copy)
Package Base: python-readchar
Description: Python library to read characters and key strokes
Upstream URL: https://github.com/magmax/python-readchar
Licenses: custom:MIT
Submitter: marioom
Maintainer: marioom (kylelaker)
Last Packager: kylelaker
Votes: 5
Popularity: 0.000192
First Submitted: 2020-10-27 20:47 (UTC)
Last Updated: 2023-08-24 11:26 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

qark commented on 2022-03-12 19:39 (UTC)

Warnings could be avoided by switching from python setup.py build to python -m build --wheel --no-isolation and from python setup.py install to python -m installer --destdir="$pkgdir" dist/*.whl

marioom commented on 2022-03-12 19:32 (UTC)

Perfect, fixed in the newest release. Thanks for the help.

qark commented on 2022-03-12 19:27 (UTC)

GITHUB_REF="refs/tags/$pkgver" is enough.

marioom commented on 2022-03-12 19:09 (UTC)

The setup.py warnings should be reported upstream, this package is not mine. About the GITHUB_REF env variable, what should its value be, refs/tags/3.0.5?

qark commented on 2022-03-08 10:52 (UTC) (edited on 2022-03-09 17:32 (UTC) by qark)

Package installs module version as 2.0.1. To use 3.0.5 we have to set GITHUB_REF environment variable, see setup.py.

Also python setup.py outputs warnings

/usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

and

/usr/bin/python -Wignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning

Please consider switch to PEP 517. It worked for me even without pyproject.toml.

marioom commented on 2022-01-05 17:13 (UTC)

Sorry for taking so long, @yochananmarqos, I completely missed your message. flake8 has been removed :)

yochananmarqos commented on 2021-04-05 16:50 (UTC)

flake8 can safely be removed:

    # Flake8 only required for tests
    sed -i '/flake8/d' setup.py

marioom commented on 2021-03-02 19:56 (UTC)

Done! Let me know if there's anything else that can be improved.

kylelaker commented on 2021-03-02 18:07 (UTC)

@marioom: I'd be happy to! This is a dependency of python-inquirer which is a dependency of a package I hope to be uploading soon.

The prefix is documented at https://wiki.archlinux.org/index.php/Arch_package_guidelines#Package_sources. Basically, it makes sure that the tar.gz file gets saved locally with the package name. Without it, the tar file from GitHub is just the tag name which can cause issues in $srcdir if two packages have the same version and don't fix the naming.

marioom commented on 2021-03-02 12:24 (UTC)

@kylelaker ah sure, this library was basically abandoned not too long ago, so I had forgotten about it. Would you like to be added as a co-maintainer?

Also, what's the ${pkgname}-${pkgver}.tar.gz:: prefix? I had never heard about it before. I'll update the PKGBUILD with your suggestions soon.