Package Details: python-cmp_version 3.0.0-2

Git Clone URL: https://aur.archlinux.org/python-cmp_version.git (read-only, click to copy)
Package Base: python-cmp_version
Description: A script and python module to compare version numbers. Use this to compare the version strings of packages, modules, really anything.
Upstream URL: http://github.com/kata198/cmp_version
Licenses: LGPLv3
Submitter: kata198
Maintainer: kata198
Last Packager: kata198
Votes: 6
Popularity: 0.000000
First Submitted: 2017-06-04 09:09 (UTC)
Last Updated: 2018-09-22 01:20 (UTC)

Latest Comments

dreieck commented on 2024-07-02 11:38 (UTC)

Actually, pacman's vercmp replaces cmp-version (and has a slightly different logic: + and . are regarded as the same.)

So I suggest that you make cmp_version a dummy package:

  • Depend on pacman,
  • symlink /usr/bin/vercmp to /usr/bin/cmp-version, to retain compatibility and dependency fulfillment for packages which still depemd on cmp_version.

Regards!

dreieck commented on 2024-07-02 10:57 (UTC)

Please switch away from running setup.py directly but use something as layed out here:

  • In build(), use python -m build,
  • in package(), use python -m installer,
  • add the appropriate makedepends.
==> Starting package_cmp_version()...
running install
/usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()

Regards and thanks for maintaining!

dreieck commented on 2024-06-25 14:25 (UTC)

Is python-setuptools really needed as runtime dependency for python-cmp_version, and not just as make dependency?

Also, the license specifier need to be updated to be SPDX compliant:

python-cmp_version E: LGPLv3 is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.
python-cmp_version W: Dependency included, but may not be needed ('python-setuptools')

Regards and thanks for the package!