aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorKeith Maxwell <keith.maxwell@gmail.com>2019-04-15 14:24:42 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2019-04-16 09:58:30 +0000
commitc070dfed024f133b42a8146a7ff310c589b167d3 (patch)
treed6ab82a7fb7251ffb8301a652d4f9004fe93cba8 /testing
parent63285c0eaab9cb9f10f90ad8fbea0a6b7662aabc (diff)
downloadaports-c070dfed024f133b42a8146a7ff310c589b167d3.tar.bz2
aports-c070dfed024f133b42a8146a7ff310c589b167d3.tar.xz
community/py-pycodestyle: move from testing
Dependency for py-flake8
Diffstat (limited to 'testing')
-rw-r--r--testing/py-pycodestyle/APKBUILD49
1 files changed, 0 insertions, 49 deletions
diff --git a/testing/py-pycodestyle/APKBUILD b/testing/py-pycodestyle/APKBUILD
deleted file mode 100644
index 15d5abd29b..0000000000
--- a/testing/py-pycodestyle/APKBUILD
+++ /dev/null
@@ -1,49 +0,0 @@
-# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
-# Maintainer:
-pkgname=py-pycodestyle
-pkgver=2.5.0
-pkgrel=0
-pkgdesc="Check your Python code against some of the style conventions in PEP 8"
-url="https://pypi.python.org/pypi/pycodestyle/"
-arch="noarch"
-license="MIT"
-depends=""
-makedepends="python2-dev python3-dev py-setuptools"
-options="!check" #no testsuite
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pycodestyle/archive/$pkgver.tar.gz"
-builddir="$srcdir"/pycodestyle-$pkgver
-
-build() {
- cd "$builddir"
- python2 setup.py --quiet build
- python3 setup.py --quiet build
-}
-
-package() {
- cd "$builddir"
- mkdir -p "$pkgdir"/usr/bin
-}
-
-_py2() {
- depends="${depends//py-/py2-}"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_py() {
- local python="$1"
- local pyver="${1:6:1}"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py --quiet install --prefix=/usr --root="$subpkgdir"
-}
-
-sha512sums="b40d2b4fd6673f4115cb0fa056056ef39f4705ba8826bb2a4b91c98e542132951471e1226d697daeb6fac9a5520df5f8dde0931462e540ee2eb8b5f275eb2288 py-pycodestyle-2.5.0.tar.gz"