summaryrefslogtreecommitdiff
path: root/dev-python/attrs
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/attrs
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/attrs')
-rw-r--r--dev-python/attrs/Manifest7
-rw-r--r--dev-python/attrs/attrs-16.3.0-r1.ebuild37
-rw-r--r--dev-python/attrs/attrs-17.2.0.ebuild33
-rw-r--r--dev-python/attrs/files/test_funcs-too-slow.patch21
-rw-r--r--dev-python/attrs/metadata.xml16
5 files changed, 114 insertions, 0 deletions
diff --git a/dev-python/attrs/Manifest b/dev-python/attrs/Manifest
new file mode 100644
index 000000000000..5458bc207ecb
--- /dev/null
+++ b/dev-python/attrs/Manifest
@@ -0,0 +1,7 @@
+AUX test_funcs-too-slow.patch 735 SHA256 08e952c2959186ba8f1734ba49428e1c0ffb941e439dc64fc4596c304b992678 SHA512 b6fee394c95a9c46dd822c8f36261b909a3a3de905e5b057d5026b9d204c01edc01f566336f3c06ee4f5b85da32f2dcd30fc73849d454c6446c63a0b08413140 WHIRLPOOL 2e222af72ee1c5cd46b4c80ac15e001c1533738e2e7f7eb5403ef26bbd8bfd27effb9e36d259821f3a386ff3f5115e1108f794aa325a435c945c8070efb2bff9
+DIST attrs-16.3.0.tar.gz 57512 SHA256 80203177723e36f3bbe15aa8553da6e80d47bfe53647220ccaa9ad7a5e473ccc SHA512 1a91e6f27ecaf20c409c3abf88ffed5c6cfdbba8cff44637399b713271ff838a054f5859dd29440b2780d81b40673033e3f8e43dd491bece72e0a4f08c4ef688 WHIRLPOOL 85d53df74265b6db36171ad84c21321fd8f4b3c345ea65c46b627a25e586399c8cd7d3231417c7450ea9bb8237286434828f1c795759bdcf4d459f63555c8636
+DIST attrs-17.2.0.tar.gz 73733 SHA256 5d4d1b99f94d69338f485984127e4473b3ab9e20f43821b0e546cc3b2302fd11 SHA512 02243e59ff417deddb330e841d42c0f43d3bea4435f114d3a9a8f4c3bd424c2ef565c630d179db7b3687d22091bf6e619de661171248c0ff0a0e5ec5f9bf7e21 WHIRLPOOL 422abbabec76ca9932f071c5f8ca77afecbbbc08b0cc7e199588a945afe215aa9509922a667fd1a2da7e8fd79b8abd29c366c42c4dad2d538f2487729c4450bb
+EBUILD attrs-16.3.0-r1.ebuild 872 SHA256 95308a7dbe1139d29ae178ec834c2e12c862c004008bac34bbfc908a71c67894 SHA512 0dc1492fe4e01f0ea6296b2ec19dd0f231b47967a00623a38e2f53d0ee92c1bda8fbc8fdd46662aa2acbe43ac4f656cb067c7186f73e80dd57ec0963c42c4c89 WHIRLPOOL 21faf80f7748d0c93b52490da178748c4873ddb6af23bfebda863bf8071b85c4a83c5047f88c3b418e9ca2c201200f8de421ac9064b8bec0a6ecd03e26064c77
+EBUILD attrs-17.2.0.ebuild 859 SHA256 bede9e2a834db58302589c420fc72296e82a3de2e456af4ff25982dd9ec52eac SHA512 3e563089041386f811f779bc7d5178df7c1fd8409749bdd84fa6efe04543c24cf61d4da231fd658f0a8b74c332b8c7ff8f6482c868986e14e13dca6e051f0d69 WHIRLPOOL 4d88f62dd2134196bd6cf98e441082fde1de2e6796092c241503ffdd478534421c811e828f616528da5276b2388677e6fa40626c58fbedb06a6dabc028faaaa5
+MISC ChangeLog 851 SHA256 fd78a5f76e806dadc226c364b7164813c830812f3e2bb4a8990b0384a500fee3 SHA512 70095dfa30df08d05f372b239ce7771d827e88ed50ff7dca81c305d3838b91bd76f2f34d9b46c7e5a0a0d3e08509cb3cb3294f54818c2aaf9473e7a87331cc8b WHIRLPOOL 4ca24ac7b1454cfaa3d1b75bc1baad322856f63f4afbcdf4a8191b4bda70f7f2f907d2c3742e54a72463bc4c442c5a635c11ffda372dcf8510745dd0dc1fcd9a
+MISC metadata.xml 488 SHA256 fb0296355f64263cbd723fb549bb4c95ab2ff9588270c72771a581871788a676 SHA512 d8336a60cb0b2b8d51a9833c0ba3d47acb29ec4942b2f03b750d407bcbb65461d867470226bee962a8e585cfd4ff11bfff67b66ed2270f9efbf35d3c46bbdda1 WHIRLPOOL 2d3ae426ddadf78cc86918259522e47ad71e763c45b215056e5f249be52d78ef8f0cee9e0947d3f37c2674938fc204a9f8479fdbf8b1f4df190058897a1525cc
diff --git a/dev-python/attrs/attrs-16.3.0-r1.ebuild b/dev-python/attrs/attrs-16.3.0-r1.ebuild
new file mode 100644
index 000000000000..dac2d9e2c39c
--- /dev/null
+++ b/dev-python/attrs/attrs-16.3.0-r1.ebuild
@@ -0,0 +1,37 @@
+# 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 )
+
+inherit distutils-r1
+
+DESCRIPTION="Attributes without boilerplate"
+HOMEPAGE="
+ https://github.com/hynek/attrs
+ https://attrs.readthedocs.org/
+ http://pypi.python.org/pypi/attrs"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ppc ppc64 ~s390 ~sh sparc x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="dev-python/zope-interface[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-lang/python[sqlite]
+ >=dev-python/hypothesis-3.6.0[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/test_funcs-too-slow.patch
+)
+
+python_test() {
+ py.test -v -v || die
+}
diff --git a/dev-python/attrs/attrs-17.2.0.ebuild b/dev-python/attrs/attrs-17.2.0.ebuild
new file mode 100644
index 000000000000..ad915df95f6d
--- /dev/null
+++ b/dev-python/attrs/attrs-17.2.0.ebuild
@@ -0,0 +1,33 @@
+# 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{,3} )
+
+inherit distutils-r1
+
+DESCRIPTION="Attributes without boilerplate"
+HOMEPAGE="
+ https://github.com/hynek/attrs
+ https://attrs.readthedocs.org/
+ http://pypi.python.org/pypi/attrs"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+
+RDEPEND="dev-python/zope-interface[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-lang/python[sqlite]
+ >=dev-python/hypothesis-3.6.0[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+python_test() {
+ py.test -v || die "tests failed with ${EPYTHON}"
+}
diff --git a/dev-python/attrs/files/test_funcs-too-slow.patch b/dev-python/attrs/files/test_funcs-too-slow.patch
new file mode 100644
index 000000000000..4d0698ed7de5
--- /dev/null
+++ b/dev-python/attrs/files/test_funcs-too-slow.patch
@@ -0,0 +1,21 @@
+diff --git a/tests/test_funcs.py b/tests/test_funcs.py
+index 36969c7..00da655 100644
+--- a/tests/test_funcs.py
++++ b/tests/test_funcs.py
+@@ -8,7 +8,7 @@ from collections import OrderedDict, Sequence, Mapping
+
+ import pytest
+
+-from hypothesis import assume, given, strategies as st
++from hypothesis import assume, given, strategies as st, settings, HealthCheck
+
+ from .utils import simple_classes, nested_classes
+
+@@ -57,6 +57,7 @@ class TestAsDict(object):
+ ), dict_factory=dict_class)
+
+ @given(nested_classes, st.sampled_from(MAPPING_TYPES))
++ @settings(suppress_health_check=[HealthCheck.too_slow])
+ def test_recurse_property(self, cls, dict_class):
+ """
+ Property tests for recursive asdict.
diff --git a/dev-python/attrs/metadata.xml b/dev-python/attrs/metadata.xml
new file mode 100644
index 000000000000..773a1e1640a2
--- /dev/null
+++ b/dev-python/attrs/metadata.xml
@@ -0,0 +1,16 @@
+<?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">attrs</remote-id>
+ <maintainer status="unknown">
+ <email>hs@ox.cx</email>
+ <name>Hynek Schlawack</name>
+ </maintainer>
+ <remote-id type="github">hynek/attrs</remote-id>
+ </upstream>
+</pkgmetadata>