Package Details: python-autoflake 2.3.1-2

Git Clone URL: https://aur.archlinux.org/python-autoflake.git (read-only, click to copy)
Package Base: python-autoflake
Description: Removes unused imports and unused variables
Upstream URL: https://github.com/PyCQA/autoflake
Keywords: linter python
Licenses: MIT
Submitter: andreao
Maintainer: qubidt
Last Packager: qubidt
Votes: 6
Popularity: 0.022277
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/setup.py", line 7, in <module>
    import setuptools
ModuleNotFoundError: No module named 'setuptools'
==> ERROR: A failure occurred in build().
    Aborting...
 -> 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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,17 +1,24 @@
-# PKGBUILD generated by pipman
 # Python package author: Steven Myint <UNKNOWN>
 pkgname=python-autoflake
-pkgver=1.3
+_pkgname=autoflake
+pkgver=1.3.1
 pkgrel=1
 pkgdesc="Removes unused imports and unused variables"
 arch=(any)
 url="https://github.com/myint/autoflake"
-license=(Expat License)
-makedepends=("python" "python-pip")
+license=("MIT")
+depends=("python-pyflakes")
+makedepends=("python")
+source=("https://github.com/myint/autoflake/archive/v1.3.1.tar.gz")
+
 build() {
-  pip install --no-deps --target="autoflake" autoflake
+  cd "$srcdir/$_pkgname-$pkgver"
+  python setup.py 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 setup.py install --root="$pkgdir/" --optimize=1
 }
+
+md5sums=('2cb19c3c27bd6ce8c8e8771c5b522abb')

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 setup.py build
}

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