From: Patrice Clement Date: Mon, 8 Oct 2018 20:10:05 +0000 (+0200) Subject: dev-python/pep257: new package. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=799f8016e7d77e911eeb4b91ed37b31b208ded0f;p=gentoo.git dev-python/pep257: new package. pydocstyle is a static analysis tool for checking compliance with Python docstring conventions and enforcing PEP257. Signed-off-by: Patrice Clement Package-Manager: Portage-2.3.49, Repoman-2.3.10 Closes: https://bugs.gentoo.org/556358 --- diff --git a/dev-python/pep257/Manifest b/dev-python/pep257/Manifest new file mode 100644 index 000000000000..a0a68b56187c --- /dev/null +++ b/dev-python/pep257/Manifest @@ -0,0 +1 @@ +DIST pep257-2.1.1.tar.gz 55760 BLAKE2B e470b006b5db04c4bed5c3145b14b949980c71d1dd91dbe34d49599063aaf1cb1d0842dfb992e5d471436446455bde2d309ee573826c039540fa99adba3f828b SHA512 f23939e0350094c67565613bab4ddf285dda5a7379e6ac2493953d6e60ab75588143fd374715765d2aa0728e7117d02e91312dbbe5a9cad28aa8e8e7f68e3bc4 diff --git a/dev-python/pep257/metadata.xml b/dev-python/pep257/metadata.xml new file mode 100644 index 000000000000..303bad4bb36f --- /dev/null +++ b/dev-python/pep257/metadata.xml @@ -0,0 +1,15 @@ + + + + + python@gentoo.org + Gentoo Python Project + + + monsieurp@gentoo.org + Patrice Clement + + + PyCQA/pydocstyle + + diff --git a/dev-python/pep257/pep257-2.1.1.ebuild b/dev-python/pep257/pep257-2.1.1.ebuild new file mode 100644 index 000000000000..38e682f3d835 --- /dev/null +++ b/dev-python/pep257/pep257-2.1.1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) + +inherit distutils-r1 + +MY_PN="pydocstyle" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Python docstring style checker" +HOMEPAGE="https://pypi.python.org/pypi/pep257" +SRC_URI="https://github.com/PyCQA/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="" +DEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/pytest[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +python_install_all() { + distutils-r1_python_install_all +} + +python_test() { + esetup.py test +}