summaryrefslogtreecommitdiff
path: root/dev-python/epsilon
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/epsilon
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/epsilon')
-rw-r--r--dev-python/epsilon/Manifest8
-rw-r--r--dev-python/epsilon/epsilon-0.7.0.ebuild55
-rw-r--r--dev-python/epsilon/epsilon-0.7.1.ebuild59
-rw-r--r--dev-python/epsilon/files/epsilon_plugincache_portagesandbox.patch12
-rw-r--r--dev-python/epsilon/metadata.xml16
5 files changed, 150 insertions, 0 deletions
diff --git a/dev-python/epsilon/Manifest b/dev-python/epsilon/Manifest
new file mode 100644
index 000000000000..05bd4f062ff6
--- /dev/null
+++ b/dev-python/epsilon/Manifest
@@ -0,0 +1,8 @@
+AUX epsilon_plugincache_portagesandbox.patch 537 SHA256 4a09ec36e84b6dbc9b0ad62db969722e72d3b1b28e5713389aba5bd77af286a6 SHA512 44aa8441d22951e573ddb6771f452c400bd971ae8cd17994959717c6d543d519bc9f2e0721e38815210048f553ca60fcc09260cd1fac1a4fc78c51055c7a6acc WHIRLPOOL a8a4df9f8ce3d89d341d0e1730512aefd0704e4782849fbf6503264d96673ba7b6d29771ae2b4170ce67112d47103a1765a38b625bbfeb1a337b9aab13953dee
+DIST Epsilon-0.7.0.tar.gz 81218 SHA256 81419d50b17a20efd75440d43e4b07fe3c2a5e6d619f39318dab9031a0680032 SHA512 d1927ca431df3233a94296ca9e1f5dd70d6d61091d23f77df2222c6472d9a5f7b55c5c8dd2a75d0fead41af862c9e3a6a0ea9a31e21447459d5182f0d677d9b2 WHIRLPOOL 8cbab28e5e05b44b521c5f66494de1e2f4bee7713487cfb9d87bfcc108dc05b6534919934fd53cb1b0dc7aee633187351973b78cfdabf0584d6b294104a05a57
+DIST Epsilon-0.7.1.tar.gz 96820 SHA256 419ab2de80e6b201455775a939c158259af90695e59474a4a7bb3cd522a7193b SHA512 ecf34a402208e514c430b4b3785df9b29f3708026ceba1301a2db8760b55111f59e7c40f868f4b642e4c7dd6c78735edbc32b2ef96ec3582e90aa2d978f06842 WHIRLPOOL 69de1d74457ce6f376537c1a8ba3adbf8cae7b2e7325d8a61ba1a1a83e1b2cc88794b5016fa37b1808e32ff61834cb215b30146d93a0e6416623afd6a4609c08
+EBUILD epsilon-0.7.0.ebuild 1710 SHA256 701a2854d4f17066f250f4ca74430edd262d4beabb7a0f68ccc857569390adc0 SHA512 0d0d540dd896717b4bb28ccb74121be60a20bbf64920cc4e7f5b367f044844e8d00272856c5737ad47029aa8a55c99ed41223acfd37b7141d36329cfd70f8b6c WHIRLPOOL fd94cfdf6af6513d42c52fcaf89a7567e16371ca829374e3080a15214d514438b729e3bac7c02f34126552540362079ab46729e83c3f745870d7b0b693414646
+EBUILD epsilon-0.7.1.ebuild 1756 SHA256 4ff6b9879be21a420642195b1d163af8dde02f5c8c688142b41038d3fac379bd SHA512 ac00e17ce63f18f70f7b127263630e9dfbf19f5c1c8ea8b2e474174d5f7d0c13a23b956d79d72f6468df39a0fd465dcbbe7e5e55bf25fc6f0a0ac5283efdc3b8 WHIRLPOOL cfc88b8abffb9dd3710df019b619782660ef7f58cba6b84d502634a14531e98bcefc7119075d7f63213b542a782d40ebca44e6e481cab54d1113c5b2a19bad8f
+MISC ChangeLog 3135 SHA256 0c5d582017a320d585920ca513c54abe0505d4b5388928dbe3e83cb9be5542c8 SHA512 fe9b7aa84578c8d8f29a14c4f9decea720659f98b77504849d2e43f1cc40c7f92f41a24c8885ff60584cc863fe89840a5853b26f09cd1c5aa02a990df27dcbfa WHIRLPOOL f36d804b0df78f16984275ff89ee0e660096e8feb107f1e8012b38dc265041e80048032095f65a9f916c45929c2ac11b56ff9e35ace3589726a1b22cf113c248
+MISC ChangeLog-2015 5462 SHA256 a729901e9825758e4390d34e3d4d0aced126193999c1ebc480f5e3e2d4a18290 SHA512 7ac3765ce9c91e42b9de68fe1dee4eaf14983304e79441bae37e31033d9869a7dac3a0d7fbda5ae69b189a79ea41a417eecf55c622edeec3a97682cf4625901b WHIRLPOOL 387f824e24616f579efbed57ac2a0cb28c2a46d60e8993330032781d6afa78fcdc0bf3d22fb844a1017830989204e6d7d7c812dbaa4e27e135896a1b356623bb
+MISC metadata.xml 652 SHA256 35eb8d599e013d51d12d196bcc19311daa3987bd51e2d82dc503f6d31cbc8174 SHA512 aad17bdfe9501dda95cf69d3b8069ec9dfe624a07c5f0ce4160cca62928217a16140a7188d87ffe46f0626624e25ae764db892170fad6f9f0bafff7dbb413d30 WHIRLPOOL b164417d71a2b5b640dafeb1fce3603c2b2ebc76c058cf3a7aa2a71d27df540b9443e7ad8e2f3afbe9baad3f926f1f7e48ea55d506b69301f42d9141f9a3afe9
diff --git a/dev-python/epsilon/epsilon-0.7.0.ebuild b/dev-python/epsilon/epsilon-0.7.0.ebuild
new file mode 100644
index 000000000000..0d7e44bcf2e9
--- /dev/null
+++ b/dev-python/epsilon/epsilon-0.7.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit twisted-r1 eutils
+
+DESCRIPTION="Epsilon is a Python utilities package, most famous for its Time class"
+HOMEPAGE="https://github.com/twisted/epsilon https://pypi.python.org/pypi/Epsilon"
+SRC_URI="mirror://pypi/${TWISTED_PN:0:1}/${TWISTED_PN}/${TWISTED_P}.tar.gz"
+
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE="test"
+
+RDEPEND=">=dev-python/twisted-core-13.2.0[${PYTHON_USEDEP}]
+ >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+ ${DEPEND}"
+
+PATCHES=( "${FILESDIR}/epsilon_plugincache_portagesandbox.patch" )
+
+# epsilon doesn't install any plugins, so override the default
+TWISTED_PLUGINS=()
+
+python_prepare_all() {
+ # Rename to avoid file-collisions
+ mv bin/benchmark bin/epsilon-benchmark
+ sed -i \
+ -e "s#bin/benchmark#bin/epsilon-benchmark#" \
+ setup.py || die "sed failed"
+
+ #These test are removed upstream
+ rm -f epsilon/test/test_sslverify.py epsilon/sslverify.py || die
+ #See bug 357157 comment 5 for Ian Delaney's explanation of this fix
+ sed -e 's:month) 2004 9:month) 2004 14:' \
+ -i epsilon/test/test_extime.py || die
+ # Release tests need DivmodCombinator.
+ rm -f epsilon/test/test_release.py* epsilon/release.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ dodoc NAME.txt NEWS.txt
+
+ distutils-r1_python_install_all
+}
+
+#Lets run some tests, having prepped them
+python_test() {
+ # No testrunner seems stipulated within the source; pytest and nosetests both work
+ nosetests ${PN}/test || die "testsuite failed under ${EPYTHON}"
+}
diff --git a/dev-python/epsilon/epsilon-0.7.1.ebuild b/dev-python/epsilon/epsilon-0.7.1.ebuild
new file mode 100644
index 000000000000..f52a5827fc01
--- /dev/null
+++ b/dev-python/epsilon/epsilon-0.7.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+PYTHON_COMPAT=( python2_7 )
+
+inherit twisted-r1
+
+DESCRIPTION="Epsilon is a Python utilities package, most famous for its Time class"
+HOMEPAGE="https://github.com/twisted/epsilon https://pypi.python.org/pypi/Epsilon"
+SRC_URI="mirror://pypi/${TWISTED_PN:0:1}/${TWISTED_PN}/${TWISTED_P}.tar.gz"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+
+RDEPEND="
+ || (
+ dev-python/twisted[${PYTHON_USEDEP}]
+ >=dev-python/twisted-core-13.2.0[${PYTHON_USEDEP}]
+ )
+ >=dev-python/pyopenssl-0.13[${PYTHON_USEDEP}]"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/nose[${PYTHON_USEDEP}] )
+ ${DEPEND}"
+
+PATCHES=( "${FILESDIR}/epsilon_plugincache_portagesandbox.patch" )
+
+# epsilon doesn't install any plugins, so override the default
+TWISTED_PLUGINS=()
+
+python_prepare_all() {
+ # Rename to avoid file-collisions
+ mv bin/benchmark bin/epsilon-benchmark
+ sed -i \
+ -e "s#bin/benchmark#bin/epsilon-benchmark#" \
+ setup.py || die "sed failed"
+
+ #These test are removed upstream
+ rm -f epsilon/test/test_sslverify.py epsilon/sslverify.py || die
+ #See bug 357157 comment 5 for Ian Delaney's explanation of this fix
+ sed -e 's:month) 2004 9:month) 2004 14:' \
+ -i epsilon/test/test_extime.py || die
+ # Release tests need DivmodCombinator.
+ rm -f epsilon/test/test_release.py* epsilon/release.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_install_all() {
+ dodoc NAME.txt NEWS.txt
+
+ distutils-r1_python_install_all
+}
+
+#Lets run some tests, having prepped them
+python_test() {
+ # No testrunner seems stipulated within the source; pytest and nosetests both work
+ nosetests ${PN}/test || die "testsuite failed under ${EPYTHON}"
+}
diff --git a/dev-python/epsilon/files/epsilon_plugincache_portagesandbox.patch b/dev-python/epsilon/files/epsilon_plugincache_portagesandbox.patch
new file mode 100644
index 000000000000..06bd55732011
--- /dev/null
+++ b/dev-python/epsilon/files/epsilon_plugincache_portagesandbox.patch
@@ -0,0 +1,12 @@
+--- epsilon/setuphelper.py.orig 2009-02-11 08:15:39.000000000 +0100
++++ epsilon/setuphelper.py 2009-02-11 08:18:56.000000000 +0100
+@@ -21,6 +21,9 @@
+ def _regeneratePluginCache(pluginPackages):
+ print 'Regenerating cache with path: ',
+ pprint.pprint(sys.path)
++ if os.getenv("PORTAGE_PLUGINCACHE_NOOP") != None:
++ print 'Not regenerating plugin cache for portage sandbox usage.'
++ return
+ from twisted import plugin
+ for pluginModule in pluginModules([
+ p + ".plugins" for p in pluginPackages]):
diff --git a/dev-python/epsilon/metadata.xml b/dev-python/epsilon/metadata.xml
new file mode 100644
index 000000000000..223df38b1fda
--- /dev/null
+++ b/dev-python/epsilon/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>
+ <longdescription lang="en">A small utility package that depends on tools too recent for Twisted
+ (like datetime in python2.4) but performs generic enough functions
+ that it can be used in projects that don't want to share Divmod's
+ other projects' large footprint.</longdescription>
+ <upstream>
+ <remote-id type="pypi">Epsilon</remote-id>
+ <remote-id type="github">twisted/epsilon</remote-id>
+ </upstream>
+</pkgmetadata>