Package Details: python-pytest-flask 1.3.0-2

Git Clone URL: https://aur.archlinux.org/python-pytest-flask.git (read-only, click to copy)
Package Base: python-pytest-flask
Description: A set of pytest fixtures to test Flask applications.
Upstream URL: https://github.com/pytest-dev/pytest-flask
Licenses: MIT
Submitter: Anthony25
Maintainer: HLFH
Last Packager: HLFH
Votes: 1
Popularity: 0.000000
First Submitted: 2017-04-07 12:53 (UTC)
Last Updated: 2024-05-06 06:29 (UTC)

Latest Comments

intelfx commented on 2024-06-14 19:12 (UTC)

As per the two comments below, this package is using obsolete setuptools CLI and is missing makedependencies.

Please apply: https://0x0.st/XcyM.diff

alex19EP commented on 2024-06-11 15:14 (UTC)

please apply following

diff --git i/PKGBUILD w/PKGBUILD index 7752fb2..d3a8335 100644 --- i/PKGBUILD +++ w/PKGBUILD @@ -8,7 +8,7 @@ pkgdesc="A set of pytest fixtures to test Flask applications." arch=(any) url='https://github.com/pytest-dev/pytest-flask' license=(MIT) -makedepends=('python-setuptools') +makedepends=('python-setuptools' 'python-wheel' 'python-pip') depends=('python-pytest' 'python-flask' 'python-werkzeug') source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") b2sums=('008c7f2acdc320dcab3e1745fb8e546a1f4cbdf75155db85f00bb70aea2eb3efa46d68f39fac114e3ddc3675b45d3d6d9a7bba8eb0c331c36e7f3d08c83c5da0')

f0ff886f commented on 2024-06-10 13:30 (UTC)

There is a missing dependency on python-pip. It will fail if that package isn't installed during build.

/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)
WARNING: The wheel package is not available.
/usr/bin/python: No module named pip
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/setuptools/installer.py", line 101, in _fetch_build_egg_no_warn
    subprocess.check_call(cmd)
  File "/usr/lib/python3.12/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/tmp5zfh6nzh', '--quiet', 'setuptools_scm']' returned non-zero exit status 1.

HLFH commented on 2023-12-05 05:03 (UTC)

Updated to 1.3.0.

HLFH commented on 2023-01-04 12:15 (UTC)

Package fixed and updated to 1.2.0.

HLFH commented on 2023-01-04 08:56 (UTC) (edited on 2023-01-04 08:57 (UTC) by HLFH)

Package is outdated and...broken.

 Lancement de package_python-pytest-flask()…
Traceback (most recent call last):
  File "/home/hlfh/.cache/yay/python-pytest-flask/src/pytest-flask-1.0.0/setup.py", line 127, in <module>
    setup(
  File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 147, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 475, in __init__
    _Distribution.__init__(
  File "/usr/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 283, in __init__
    self.finalize_options()
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 899, in finalize_options
    ep(self)
  File "/usr/lib/python3.10/site-packages/setuptools/dist.py", line 919, in _finalize_setup_keywords
    ep.load()(self, ep.name, value)
  File "/usr/lib/python3.10/site-packages/setuptools_scm/integration.py", line 91, in version_keyword
    _assign_version(dist, config)
  File "/usr/lib/python3.10/site-packages/setuptools_scm/integration.py", line 63, in _assign_version
    _version_missing(config)
  File "/usr/lib/python3.10/site-packages/setuptools_scm/__init__.py", line 108, in _version_missing
    raise LookupError(
LookupError: setuptools-scm was unable to detect version for /home/hlfh/.cache/yay/python-pytest-flask/src/pytest-flask-1.0.0.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
==> ERREUR : Une erreur s’est produite dans package_python-pytest-flask().
    Abandon…
 -> erreur lors de la construction : python-pytest-flask