Date: Friday, April 7, 2023 @ 05:27:00
Author: felixonmars
Revision: 1440624
archrelease: copy trunk to community-staging-any
Added:
autopep8/repos/community-staging-any/
autopep8/repos/community-staging-any/PKGBUILD
(from rev 1440620, autopep8/trunk/PKGBUILD)
----------+
PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
Copied: autopep8/repos/community-staging-any/PKGBUILD (from rev 1440620,
autopep8/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 05:27:00 UTC (rev 1440624)
@@ -0,0 +1,59 @@
+# Maintainer: George Rawlinson <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Ismael Carnales <icarnales at gmail dot com>
+# Contributor: Sergey Mastykov <smastykov[at]gmail[dot]com>
+
+pkgname=autopep8
+pkgver=2.0.2
+pkgrel=2
+epoch=1
+pkgdesc='A tool that automatically formats Python code to conform to the PEP 8
style guide'
+arch=('any')
+url='https://github.com/hhatto/autopep8'
+license=('MIT')
+depends=(
+ 'python'
+ 'python-pycodestyle'
+ 'python-tomli'
+)
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-installer'
+ 'python-wheel'
+ 'python-setuptools'
+)
+checkdepends=('python-pytest')
+_commit='6e6d4ba4a043da1a56ca0ec7280a7d4f40283215'
+source=("$pkgname::git+$url#commit=$_commit")
+sha512sums=('SKIP')
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$pkgname"
+
+ pytest -v
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim:set ts=2 sw=2 et: