summaryrefslogtreecommitdiff
path: root/dev-python/logilab-common
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/logilab-common
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/logilab-common')
-rw-r--r--dev-python/logilab-common/Manifest7
-rw-r--r--dev-python/logilab-common/files/logilab-common-1.2.2-test-namespace-fix.patch21
-rw-r--r--dev-python/logilab-common/logilab-common-1.2.2-r1.ebuild53
-rw-r--r--dev-python/logilab-common/logilab-common-1.2.2.ebuild43
-rw-r--r--dev-python/logilab-common/metadata.xml11
5 files changed, 135 insertions, 0 deletions
diff --git a/dev-python/logilab-common/Manifest b/dev-python/logilab-common/Manifest
new file mode 100644
index 000000000000..af9b80f2717d
--- /dev/null
+++ b/dev-python/logilab-common/Manifest
@@ -0,0 +1,7 @@
+AUX logilab-common-1.2.2-test-namespace-fix.patch 502 SHA256 abbf9dbf7c2d47a777b7c89100aa7b7b8752d11a09fb50be36a03d9d33de95ad SHA512 c8a9898a6fa497c21edebe4b6890a87215622dfd1c4ccdd7b23ca7669131200cf82ae82bd17c7226ac79ff3fb4ae964b1bf1470eb79c5aec0018850eacd2760f WHIRLPOOL 71acb32d38736be6a1a12496e8dd7805d8f2f4d1e34ccfb70e0b4c175ffef0b811ee780866b6f171324a11cfc1585f1c723201ed8907e079aa48681abb7523dc
+DIST logilab-common-1.2.2.tar.gz 184817 SHA256 62b0d88d9276e86b48c7188cea8d91d8ff1744d046ea6323d40359aa53aef708 SHA512 9c2161e8644e50cb3d4418430ca95363363e532b286d39cbdb73a51274bee02e5e8d0632b7564049243f497df96102c90ab0aeff9c91e91f7275407a6cfc56e2 WHIRLPOOL d683d92c472640c7167b3ec3c6c4d80eca91f0d3b649223d172999a1c6dd7c004fd52dd016f9682405aa8ca2204273e21b9c486fa0e97f04228e270193b108e5
+EBUILD logilab-common-1.2.2-r1.ebuild 1467 SHA256 da02ade29b9d96128f66575e343954e69ffce9de5d24a3fab8b8c67ebdb43f0c SHA512 eecd67f05f356c81f8df430efca8a4cda2b38e1da3113e2e8ec40631a3e034cef7684f2077777300ccda380874ad58f43289a908dd067265631cb0a2f4a3839c WHIRLPOOL 4ddb490146eb585b769472eaede3c94834386e74ba7c6cd86db71b71a729e22b0bbdd3a1e6962ab3aa579c6bcfebe955418dfb13ae6e7e16b805ccc52f191f11
+EBUILD logilab-common-1.2.2.ebuild 1197 SHA256 0c72096f02dadd105e7bcc9e983a7ab9a4c24f17e275afe1b6e839b63d7b954c SHA512 ea66e669f10d8ee096d5552cb7088b2aff93c7dc5ce14d552f7445308259479025b3b4ef31773744826789ab927d70c37a59014ceb6c076bb8c616a99c573084 WHIRLPOOL b029edadf7f4acf6988d5b03a311d22532cbb960e9ff285e92a6ff431a5c3a480812fdd2a4700675c6283e972e672aec9ec8b53f508fe517cfd738749dc21237
+MISC ChangeLog 4500 SHA256 5f8649f01f7516dba90da4e42d413eb6ea7fac1b5f5e7342d9ccd76630c8eb08 SHA512 2b04904413b7e0319fef85d6c713c285f7b8be148dd3a7f4bd1c8254ee503eee13873cdd6cc7391b513d729db76ab1f1b8293379c60823b7a8bf058a35261fe1 WHIRLPOOL 6dda1dcbc80c8ad83df77b421145e5bb5aaf80f5c2de1672655e68ee88e71c21723f7e87246b6690f85102c544226e7ef5016fb2d0d4a08affb625b6d27d402e
+MISC ChangeLog-2015 25806 SHA256 c603016b004ca30958ad7c18c0dc02251ad466be7282bff5fd9c6a236f6322d5 SHA512 a236b80b2697a5c0b556e916f8cfd3b95bb88c6b0f42b63a97c59d836555db0241fcd7974fb31fa7d2b8789b1eafd62ca6cf8395c708139d82e582533cd12e6b WHIRLPOOL 767d6b9fb354ae8e70de6077fcebf24e567e448117b73536c54097c8b6ebf2c6f2e5d05dd0ed4d24a9ca21b273986b7b429bbbd4837450a754a2e8d8488a58b4
+MISC metadata.xml 317 SHA256 d35e532899af68853173b66679df599015c23cc1b8dd0a351eea5321d938c8bf SHA512 4e3f634378fd3dcd721af5e038a2331fab376c3625cb8b9dce6a87921886602ff75d308fc9d7f887a65cda607e9e635fb59e86b1da0c7c11a75860229f90c3c9 WHIRLPOOL 87ee6bea80c4d50cfb0ba4a7ba15c64ab80179fe4c99d2bf114c8ae4e16e1da7a7db7f9699a03d50bfb97e7c9cba96e10a8a422a8fae1efe26c4be6d1690a6a5
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-r1.ebuild b/dev-python/logilab-common/logilab-common-1.2.2-r1.ebuild
new file mode 100644
index 000000000000..e31fdcd05d44
--- /dev/null
+++ b/dev-python/logilab-common/logilab-common-1.2.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2017 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="http://www.logilab.org/project/logilab-common https://pypi.python.org/pypi/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() {
+ 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/pytest.1
+ find "${D}" -name '*.pth' -delete || die
+}
+
+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.2.2.ebuild b/dev-python/logilab-common/logilab-common-1.2.2.ebuild
new file mode 100644
index 000000000000..f01e88a34a5a
--- /dev/null
+++ b/dev-python/logilab-common/logilab-common-1.2.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2017 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="http://www.logilab.org/project/logilab-common https://pypi.python.org/pypi/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/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>