diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/flask-login |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/flask-login')
-rw-r--r-- | dev-python/flask-login/Manifest | 6 | ||||
-rw-r--r-- | dev-python/flask-login/files/flask-login-0.3.2-fix-tests-python2.patch | 29 | ||||
-rw-r--r-- | dev-python/flask-login/flask-login-0.3.2-r1.ebuild | 33 | ||||
-rw-r--r-- | dev-python/flask-login/metadata.xml | 12 |
4 files changed, 80 insertions, 0 deletions
diff --git a/dev-python/flask-login/Manifest b/dev-python/flask-login/Manifest new file mode 100644 index 000000000000..de9187a9e79b --- /dev/null +++ b/dev-python/flask-login/Manifest @@ -0,0 +1,6 @@ +AUX flask-login-0.3.2-fix-tests-python2.patch 1115 SHA256 97632887638155950ce8e9808104b60b3c71c36cd4b797603d2b6fef7c739822 SHA512 2796244a27b504feba773d29cf394ed04b8d7812d8989aca9a5dcd58207c3b192545531c23883f9d6828320adfb09f31388e92af72da5d5a2d2e6df05b89282c WHIRLPOOL 601e6dd1e465c921efd41307b9863a50f9dc4e4a7a057a86c14113b67ae3ab4d0f86e9a75d7d2e06a0dc9c22528cf8ec219507dc4afda7346412da8bac2fe0aa +DIST flask-login-0.3.2.tar.gz 38626 SHA256 e7c021eba4f9fb9805e08403a6ee36ce5c7e747e799cc56212bf6c14fce72911 SHA512 c42af6ed7902145cc4778815f247ed88de6df7c929abe0a1f22aca0515495a54d298b2af2b74ba7d5e0ce9b453eee4c4ce03802a3e9ab531137e117e9dcdfc1b WHIRLPOOL 60dacd8c4bec1f96dd934109ecf6517350d5722e2ad1e98524f83d3ac15db4d4329eb05e91f5d78c6664fd54fce8288f70e1157cb53d770816142f7278788675 +EBUILD flask-login-0.3.2-r1.ebuild 901 SHA256 ef43d54a070cf246558dfdad0a1d9403a4fae39f2f85d63ea3e3fdea08c637cd SHA512 f4d365babddfa125a1025cf483bacd034e5d19cc5148d3cfcb6b75d8d50ee93820fee6d5615da046b4847605959fc155ba53ec850e2d7b3da9c4f4b41e666885 WHIRLPOOL ded0c4140dee7e1b8d1fe2073159d7b109290863529d959d8ab8e3e6b74d196c9333b2c387d9b5b4e51a41ee4228d341a09894efe22e46765349467e51578f9a +MISC ChangeLog 3244 SHA256 8938ed94eb02197c63cfaf938b59d61e00691f24fe7ba91b5e7bbc89d39bbb92 SHA512 b8ff4c5cd4622e38b6b4adcf7f965abff51e867cdb7d0c1f547c41009e9cd0374f7ffa77aff24201eb8e0a893f6a09236759ba774d66daad30583d63fb96f21a WHIRLPOOL 9ce89ee175ecb92026dce88371553fd1cd1bc456bef7345acca9089d3d5a156b1c80566a5b03fa90bce2cbd6ff295354467428c990f1bfb10d9ca628356d2273 +MISC ChangeLog-2015 2296 SHA256 ab6020a9c3f49fa96ed67240b6c4ea2f773fac803dfe66329a52d67a24de2155 SHA512 c8d40db9af11c1bd251a871d6495239bb22b0f9edff0f6a8aafc04448566359e79b46a1f33be412ec2c4ba07c6bfd28d39d7219f0d6388e11dfb61510a754c30 WHIRLPOOL 765bb598dfc76e046a8a5de284eb26f1fc596012a07c5b06eccde4291b948435518a92b11d5d6b92fc227a9c46dbac7a560a35b6b2a1737fc3b51f378040bdd0 +MISC metadata.xml 379 SHA256 ae3426afba88aaa903ad7bbbb76c1601c751248b32fed5b1ba1735cdd76b3838 SHA512 fdce43f3694a2e027fd12ca87bd0c964e243dac37a2d31a93c034cf7881097985402f9dc6ac45f02a157914705ddeb77965486506e94f67e0f868cb77a81f6fe WHIRLPOOL aeb4b7ef07c179c728df9452d5a9648b0bb8aafa175615d3d994c849edc008b4568c463c2c7e3e7b1561527b3b95ca15f00b8d93eea29519aa647cb751aa475a diff --git a/dev-python/flask-login/files/flask-login-0.3.2-fix-tests-python2.patch b/dev-python/flask-login/files/flask-login-0.3.2-fix-tests-python2.patch new file mode 100644 index 000000000000..33811abdc7ac --- /dev/null +++ b/dev-python/flask-login/files/flask-login-0.3.2-fix-tests-python2.patch @@ -0,0 +1,29 @@ +diff --git a/test_login.py b/test_login.py +index 3f110e0..0c060f5 100644 +--- a/test_login.py ++++ b/test_login.py +@@ -39,6 +39,7 @@ from flask.ext.login import (LoginManager, UserMixin, AnonymousUserMixin, + if str is not bytes: + unicode = str + ++werkzeug_version = tuple(int(i) for i in werkzeug_version.split('.')) + + @contextmanager + def listen_to(signal): +@@ -1073,14 +1074,14 @@ class LoginTestCase(unittest.TestCase): + # + # Misc + # +- @unittest.skipIf(werkzeug_version.startswith("0.9"), ++ @unittest.skipIf(werkzeug_version >= (0, 9), + "wait for upstream implementing RFC 5987") + def test_chinese_user_agent(self): + with self.app.test_client() as c: + result = c.get('/', headers=[('User-Agent', u'中文')]) + self.assertEqual(u'Welcome!', result.data.decode('utf-8')) + +- @unittest.skipIf(werkzeug_version.startswith("0.9"), ++ @unittest.skipIf(werkzeug_version >= (0, 9), + "wait for upstream implementing RFC 5987") + def test_russian_cp1251_user_agent(self): + with self.app.test_client() as c: diff --git a/dev-python/flask-login/flask-login-0.3.2-r1.ebuild b/dev-python/flask-login/flask-login-0.3.2-r1.ebuild new file mode 100644 index 000000000000..32b9e6928c51 --- /dev/null +++ b/dev-python/flask-login/flask-login-0.3.2-r1.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} pypy ) + +inherit distutils-r1 + +DESCRIPTION="Login session support for Flask" +HOMEPAGE="https://pypi.python.org/pypi/Flask-Login" +SRC_URI="https://github.com/maxcountryman/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +# pypi tarball is missing tests + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +RDEPEND=">=dev-python/flask-0.10[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/blinker[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/unittest2[${PYTHON_USEDEP}]' 'python2*' pypy) + )" + +PATCHES=( "${FILESDIR}/${P}-fix-tests-python2.patch" ) + +python_test() { + nosetests -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/flask-login/metadata.xml b/dev-python/flask-login/metadata.xml new file mode 100644 index 000000000000..4f9b3ffa2782 --- /dev/null +++ b/dev-python/flask-login/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">Flask-Login</remote-id> + <remote-id type="github">maxcountryman/flask-login</remote-id> + </upstream> +</pkgmetadata> |