summaryrefslogtreecommitdiff
path: root/dev-python/django-tastypie
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/django-tastypie
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/django-tastypie')
-rw-r--r--dev-python/django-tastypie/Manifest8
-rw-r--r--dev-python/django-tastypie/django-tastypie-0.13.3.ebuild53
-rw-r--r--dev-python/django-tastypie/django-tastypie-0.9.15.ebuild56
-rw-r--r--dev-python/django-tastypie/files/runtests.patch46
-rw-r--r--dev-python/django-tastypie/metadata.xml17
5 files changed, 180 insertions, 0 deletions
diff --git a/dev-python/django-tastypie/Manifest b/dev-python/django-tastypie/Manifest
new file mode 100644
index 000000000000..a92ec375931f
--- /dev/null
+++ b/dev-python/django-tastypie/Manifest
@@ -0,0 +1,8 @@
+AUX runtests.patch 1660 SHA256 5fc83b5f0cb98c986a147955448948bd091e281ce0d4f1b4e7b48f64b5c1754a SHA512 6f092af9b4ab0f6e32920636f2e1c92d071503d625a99a892b2cdd0d05be4bc2d3c6701afb611a6e1ad598ab70d04d7a205a4b39a25d4f5d73848d5da773a58c WHIRLPOOL 084787dee147c549cf2eee7729d8edc720c1cd6549aa575a1502254f86784ec97ee266cf82b46dbf86840268358c0c7a58217f6b113b249b55c9dc2195221e68
+DIST django-tastypie-0.13.3.tar.gz 231373 SHA256 7a6aac94911a09823e9f9f865d11845bbc9d7627eb44fa010650595c54c4596b SHA512 a4497c2212e1ca6614d69c8c847aedd9b9bb88c7c9083c3eae8bd163e9f61f4402c6adc0a3b2a5632e9d2d7e14b2158bce66d8e62257493edfbd9ca9be9355fb WHIRLPOOL 2f70f71651d1208748745c81d9ddfc84420333397863f4f2635c9575a80ab307059ebdad14eb08cad6f30112dd649d413711abbc6cb6c8fc6afbc96a4f9f3da5
+DIST django-tastypie-0.9.15.tar.gz 206823 SHA256 1509d8a93d4f0e16434469c5af850d3c1c625da902b54216771cc7b25634216a SHA512 dcb26f7bb131e658ff6a2d11ca8eb74db064986cd48e536fb4987a1cfe4c4958e99f60cf173b1bbbbc051f3e55bc31ff28e645a52f526b3a98461daddd865a74 WHIRLPOOL 62503c0f05e429950b2aacdbaeacfa2cc71eee24fad9e365373fda473b7bf54e3a251ec0b3133f128436922abc4ed8182f7405eb4a62e1a40628b2b44b596243
+EBUILD django-tastypie-0.13.3.ebuild 1763 SHA256 e03f93211e942ca3924b1ca944209aa93457d4e0d73691164a000623b1cef133 SHA512 389240772a63b107c28686b1dc502a94de42c03d9db05af3aaed780ff79e5115fe0ca98909292e4b80886490066ef80efbf6e0a1a908396e1a7097c63eccd6a2 WHIRLPOOL 41137f71357a8dd9d1ee0741883638bebfb31cf29f496acef636b86f103d453a1d586c6a552d262427dadf5f980ee2741f3b9ef5bba79ec232320284a1a302b8
+EBUILD django-tastypie-0.9.15.ebuild 1646 SHA256 4989d4775d8fc17c320bc4cf81dce46a0aa4dd1022260a3ed5529f259aa5bcab SHA512 4d8bead0a1e1d3c4ef6c221abf9b253243a1ae20dcf1e7c3bf810dad7e9c41e1138c9f00c24a82b35ffa578dabf78d434ae4ec7ad00052734f42a68425bf5e86 WHIRLPOOL 2f6c76a9790411f7a567f487648d01c6433b7909f1cf8c0e55ec685cb8a5ae1cc5330ea6ba5b6b6057ebf8322f2b6a31a2366bdef02da8c7ff330609c2bf0945
+MISC ChangeLog 3480 SHA256 5e26211aa39e00f8ee18050c905beac04335d16dfcdc6d94b2470d12f237e19e SHA512 fdcf4a449ddb46308df63ea215b687cd497056e75253402f6a48f9c11b67dce5b90e12a73118f3f0b53f55ff2b131013d66e914e5bbbcd98e1df1c3dbea701d3 WHIRLPOOL 6a479990b5abd16632635c2434cc6c3f3a4ab4b337c3bc35b30f4e0505666ce6743851d0846184c752be225ec3d2288d81bc5fdb2e748295e76860967f71848d
+MISC ChangeLog-2015 2220 SHA256 cb09b43b39b1a7784f543fc66a2ce40c3ce349e404bae37d3bf14f9dd6103c63 SHA512 cfe2888891ce78fd520c33e3e95c797e495b2eb42e69af6b6b67766c9556a3532e6cf130a343b9498a46aa6057f2690146d43a37a8372600bed0309217276e94 WHIRLPOOL 3ba1cc2b9dfee2a97be5690503a2e5f0a182d41c3e70e8a2ff58bbf459d31552e81e8b703d6cca678f069cd80ca7897917cc552c02893f6cbd473c573df2a2c8
+MISC metadata.xml 654 SHA256 e0dc9cd87b692d73becec685f077c1888368b19e3fdbc80b7dd1efae516c3b22 SHA512 83f7c1ae59d1b3d82b11003df3b2cb818dcf3717df311f58c3052ed930b4f5a8405ca4bb3d47462c53cb3c721ab75a7a59ebeba012859cd4f887539582008160 WHIRLPOOL 6c2b0f4aa616f3824c5efa57473d6becf565dc36fed60b05df2139ffe7a2f20428396d1c61318a6cbe37b1ebe6a097a90e7a841bd6b855a64c2f32b6c0ac3dbf
diff --git a/dev-python/django-tastypie/django-tastypie-0.13.3.ebuild b/dev-python/django-tastypie/django-tastypie-0.13.3.ebuild
new file mode 100644
index 000000000000..5cdbffff0d5c
--- /dev/null
+++ b/dev-python/django-tastypie/django-tastypie-0.13.3.ebuild
@@ -0,0 +1,53 @@
+# 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,3_5,3_6} )
+
+inherit distutils-r1
+
+DESCRIPTION="A flexible and capable API layer for django utilising serialisers"
+HOMEPAGE="https://pypi.python.org/pypi/django-tastypie/ https://github.com/toastdriven/django-tastypie"
+SRC_URI="https://github.com/toastdriven/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+IUSE="bip doc test"
+
+LICENSE="BSD"
+SLOT="0"
+
+COMMON_DEPEND=">=dev-python/mimeparse-0.1.4[${PYTHON_USEDEP}]
+ !=dev-python/mimeparse-1.5[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-1.5[${PYTHON_USEDEP}]
+ !=dev-python/python-dateutil-2.0[${PYTHON_USEDEP}]
+ >=dev-python/django-1.7[${PYTHON_USEDEP}]
+ <dev-python/django-1.10[${PYTHON_USEDEP}]"
+
+RDEPEND="${COMMON_DEPEND}
+ bip? ( dev-python/biplist[${PYTHON_USEDEP}] )"
+
+#dev-python/pyyaml is pulled in with django itself
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${COMMON_DEPEND}
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/defusedxml[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '>=dev-python/mock-1.1.0[${PYTHON_USEDEP}]' python2_7)
+ >=dev-python/pytz-2013b[${PYTHON_USEDEP}] )
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}]
+ >=dev-python/django-1.9[${PYTHON_USEDEP}]
+ <dev-python/django-1.10[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '>=dev-python/mock-1.1.0[${PYTHON_USEDEP}]' python2_7)
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )"
+
+REQUIRED_USE="test? ( bip )"
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild b/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild
new file mode 100644
index 000000000000..1c2fb6c36ee2
--- /dev/null
+++ b/dev-python/django-tastypie/django-tastypie-0.9.15.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+RESTRICT="test"
+
+DESCRIPTION="A flexible and capable API layer for django utilising serialisers"
+HOMEPAGE="https://pypi.python.org/pypi/django-tastypie/ https://github.com/toastdriven/django-tastypie"
+SRC_URI="https://github.com/toastdriven/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+KEYWORDS="amd64 x86"
+IUSE="bip doc digest lxml test yaml"
+
+LICENSE="BSD"
+SLOT="0"
+
+RDEPEND=">=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
+ >=dev-python/django-1.3[${PYTHON_USEDEP}]
+ dev-python/pyxml[${PYTHON_USEDEP}]
+ dev-python/defusedxml[${PYTHON_USEDEP}]
+ bip? ( dev-python/biplist[${PYTHON_USEDEP}] )
+ digest? ( dev-python/python-digest[${PYTHON_USEDEP}] )
+ lxml? ( dev-python/lxml[${PYTHON_USEDEP}] )
+ yaml? ( dev-python/pyyaml[${PYTHON_USEDEP}] )"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/oauth2[${PYTHON_USEDEP}]
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/python-digest[${PYTHON_USEDEP}]
+ dev-python/biplist[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ >=dev-python/mimeparse-0.1.3[${PYTHON_USEDEP}]
+ >=dev-python/python-dateutil-2.1[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=( "${FILESDIR}"/runtests.patch )
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ PYTHONPATH=.:tests ./tests/run_all_tests.sh || die
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/_build/html/. )
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/django-tastypie/files/runtests.patch b/dev-python/django-tastypie/files/runtests.patch
new file mode 100644
index 000000000000..473d3338101a
--- /dev/null
+++ b/dev-python/django-tastypie/files/runtests.patch
@@ -0,0 +1,46 @@
+The run tests bash script keeps going on a fail. Patch corrects this for gentoo
+diff -ur django-tastypie-0.9.15.oirg/tests/run_all_tests.sh django-tastypie-0.9.15/tests/run_all_tests.sh
+--- tests/run_all_tests.sh 2013-05-03 10:36:43.000000000 +0800
++++ tests/run_all_tests.sh 2013-06-03 13:55:18.633474126 +0800
+@@ -10,9 +10,9 @@
+
+ #Don't run customuser tests if django's version is less than 1.5.
+ if [ $major -lt '2' -a $minor -lt '5' ]; then
+- ALL="core basic alphanumeric slashless namespaced related validation gis content_gfk authorization"
++ ALL="core basic alphanumeric slashless namespaced related validation content_gfk authorization"
+ else
+- ALL="core customuser basic alphanumeric slashless namespaced related validation gis content_gfk authorization"
++ ALL="core customuser basic alphanumeric slashless namespaced related validation content_gfk authorization"
+ fi
+
+
+@@ -26,15 +26,23 @@
+ fi
+
+ for type in $TYPES; do
+- echo "** $type **"
++ echo "** running test $type **"
+
+ if [ $type == 'related' ]; then
+- django-admin.py test ${type}_resource --settings=settings_$type
+- continue
++ if django-admin.py test ${type}_resource --settings=settings_$type; then
++ continue
++ else
++ echo "Test ${type} failed"
++ exit 1
++ fi
+ elif [ $type == 'gis' ]; then
+- createdb -T template_postgis tastypie.db
++ createdb -T template_posttastypie.db
+ fi
+
+- django-admin.py test $type --settings=settings_$type
+- echo; echo
++ if ! django-admin.py test $type --settings=settings_$type; then
++ echo "Test ${type} failed"
++ exit 1
++ else
++ echo; echo
++ fi
+ done
diff --git a/dev-python/django-tastypie/metadata.xml b/dev-python/django-tastypie/metadata.xml
new file mode 100644
index 000000000000..604c1e998c1b
--- /dev/null
+++ b/dev-python/django-tastypie/metadata.xml
@@ -0,0 +1,17 @@
+<?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>
+ <use>
+ <flag name="bip">An optional serialiser dev-python/biplist</flag>
+ <flag name="digest">Library to aid in implementing HTTP Digest Authentication</flag>
+ <flag name="lxml">An optional serialiser dev-python/lxml</flag>
+ <flag name="yaml">An optional serialiser dev-python/yaml</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">toastdriven/django-tastypie</remote-id>
+ </upstream>
+</pkgmetadata>