summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-10-13 15:14:08 -0700
committerZac Medico <zmedico@gentoo.org>2018-10-13 15:35:18 -0700
commit4ce78528031239524af920edfbacfca8a846e8e0 (patch)
tree6ee3e96756162317670179fa94feeafe3f46a1f1 /dev-python/flake8-import-order
parentdev-python/pylama: new package (diff)
downloadgentoo-4ce78528031239524af920edfbacfca8a846e8e0.tar.gz
gentoo-4ce78528031239524af920edfbacfca8a846e8e0.tar.bz2
gentoo-4ce78528031239524af920edfbacfca8a846e8e0.zip
dev-python/flake8-import-order: new package
Signed-off-by: Zac Medico <zmedico@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-python/flake8-import-order')
-rw-r--r--dev-python/flake8-import-order/Manifest1
-rw-r--r--dev-python/flake8-import-order/flake8-import-order-0.18.ebuild32
-rw-r--r--dev-python/flake8-import-order/metadata.xml12
3 files changed, 45 insertions, 0 deletions
diff --git a/dev-python/flake8-import-order/Manifest b/dev-python/flake8-import-order/Manifest
new file mode 100644
index 000000000000..2b8b5ab84375
--- /dev/null
+++ b/dev-python/flake8-import-order/Manifest
@@ -0,0 +1 @@
+DIST flake8-import-order-0.18.tar.gz 18507 BLAKE2B 01d9ea712dd5cc4177aec2c1ea2c2dfa72266edfa6b9143657076edab02548058a5bb4642a9a9b7c3dcad36cd76491114cc36a128d57076d09e4cd9e0f1568fe SHA512 8a897d42c81e99d9373fdf03e975b65309700fddf7c38294fe65562ce788e788c9d6c2ec8dd2c8d24e65b4360b3b3577a7a66eb279a5952f8b9d212b06047395
diff --git a/dev-python/flake8-import-order/flake8-import-order-0.18.ebuild b/dev-python/flake8-import-order/flake8-import-order-0.18.ebuild
new file mode 100644
index 000000000000..ffb5da6d0c94
--- /dev/null
+++ b/dev-python/flake8-import-order/flake8-import-order-0.18.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Flake8 plugin that checks import order against various Python Style Guides"
+HOMEPAGE="https://github.com/PyCQA/flake8-import-order"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/pycodestyle[${PYTHON_USEDEP}]
+ virtual/python-enum34[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ test? (
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/flake8[${PYTHON_USEDEP}]
+ dev-python/pycodestyle[${PYTHON_USEDEP}]
+ )"
+
+python_test() {
+ py.test -v tests || die "tests failed with ${EPYTHON}"
+}
diff --git a/dev-python/flake8-import-order/metadata.xml b/dev-python/flake8-import-order/metadata.xml
new file mode 100644
index 000000000000..2bcccd127d53
--- /dev/null
+++ b/dev-python/flake8-import-order/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ <name>Zac Medico</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">flake8-import-order</remote-id>
+ <remote-id type="github">PyCQA/flake8-import-order</remote-id>
+ </upstream>
+</pkgmetadata>