diff --git a/dev-python/coverage/Manifest b/dev-python/coverage/Manifest new file mode 100644 index 000000000..f967d9530 --- /dev/null +++ b/dev-python/coverage/Manifest @@ -0,0 +1 @@ +DIST coverage-4.5.2.tar.gz 384845 BLAKE2B a7b4f249a68e025449d26ef8ee2194b9ce355c979d1f5192a7863a0ab0089f9deb3a8e63a39bef528ed7c58fbcc7cd4bc193fea3a135f5996a6655268a6b7a93 SHA512 0d98c8118648a319ac6f3b4c4c6f1ff8a92085bbe8276dd5504c8df4638933f920d7382d8e6de8e16bff43b62091310e0eab7b7722c6d28c976baedbfae3d03e diff --git a/dev-python/coverage/coverage-4.5.2.ebuild b/dev-python/coverage/coverage-4.5.2.ebuild new file mode 100644 index 000000000..409396b62 --- /dev/null +++ b/dev-python/coverage/coverage-4.5.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} pypy pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Code coverage measurement for Python" +HOMEPAGE="https://coverage.readthedocs.io/en/latest/ https://pypi.org/project/coverage/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="test" + +RDEPEND="" +DEPEND=" + >=dev-python/setuptools-18.4[${PYTHON_USEDEP}] + test? ( + dev-python/PyContracts[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + ) +" + +python_compile() { + if [[ ${EPYTHON} == python2.7 ]]; then + local CFLAGS="${CFLAGS} -fno-strict-aliasing" + export CFLAGS + fi + + distutils-r1_python_compile +} + +python_test() { + cd "${BUILD_DIR}"/lib || die + [[ "${PYTHON}" =~ pypy ]] && export COVERAGE_NO_EXTENSION=no + ${PYTHON} "${S}"/igor.py test_with_tracer py || die + ${PYTHON} "${S}"/igor.py test_with_tracer c || die +} diff --git a/dev-python/coverage/metadata.xml b/dev-python/coverage/metadata.xml new file mode 100644 index 000000000..b3249862a --- /dev/null +++ b/dev-python/coverage/metadata.xml @@ -0,0 +1,19 @@ + + + + + robbat2@gentoo.org + Robin H. Johnson + + + python@gentoo.org + Python + + Coverage.py is a Python module that measures code coverage during Python +execution. It uses the code analysis tools and tracing hooks provided in the +Python standard library to determine which lines are executable, and which have +been executed. + + coverage + + diff --git a/dev-python/pymodbus/Manifest b/dev-python/pymodbus/Manifest new file mode 100644 index 000000000..0fe79895a --- /dev/null +++ b/dev-python/pymodbus/Manifest @@ -0,0 +1 @@ +DIST pymodbus-2.1.0.tar.gz 130214 BLAKE2B 52b754c06c28c104da10cecafe3212b00b919e794f0de8f753fc2410c12240165e3177a0a1f428eed15a97dbe65354cd79872d228c919aad587cf7e2e163fc1b SHA512 b7b8680b1c9618053f1bdb04a83c283a74ab5c867ef729786ff24a29d63828ff8d4484d388ce827be3bc45d186ee77b7c76f1633496c6de21a960a094b5d68cd diff --git a/dev-python/pymodbus/pymodbus-2.1.0.ebuild b/dev-python/pymodbus/pymodbus-2.1.0.ebuild new file mode 100644 index 000000000..b94e0a2a4 --- /dev/null +++ b/dev-python/pymodbus/pymodbus-2.1.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) + +inherit distutils-r1 + +DESCRIPTION="A fully featured modbus protocol stack in python" +HOMEPAGE="https://github.com/riptideio/pymodbus/ https://pypi.org/project/pymodbus/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="test" + +RDEPEND=" + >=dev-python/pyserial-3.4[${PYTHON_USEDEP}] + ~dev-python/six-1.11.0[${PYTHON_USEDEP}] + >=dev-python/coverage-4.4[${PYTHON_USEDEP}] + ~dev-python/mock-2.0.0[${PYTHON_USEDEP}] + ~dev-python/nose-1.3.7-r3[${PYTHON_USEDEP}] + ~dev-python/pep8-1.7.0[${PYTHON_USEDEP}] + " +DEPEND="${REDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + )" + +python_test() { + nosetests --verbose || die + py.test -v -v || die +}