Package Details: python-habanero 1.2.6-3

Git Clone URL: https://aur.archlinux.org/python-habanero.git (read-only, click to copy)
Package Base: python-habanero
Description: A low level client for Crossref's Search API
Upstream URL: https://github.com/sckott/habanero
Licenses: LicenseRef-MIT
Submitter: JP-Ellis
Maintainer: gesh
Last Packager: gesh
Votes: 0
Popularity: 0.000000
First Submitted: 2018-08-13 20:42 (UTC)
Last Updated: 2024-04-30 16:58 (UTC)

Latest Comments

JP-Ellis commented on 2024-03-25 20:18 (UTC)

@gesh, you are welcome to update the PKGBUILD yourself as the package currently has no owner.

gesh commented on 2024-03-25 13:36 (UTC) (edited on 2024-03-25 13:57 (UTC) by gesh)

Please update to PEP517 installs -- directly invoking setup.py is deprecated nowadays. In particular, there's no need for python-pip.

JP-Ellis commented on 2023-09-02 23:11 (UTC)

@m040601 Thanks for testing! I'll make sure to add them as make dependencies later today. The warnings you see are deprecation warnings because Habanero is using an old way of packaging Python modules, but is otherwise of no harm to the installation.

Thanks for testing!

m040601 commented on 2023-09-02 22:31 (UTC) (edited on 2023-09-02 22:34 (UTC) by m040601)

Can you check whether installing python-pip fixes the issue?

Yeap. Can confirm.

First installing the official arch package "python-pip",

extra/python-wheel  0.40.0-3       0.28 MiB       0.06 MiB
extra/python-pip    23.2.1-1      20.68 MiB       3.14 MiB

So "python-pip" also pulls "python-wheel".

Then installing the AUR "python-habanero" ,

yay -S python-habanero,

...

==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    habanero-1.2.3.tar.gz ... Passed
.....

again those license warnings,

==> Starting build()...
/usr/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!

        ********************************************************************************
        The license_file parameter is deprecated, use license_files instead.

        By 2023-Oct-30, 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.
        ********************************************************************************

!!
  parsed = self.parsers.get(option_name, lambda x: x)(value)
/usr/lib/python3.11/site-packages/setuptools/__init__.py:84: _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)
/usr/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!

        ********************************************************************************
        The license_file parameter is deprecated, use license_files instead.

        By 2023-Oct-30, 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.
        ********************************************************************************

!!
  parsed = self.parsers.get(option_name, lambda x: x)(value)
running install
/usr/lib/python3.11/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.
        ********************************************************************************

!!

But it went fast and seems to have installed OK.

I then removed,

$ sudo pacman -Rns python-wheel python-pip

checking dependencies...
:: python optionally requires python-pip

Package (2)   Old Version  Net Change

python-pip    23.2.1-1     -20.68 MiB
python-wheel  0.40.0-3      -0.28 MiB

Total Removed Size:  20.95 MiB
...
:: Do you want to remove these packages? [Y/n]

Yes, because I dont want them on my system if I dont need them.

I guess they are just a "make" dependency for habanaro, and can be uninstalled, am I right ?

JP-Ellis commented on 2023-09-02 05:33 (UTC)

@m040601 Can you check whether installing python-pip fixes the issue? From the error log, it looks like that's the underlying issue. Once you have confirmed, I'll update the PKGBUILD :)

m040601 commented on 2023-08-31 16:41 (UTC) (edited on 2023-08-31 16:51 (UTC) by m040601)

Currently fails on my system, and therefore I cant build "papis"

==> Making package: python-habanero 1.2.3-1 (Thu 31 Aug 2023 05:40:01 PM WEST)
==> Retrieving sources...
  -> Found habanero-1.2.3.tar.gz
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    habanero-1.2.3.tar.gz ... Passed
:: (1/1) Parsing SRCINFO: python-habanero
==> Making package: python-habanero 1.2.3-1 (Thu 31 Aug 2023 05:40:04 PM WEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found habanero-1.2.3.tar.gz
==> Validating source files with sha256sums...
    habanero-1.2.3.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting habanero-1.2.3.tar.gz with bsdtar
==> Sources are ready.
==> Making package: python-habanero 1.2.3-1 (Thu 31 Aug 2023 05:40:09 PM WEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
/usr/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!

        ********************************************************************************
        The license_file parameter is deprecated, use license_files instead.

        By 2023-Oct-30, 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.
        ********************************************************************************

!!
  parsed = self.parsers.get(option_name, lambda x: x)(value)
/usr/lib/python3.11/site-packages/setuptools/__init__.py:84: _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)
WARNING: The wheel package is not available.
/usr/bin/python: No module named pip
Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/setuptools/installer.py", line 96, in _fetch_build_egg_no_warn
    subprocess.check_call(cmd)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpww9e1vdm', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/dev/shm/aurydesty/python-habanero/src/habanero-1.2.3/setup.py", line 5, in <module>
    setuptools.setup()
  File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 106, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 79, in _install_setup_requires
    _fetch_build_eggs(dist)
  File "/usr/lib/python3.11/site-packages/setuptools/__init__.py", line 84, in _fetch_build_eggs
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python3.11/site-packages/setuptools/dist.py", line 907, in fetch_build_eggs
    return _fetch_build_eggs(self, requires)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/installer.py", line 38, in _fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 829, in resolve
    dist = self._resolve_dist(
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 865, in _resolve_dist
    dist = best[req.key] = env.best_match(
                           ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1135, in best_match
    return self.obtain(req, installer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1147, in obtain
    return installer(requirement)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/setuptools/installer.py", line 98, in _fetch_build_egg_no_warn
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpww9e1vdm', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: python-habanero-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-habanero - exit status 4

yigits commented on 2022-10-14 10:50 (UTC)

Hello, I've updated the PKGBUILD and fixed namcap warnings, this also uses the GitHub URL rather than the pypi one;

# Maintainer:  JP-Ellis <josh@jpellis.me>
pkgname=python-habanero
_name=${pkgname#python-}
pkgver=1.2.2
pkgrel=1
pkgdesc="Habanero is a low level client for working with Crossref's search API."
arch=('any')
url="https://github.com/sckott/habanero"
license=('GPL')
depends=('python' 'python-requests' 'python-tqdm')
makedepends=('python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('a7acb9a08f6d1bf724f8a884201674502e0f8993b9867d78e429fd64ce10075f')

build() {
  cd "${srcdir}/${_name}-${pkgver}"
  touch Changelog.rst
  python setup.py build
}

package() {
  cd "${srcdir}/${_name}-${pkgver}"
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}

# vim:set ts=2 sw=2 et:

Foxboron commented on 2018-10-31 13:09 (UTC)

Missing a makedepends on python-setuptools.