[gentoo-commits] repo/gentoo:master commit in: dev-python/timelib/

2017-05-17 Thread Michał Górny
commit: 013d30247400ad85bd7ed4db521db72300ab9687
Author: Michał Górny  gentoo  org>
AuthorDate: Wed May 17 19:21:09 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed May 17 20:51:10 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=013d3024

dev-python/timelib: Disable python3*

This package clearly does not support Python 3. Using the documented
APIs (and running the tests) causes wrong type exceptions. They could
be worked around via passing bytes around but that's not the documented
API.

The only reverse dependency is app-admin/salt which is 2.7-only.

 dev-python/timelib/timelib-0.2.4-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/timelib/timelib-0.2.4-r1.ebuild 
b/dev-python/timelib/timelib-0.2.4-r1.ebuild
index e5051a96261..00549a75f07 100644
--- a/dev-python/timelib/timelib-0.2.4-r1.ebuild
+++ b/dev-python/timelib/timelib-0.2.4-r1.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+PYTHON_COMPAT=( python2_7 )
 
 inherit distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/timelib/

2017-05-17 Thread Michał Górny
commit: 25999628212bf5d4370403336d7bb48fec14a0ef
Author: Michał Górny  gentoo  org>
AuthorDate: Wed May 17 19:20:49 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Wed May 17 20:51:10 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25999628

dev-python/timelib: Enable tests

 dev-python/timelib/Manifest|  2 +-
 dev-python/timelib/timelib-0.2.4-r1.ebuild | 19 ---
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/dev-python/timelib/Manifest b/dev-python/timelib/Manifest
index a0da5d42edd..be077baf33e 100644
--- a/dev-python/timelib/Manifest
+++ b/dev-python/timelib/Manifest
@@ -1 +1 @@
-DIST timelib-0.2.4.zip 281070 SHA256 
49142233bdb5971d64a41e05a1f80a408a02be0dc7d9f8c99e7bdd0613ba81cb SHA512 
871683756318f8896592e154a6949e6c96f9b9177ecd8694db2a48b16104cf35d11f550355a4723a097e9f17e3b7020d09a23916bd55a3dd463c22bed68991af
 WHIRLPOOL 
941e3bccb1fba22eb54530c111ed0cbad136481e1e4f9c7107ae82625452b3534ad0b218b08eaf542efa159bc5df3afd49346cbc4fa297471998bd4412d3154b
+DIST timelib-0.2.4.tar.gz 295951 SHA256 
7e6e5a103ce0447f9f91a56fd5d9cf54a1e5cece722b52e53d1b0bb9413248c2 SHA512 
b19ef411f7a6d4f9e43e4de2a4c57f1f430b5c16ec88f7c3f72e8a2f6950a2e94c1ce3792203ba3add07994d1a8eaec4172aa09315b39df4494430e30ebd880b
 WHIRLPOOL 
14ca47e9595117df0a45704daaf4d71721aa4ad9a5b06e006da1e71f37a76b6b04911187729206127608ca3d4ce7d6070735e60ccff4a4ca4549ea41b18f83aa

diff --git a/dev-python/timelib/timelib-0.2.4-r1.ebuild 
b/dev-python/timelib/timelib-0.2.4-r1.ebuild
index 2b2634b03ff..e5051a96261 100644
--- a/dev-python/timelib/timelib-0.2.4-r1.ebuild
+++ b/dev-python/timelib/timelib-0.2.4-r1.ebuild
@@ -2,19 +2,24 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
 
 inherit distutils-r1
 
 DESCRIPTION="parse english textual date descriptions"
-HOMEPAGE="https://pypi.python.org/pypi/timelib;
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.zip"
+HOMEPAGE="https://github.com/pediapress/timelib 
https://pypi.python.org/pypi/timelib;
+# pypi zipball lacks tests; also it's .zip
+SRC_URI="https://github.com/pediapress/timelib/archive/${PV}.tar.gz -> 
${P}.tar.gz"
 
 LICENSE="PHP-3.01 ZLIB"
 SLOT="0"
 KEYWORDS="amd64 x86"
-IUSE=""
+IUSE="test"
 
-DEPEND="app-arch/unzip
-   dev-python/setuptools[${PYTHON_USEDEP}]"
-RDEPEND=""
+DEPEND="dev-python/cython[${PYTHON_USEDEP}]
+   dev-python/setuptools[${PYTHON_USEDEP}]
+   test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
+
+python_test() {
+   py.test -v || die "Tests fail with ${EPYTHON}"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/timelib/

2017-05-17 Thread Manuel Rüger
commit: 734aa98ad11f816de5198d1421b7aafe7860c816
Author: Manuel Rüger  gentoo  org>
AuthorDate: Wed May 17 18:05:42 2017 +
Commit: Manuel Rüger  gentoo  org>
CommitDate: Wed May 17 18:05:42 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=734aa98a

dev-python/timelib: Add python3_6

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-python/timelib/timelib-0.2.4-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/timelib/timelib-0.2.4-r1.ebuild 
b/dev-python/timelib/timelib-0.2.4-r1.ebuild
index 99b93fce5a7..2b2634b03ff 100644
--- a/dev-python/timelib/timelib-0.2.4-r1.ebuild
+++ b/dev-python/timelib/timelib-0.2.4-r1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
-PYTHON_COMPAT=( python{2_7,3_4} pypy )
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
 
 inherit distutils-r1