summaryrefslogtreecommitdiff
path: root/dev-python/oauth2
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/oauth2
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/oauth2')
-rw-r--r--dev-python/oauth2/Manifest7
-rw-r--r--dev-python/oauth2/files/1.9.0_p1-exclude-tests.patch11
-rw-r--r--dev-python/oauth2/metadata.xml12
-rw-r--r--dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild39
-rw-r--r--dev-python/oauth2/oauth2-1.9.0_p1.ebuild34
5 files changed, 103 insertions, 0 deletions
diff --git a/dev-python/oauth2/Manifest b/dev-python/oauth2/Manifest
new file mode 100644
index 000000000000..db92f82764a7
--- /dev/null
+++ b/dev-python/oauth2/Manifest
@@ -0,0 +1,7 @@
+AUX 1.9.0_p1-exclude-tests.patch 332 SHA256 a9e2a5b4db1fc02dd40210a80f54682f0f2425ab0165dbb02403f9c923bb687f SHA512 9b4b45d22076517ac6e79ecd74430ee7e53501aea07f0e2c43bae3c119e572d9357dfc32adb036920f4ff15c1344ea3cde20e79ee4c609508feeb9fac3293c57 WHIRLPOOL cfde7c812e8fe6103d05cd30e7a945b939b6417bc20c2041125d045f93c842b09f6bac24b4580b26cfad37143d2d42dcf752a57fde8f19af5d291a2f1c6bc47e
+DIST oauth2-1.9.0.post1.tar.gz 21306 SHA256 c006a85e7c60107c7cc6da1b184b5c719f6dd7202098196dfa6e55df669b59bf SHA512 a3b64eef331d4c4f59c275f14efb2dfb48ad60de47a59a88106f60d64428a09b76d8bedf08c98c113493968d83708b1478b4b61b2b5528b5b01fa22777daff4c WHIRLPOOL 11d7cdf610d297a909e8ae61bbdf8765b8ffbec4cf83cfa81a097619194bfbcec3ce8967e699b6ba56076c84e30fc5747c5f83895997b7e54e19a0c45ed39e5b
+EBUILD oauth2-1.9.0_p1-r1.ebuild 1016 SHA256 7bc628a9f0a38eb828f3c6bbbcf39501f57f0f7830dd70782bc5c886cb60ac5f SHA512 373d863c78f786d049843ef6ca824bf2f1733f95a9c51700172410295a51f19e9415266ddb0f963047c550eec5fa6ec331c5a9f92053ff447ec54460987631b4 WHIRLPOOL 4aafebaeaf2b2ea7a1668b9550a5fa43a14759e75f3bbe35659f3a8f544bcf5684591e3009efe0bc54fb41f2e0f56a6e42d4792c25a70351302a775aedc12a3d
+EBUILD oauth2-1.9.0_p1.ebuild 728 SHA256 f9ad999d777ca4ac2b043d026f6b921238670699d9cc294bfa8ff644e0e0d7b2 SHA512 186f2d908ea528e235562a8fe921e9d4a1440cadb5ddaa31eeda57cb86f066e9ab4b8b94b6b9e79d80f5d80e232ffd72ab0fb5dfa5583c0a4e980a96e117b595 WHIRLPOOL 7e497fe778f5d7670c906ad3e146aab8746edc32eecb4d3e3253b7bec832ab5ba017c315add820090f6006d1a847fa1fbb55058896b4d91ebcf9fd9a15ec638f
+MISC ChangeLog 3604 SHA256 edb04b3b28ecdefcdd3a541a83dfbde24dd786d75d6f1795abce52660faad364 SHA512 879dbf0bd81c8213a820b9e3882a98b8ee1048ba66eaac67db0fd11fd5c0e84bc599fb52bcc7237b67f1becc304d84ada4aa065f3e7e1e42e114cd6e223e0c21 WHIRLPOOL 1a70e32632827186793494434a56b8abe3732ce29849434f7bcca137d3f909a4854e34549e2019487182c927a4b4463e491125ff76cb01de960b0b18f30cc612
+MISC ChangeLog-2015 1779 SHA256 c73c5eb78efa0b2f9cb55163fa3b3c7f7af8dacfef391dc22626377062e43934 SHA512 44e86c6c45ea0e94e70120bfbe1b4a1441c168eb5dc53e2768251df6bdaf4735d754aa89e1a68058fb6af94c5316ecb14dd29ae5b4331205b44e984470a2b06b WHIRLPOOL 206f8aba051b73db4a37dc954640cf0df0f555c900e6d4ff66e9f47062214972a37c1fce00fe66c58a8f0e54f7a1e1f5c52d4c904892f2ec4004beda7abefcfc
+MISC metadata.xml 371 SHA256 7b23721edb9b536d08f1f121b5d30892091af190eba2d1ba249a70de1470b78d SHA512 292d51b2e24153b3351aa1a78e5246ecc0d36f21697f0637390ee5869b770bc24a9dcf01fa26e8ab6feeb61902bbc34659f34969537eac0c647445c03cb086da WHIRLPOOL 87e34d2622cab7e564f8dc72d7adc36e1340577e20275b3d9d8f3de50a0d16040b1f60d6dd44ffaa12a506bf6e181d5c93ef4b41393afa5de6d0b0eaaf3c4170
diff --git a/dev-python/oauth2/files/1.9.0_p1-exclude-tests.patch b/dev-python/oauth2/files/1.9.0_p1-exclude-tests.patch
new file mode 100644
index 000000000000..0d3a0fa962af
--- /dev/null
+++ b/dev-python/oauth2/files/1.9.0_p1-exclude-tests.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -45,7 +45,7 @@
+ "Natural Language :: English",
+ "License :: OSI Approved :: MIT License"
+ ],
+- packages = find_packages(),
++ packages = find_packages(exclude=['tests']),
+ install_requires = ['httplib2'],
+ license = "MIT License",
+ keywords="oauth",
diff --git a/dev-python/oauth2/metadata.xml b/dev-python/oauth2/metadata.xml
new file mode 100644
index 000000000000..88a621eb46ee
--- /dev/null
+++ b/dev-python/oauth2/metadata.xml
@@ -0,0 +1,12 @@
+<?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">oauth2</remote-id>
+ <remote-id type="github">joestump/python-oauth2</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild b/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild
new file mode 100644
index 000000000000..d41d8af9ac43
--- /dev/null
+++ b/dev-python/oauth2/oauth2-1.9.0_p1-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
+
+inherit distutils-r1
+
+MY_P="${P/_p/.post}"
+
+DESCRIPTION="Library for OAuth version 1.0"
+HOMEPAGE="https://pypi.python.org/pypi/oauth2"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x64-macos"
+IUSE="test"
+
+RDEPEND="dev-python/httplib2[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND}
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pytest-runner[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ )"
+
+# https://github.com/joestump/python-oauth2/pull/212
+PATCHES=( "${FILESDIR}/${PV}-exclude-tests.patch" )
+S="${WORKDIR}/${MY_P}"
+
+python_test() {
+ # Skip tests which require network access
+ py.test -k "not (test_access_token_post or test_access_token_get \
+ or test_two_legged_post or test_two_legged_get)" || die \
+ "tests failed with ${EPYTHON}"
+}
diff --git a/dev-python/oauth2/oauth2-1.9.0_p1.ebuild b/dev-python/oauth2/oauth2-1.9.0_p1.ebuild
new file mode 100644
index 000000000000..f4dca70da95d
--- /dev/null
+++ b/dev-python/oauth2/oauth2-1.9.0_p1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 python3_4 pypy )
+
+inherit distutils-r1
+
+MY_P="${P/_p/.post}"
+
+DESCRIPTION="Library for OAuth version 1.0"
+HOMEPAGE="https://pypi.python.org/pypi/oauth2"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x64-macos"
+IUSE="test"
+
+RDEPEND="dev-python/httplib2[${PYTHON_USEDEP}]"
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND}
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )"
+
+PATCHES=( "${FILESDIR}/${PV}-exclude-tests.patch" )
+S="${WORKDIR}/${MY_P}"
+
+python_test() {
+ esetup.py test
+}