diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/logilab-common | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/logilab-common')
5 files changed, 132 insertions, 0 deletions
diff --git a/dev-python/logilab-common/Manifest b/dev-python/logilab-common/Manifest new file mode 100644 index 000000000000..3ecf660f2f30 --- /dev/null +++ b/dev-python/logilab-common/Manifest @@ -0,0 +1,6 @@ +AUX logilab-common-1.2.2-test-namespace-fix.patch 502 BLAKE2B 257f19769d7e2f6df1fa606a1f596d24f24c3f5be319944929d4e258ff8f7068edc977dddf4be2b58df6eedb22e0135d1bfc119340853a1f9352dfe9b8de6aed SHA512 c8a9898a6fa497c21edebe4b6890a87215622dfd1c4ccdd7b23ca7669131200cf82ae82bd17c7226ac79ff3fb4ae964b1bf1470eb79c5aec0018850eacd2760f +DIST logilab-common-1.2.2.tar.gz 184817 BLAKE2B 0318b4144150303b483fe921e01af326b55b7a3b93a014506685fde0b4e094a88efaaa70f63623264ee34fdfa72703e31cb0c8e9f4a69e309cab50997acae7ac SHA512 9c2161e8644e50cb3d4418430ca95363363e532b286d39cbdb73a51274bee02e5e8d0632b7564049243f497df96102c90ab0aeff9c91e91f7275407a6cfc56e2 +DIST logilab-common-1.4.1.tar.gz 185150 BLAKE2B 4c77b0a136a0de708801971f85b55fdd598767737ed17bc83ad1b934bcea5db67534370c202bc4b874ac774494ec6295a2458a7ae39fae36a9d5b482bce65563 SHA512 e016aa8bd8641b4178aa1d1dd58c8c78bf6c3a80c35c9096d9761eeb49c9ee1ab5952839a1b7ecc404cd60b31078d3e997d73ad4f8d07d88badffe6c8748a059 +EBUILD logilab-common-1.2.2.ebuild 1195 BLAKE2B 1cf354ede8e340b349aa444b3eda7f796477a6940a89be8df4800c9452067a05f43ca93f1d8bb44cad402d60c747b69eb1fe107138e94d2e50914632be1df74a SHA512 cbf438ab6492feebfd8855a8ca83449ccf3777ae9158f27bf6d12e6c025225588dda111bf2f55b38cbc1af3361a281f67ee7821a2cad656692189cc7002be850 +EBUILD logilab-common-1.4.1.ebuild 1417 BLAKE2B df8268e7eec082e91c336630259adb687bf5b04bdf23bb6a7f234e6ba175e0a43bb248de42f02577d68c613a9053cb47d4fdd5de248c6cee40e7c0c8e8435d40 SHA512 685563a02a69cd5320d24620dfb362495388f81a593ee006f4e5e4e5a58ad55f1606b136670746fd01b754aa8ab6161dbaa3186b70c351ef4cc5164245253f8b +MISC metadata.xml 317 BLAKE2B 88f2ad57938f816c897d8d8c26d26135c064ea7fadd6363cc916f6a047b3a0deb1e3fb9f1282d91198036f457998fca4ab43dafbd2c8c03a72d8ab601542c186 SHA512 4e3f634378fd3dcd721af5e038a2331fab376c3625cb8b9dce6a87921886602ff75d308fc9d7f887a65cda607e9e635fb59e86b1da0c7c11a75860229f90c3c9 diff --git a/dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch b/dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch new file mode 100644 index 000000000000..044fc67f0d3f --- /dev/null +++ b/dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch @@ -0,0 +1,21 @@ +diff --git a/bin/pytest-local b/bin/pytest-local +new file mode 100755 +index 0000000..a2b771b +--- /dev/null ++++ b/bin/pytest-local +@@ -0,0 +1,15 @@ ++#!/usr/bin/env python ++ ++import sys ++try: ++ # remove an already installed logilab-common module from ++ # the list of namespaces to force the local module to be tested ++ del sys.modules['logilab'] ++except KeyError: ++ pass ++ ++import warnings ++warnings.simplefilter('default', DeprecationWarning) ++ ++from logilab.common.pytest import run ++run() diff --git a/dev-python/logilab-common/logilab-common-1.2.2.ebuild b/dev-python/logilab-common/logilab-common-1.2.2.ebuild new file mode 100644 index 000000000000..8ba0caf8087d --- /dev/null +++ b/dev-python/logilab-common/logilab-common-1.2.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Useful miscellaneous modules used by Logilab projects" +HOMEPAGE="https://www.logilab.org/project/logilab-common https://pypi.org/project/logilab-common/" +SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="alpha amd64 arm ia64 ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="test" + +RDEPEND=">=dev-python/six-1.4.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + $(python_gen_cond_dep 'dev-python/egenix-mx-base[${PYTHON_USEDEP}]' python2_7) + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +PATCHES=( "${FILESDIR}/${P}-test-namespace-fix.patch" ) + +python_install_all() { + distutils-r1_python_install_all + + doman doc/pytest.1 +} + +python_test() { + # https://www.logilab.org/ticket/149345 + # Prevent timezone related failure. + export TZ=UTC + + "${PYTHON}" bin/pytest-local || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/logilab-common/logilab-common-1.4.1.ebuild b/dev-python/logilab-common/logilab-common-1.4.1.ebuild new file mode 100644 index 000000000000..dd8fe62baecc --- /dev/null +++ b/dev-python/logilab-common/logilab-common-1.4.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Useful miscellaneous modules used by Logilab projects" +HOMEPAGE="https://www.logilab.org/project/logilab-common https://pypi.org/project/logilab-common/" +SRC_URI="ftp://ftp.logilab.org/pub/common/${P}.tar.gz mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="test" + +RDEPEND=">=dev-python/six-1.4.0[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + $(python_gen_cond_dep 'dev-python/egenix-mx-base[${PYTHON_USEDEP}]' python2_7) + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +python_test() { + # https://www.logilab.org/ticket/149345 + # Prevent timezone related failure. + export TZ=UTC + + ${EPYTHON} bin/logilab-pytest || die "Tests fail with ${EPYTHON}" +} + +python_install() { + distutils-r1_python_install + + # this package is commonly used by all logilab.* in ::gentoo, + # so let's just keep the namespace here + python_moduleinto logilab + python_domodule logilab/__init__.py +} + +python_install_all() { + distutils-r1_python_install_all + + doman doc/logilab-pytest.1 + find "${D}" -name '*.pth' -delete || die +} diff --git a/dev-python/logilab-common/metadata.xml b/dev-python/logilab-common/metadata.xml new file mode 100644 index 000000000000..6d7823824e72 --- /dev/null +++ b/dev-python/logilab-common/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <upstream> + <remote-id type="pypi">logilab-common</remote-id> + </upstream> +</pkgmetadata> |