Search Criteria
Package Details: python-flake8-pyproject 1.2.3-3
Package Actions
| Git Clone URL: | https://aur.archlinux.org/python-flake8-pyproject.git (read-only, click to copy) |
|---|---|
| Package Base: | python-flake8-pyproject |
| Description: | Flake8 plug-in loading the configuration from pyproject.toml |
| Upstream URL: | https://github.com/john-hen/Flake8-pyproject |
| Licenses: | MIT |
| Submitter: | wjhandley |
| Maintainer: | wjhandley |
| Last Packager: | wjhandley |
| Votes: | 0 |
| Popularity: | 0.000000 |
| First Submitted: | 2023-09-06 09:28 (UTC) |
| Last Updated: | 2024-10-08 16:17 (UTC) |
Dependencies (8)
- flake8 (python-flake8)
- python-tomli
- python-wheel
- python-build (make)
- python-flit-core (make)
- python-installer (make)
- python-pytest (check)
- python-pytest-cov (check)
Latest Comments
gesh commented on 2025-07-30 18:29 (UTC) (edited on 2025-07-30 18:36 (UTC) by gesh)
@wjhandley: It turns out I gave you a broken patch in https://aur.archlinux.org/packages/python-flake8-pyproject#comment-993758 -- the directory passed to
cdshould be$srcdir/$_name-$pkgverlike all the other functions.This happened since I keep a private commit containing things I'd change, including removing the unnecessary
python-tomliandpython-wheel, giving the tarball a descriptive name, and replacing$_name-$pkgverby a single_src_folder_variable (for consistency with packages generated usingpip2pkgbuild. I forgot to undo that change when offering up my patch for merging, my apologies for that.Thanks to @tuurep for flagging this in https://github.com/papis/papis/discussions/1037
gesh commented on 2025-07-27 18:13 (UTC) (edited on 2025-07-27 18:14 (UTC) by gesh)
To clarify my comment from 2024-09-30 since this has happened again,
python-flake8sometimes releases without a corresponding version bump topython-pycodestyle. Sincepython-flake8-pyprojectuses theflitbackend, it makes transitive dependency checks by default, which breaks the build from time to time.There are a couple workarounds to this:
python-pycodestyle(git clone https://gitlab.archlinux.org/archlinux/packaging/packages/python-pycodestyle, update thepkgverand checksums,makepkg) (recommended)PKGBUILD(by adding--skip-dependency-checkto the invocation ofpython -m build)flake8-pyprojectto use thesetuptoolsbuild backend (requires replacing thebuild-system.requiresandbuild-system.build-backendkeys inpyproject.tomlwithsetuptoolsones and editing thePKGBUILDto pull it in instead)This has been reported(1, 2) and will hopefully be resolved soon.
gesh commented on 2024-12-23 14:43 (UTC) (edited on 2024-12-23 14:43 (UTC) by gesh)
Note: Package needs to be rebuilt for Python 3.13 (a bump to pkgrel suffices)
gesh commented on 2024-10-08 13:30 (UTC) (edited on 2024-10-08 13:34 (UTC) by gesh)
You must've missed my correction that
python-wheelis indeed unnecessary -- since we useflit-coreas a build backend, there's no need for it.Further, as @bcb noted, the only use of
python-tomliis guarded behind a check for python >=3.11. That version has been out for two years now, I don't think that we need to keep support for older version in the PKGBUILD. (It's a matter of taste whether to also includepythonexplicitly as a dependency, up to you)Finally, attached is a patch enabling the integration testsuite -- in general, it's good practice to run whatever reasonable testsuites upstream provides.
gesh commented on 2024-09-30 13:13 (UTC) (edited on 2024-09-30 15:55 (UTC) by gesh)
Thanks for packaging! Some further comments:
PEP517 builds needTIL that's only true of projects usingpython-wheelas a dependency as wellsetuptoolsas a backend.flake8-1:7.1.1-1andpython-pycodestyle-2.11.1-2fails -- I needed to manually bumppython-pycodestyleto2.12.1for the dependency check ofpython -m buildto pass.check()(this means addingpython-pytest{,-cov}tocheckdepends). ATM, though, I am getting test failures, though:EDIT: The build failures are only when I build in a clean chroot -- if I build with a simple
makepkgeverything works.bcb commented on 2023-11-28 14:18 (UTC)
Thanks for packaging! Two comments:
python-tomliis not required -- it is only used for older versions of Python which do not have the standardtomlliblibrarypython-flit-coreneeds to be inmakedepends