Package Details: python-autoflake 2.3.1-2

Git Clone URL: (read-only, click to copy)
Package Base: python-autoflake
Description: Removes unused imports and unused variables
Upstream URL:
Keywords: linter python
Licenses: MIT
Submitter: andreao
Maintainer: qubidt
Last Packager: qubidt
Votes: 6
Popularity: 0.024192
First Submitted: 2018-09-20 22:55 (UTC)
Last Updated: 2024-03-15 15:17 (UTC)

Latest Comments

carlosal1015 commented on 2022-08-03 17:17 (UTC)

Hi, I have the following message error:

==> Making package: python-autoflake 1.4-1 (Wed Aug  3 12:17:18 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Traceback (most recent call last):
  File "/tmp/makepkg/python-autoflake/src/autoflake-1.4/", line 7, in <module>
    import setuptools
ModuleNotFoundError: No module named 'setuptools'
==> ERROR: A failure occurred in build().
 -> error making: python-autoflake

carlosal1015 commented on 2022-03-24 16:20 (UTC)

Hi @qubidt, I maintain near 250 packages, mostly python modules. I can take over if you want.

qubidt commented on 2021-09-10 02:19 (UTC)

@andreao any chance of updating this package? I can take over if you'd like

andreao commented on 2019-09-22 08:39 (UTC)

Thanks! Updated.

g360 commented on 2019-09-22 00:17 (UTC)

@blueyed is right, the binary is not installed in a standard PATH directory, it also should depend on pylakes and it uses a non-standard build mechanism. Please updated it, you can use the following working patch:

diff --git a/PKGBUILD b/PKGBUILD
index 012901e..20a4819 100644
@@ -1,17 +1,24 @@
-# PKGBUILD generated by pipman
 # Python package author: Steven Myint <UNKNOWN>
 pkgdesc="Removes unused imports and unused variables"
-license=(Expat License)
-makedepends=("python" "python-pip")
 build() {
-  pip install --no-deps --target="autoflake" autoflake
+  cd "$srcdir/$_pkgname-$pkgver"
+  python build
 package() {
-  mkdir -p $pkgdir/usr/lib/python3.7/site-packages/
-  cp -r $srcdir/autoflake/* $pkgdir/usr/lib/python3.7/site-packages/
+  cd "$srcdir/$_pkgname-$pkgver"
+  python install --root="$pkgdir/" --optimize=1

blueyed commented on 2019-01-20 13:10 (UTC)

The package does not install the autoflake binary properly, but copies it to site-packages also.

I think the PKGBUILD should look more like this:

build() {
  cd "$srcdir/python-autoflake-$pkgver"
  python build

package() {
  cd "$srcdir/python-autoflake-$pkgver"
  python install --root="$pkgdir/" --optimize=1