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
cd
should be$srcdir/$_name-$pkgver
like all the other functions.This happened since I keep a private commit containing things I'd change, including removing the unnecessary
python-tomli
andpython-wheel
, giving the tarball a descriptive name, and replacing$_name-$pkgver
by 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-flake8
sometimes releases without a corresponding version bump topython-pycodestyle
. Sincepython-flake8-pyproject
uses theflit
backend, 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 thepkgver
and checksums,makepkg
) (recommended)PKGBUILD
(by adding--skip-dependency-check
to the invocation ofpython -m build
)flake8-pyproject
to use thesetuptools
build backend (requires replacing thebuild-system.requires
andbuild-system.build-backend
keys inpyproject.toml
withsetuptools
ones and editing thePKGBUILD
to 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-wheel
is indeed unnecessary -- since we useflit-core
as a build backend, there's no need for it.Further, as @bcb noted, the only use of
python-tomli
is 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 includepython
explicitly 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-wheel
as a dependency as wellsetuptools
as a backend.flake8-1:7.1.1-1
andpython-pycodestyle-2.11.1-2
fails -- I needed to manually bumppython-pycodestyle
to2.12.1
for the dependency check ofpython -m build
to 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
makepkg
everything works.bcb commented on 2023-11-28 14:18 (UTC)
Thanks for packaging! Two comments:
python-tomli
is not required -- it is only used for older versions of Python which do not have the standardtomllib
librarypython-flit-core
needs to be inmakedepends