[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/, dev-python/flask-api/files/

2024-02-03 Thread Michał Górny
commit: cdb28416ebd24408a642a398c4ed3980b713d9fb
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Feb  3 09:31:42 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Feb  3 09:31:42 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdb28416

dev-python/flask-api: Backport >=dev-python/flask-3 support

Signed-off-by: Michał Górny  gentoo.org>

 .../flask-api/files/flask-api-3.1-flask-3.patch| 84 ++
 ...k-api-3.1-r1.ebuild => flask-api-3.1-r2.ebuild} |  9 ++-
 2 files changed, 91 insertions(+), 2 deletions(-)

diff --git a/dev-python/flask-api/files/flask-api-3.1-flask-3.patch 
b/dev-python/flask-api/files/flask-api-3.1-flask-3.patch
new file mode 100644
index ..92eddb8d8df0
--- /dev/null
+++ b/dev-python/flask-api/files/flask-api-3.1-flask-3.patch
@@ -0,0 +1,84 @@
+From 9c998897f67d8aa959dc3005d7d22f36568b6938 Mon Sep 17 00:00:00 2001
+From: Arthur Taylor 
+Date: Sat, 21 Oct 2023 09:53:02 +0200
+Subject: [PATCH] Add compatibility code to deal with Flask and Werkzeug
+ deprecations
+
+---
+ flask_api/helpers.py   |  5 +
+ flask_api/parsers.py   |  2 +-
+ flask_api/renderers.py | 11 +--
+ flask_api/request.py   |  2 +-
+ 4 files changed, 16 insertions(+), 4 deletions(-)
+ create mode 100644 flask_api/helpers.py
+
+diff --git a/flask_api/helpers.py b/flask_api/helpers.py
+new file mode 100644
+index 000..f83dd31
+--- /dev/null
 b/flask_api/helpers.py
+@@ -0,0 +1,5 @@
++def url_decode_stream(stream):
++import urllib
++body = stream.read()
++body_str = body.decode()
++return dict(urllib.parse.parse_qsl(body_str))
+diff --git a/flask_api/parsers.py b/flask_api/parsers.py
+index 56f45f6..d056210 100644
+--- a/flask_api/parsers.py
 b/flask_api/parsers.py
+@@ -2,8 +2,8 @@
+ 
+ from werkzeug.formparser import MultiPartParser as WerkzeugMultiPartParser
+ from werkzeug.formparser import default_stream_factory
+-from werkzeug.urls import url_decode_stream
+ 
++from flask_api.helpers import url_decode_stream
+ from flask_api import exceptions
+ 
+ 
+diff --git a/flask_api/renderers.py b/flask_api/renderers.py
+index a9aed23..b5951a2 100644
+--- a/flask_api/renderers.py
 b/flask_api/renderers.py
+@@ -1,8 +1,8 @@
+ import pydoc
+ import re
+ 
++import flask
+ from flask import current_app, render_template, request
+-from flask.globals import _request_ctx_stack
+ 
+ from flask_api.compat import apply_markdown
+ from flask_api.mediatypes import MediaType
+@@ -95,7 +95,14 @@ def render(self, data, media_type, **options):
+ mock_content = self._html_escape(text)
+ 
+ # Determine the allowed methods on this view.
+-adapter = _request_ctx_stack.top.url_adapter
++if hasattr(flask, 'globals') and \
++hasattr(flask.globals, 'request_ctx'):
++# update session for Flask >= 2.2
++ctx = flask.globals.request_ctx._get_current_object()
++else:  # pragma: no cover
++# update session for Flask < 2.2
++ctx = flask._request_ctx_stack.top
++adapter = ctx.url_adapter
+ allowed_methods = adapter.allowed_methods()
+ 
+ endpoint = request.url_rule.endpoint
+diff --git a/flask_api/request.py b/flask_api/request.py
+index 33c3eaa..647dfc6 100644
+--- a/flask_api/request.py
 b/flask_api/request.py
+@@ -2,9 +2,9 @@
+ 
+ from flask import Request
+ from werkzeug.datastructures import MultiDict
+-from werkzeug.urls import url_decode_stream
+ from werkzeug.wsgi import get_content_length
+ 
++from flask_api.helpers import url_decode_stream
+ from flask_api.negotiation import DefaultNegotiation
+ from flask_api.settings import default_settings
+ 

diff --git a/dev-python/flask-api/flask-api-3.1-r1.ebuild 
b/dev-python/flask-api/flask-api-3.1-r2.ebuild
similarity index 77%
rename from dev-python/flask-api/flask-api-3.1-r1.ebuild
rename to dev-python/flask-api/flask-api-3.1-r2.ebuild
index 10d27309b67b..0f0ad223c49c 100644
--- a/dev-python/flask-api/flask-api-3.1-r1.ebuild
+++ b/dev-python/flask-api/flask-api-3.1-r2.ebuild
@@ -24,13 +24,18 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm64 ~x86"
 
 RDEPEND="
-   https://github.com/flask-api/flask-api/commit/9c998897f67d8aa959dc3005d7d22f36568b6938
+   "${FILESDIR}/${P}-flask-3.patch"
+)
+
 python_install_all() {
local DOCS=( docs/about/release-notes.md docs/api-guide/* docs/index.md 
)
distutils-r1_python_install_all



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2024-01-19 Thread Ionen Wolkens
commit: fc5c133990f586b23c10974d351f904fdf6a4735
Author: Matoro Mahri  matoro  tk>
AuthorDate: Fri Jan 19 02:33:47 2024 +
Commit: Ionen Wolkens  gentoo  org>
CommitDate: Fri Jan 19 23:08:20 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc5c1339

dev-python/flask-api: Keyword 3.1-r1 arm64, #917890

Signed-off-by: Matoro Mahri  matoro.tk>
Signed-off-by: Ionen Wolkens  gentoo.org>

 dev-python/flask-api/flask-api-3.1-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/flask-api/flask-api-3.1-r1.ebuild 
b/dev-python/flask-api/flask-api-3.1-r1.ebuild
index bf174de3d55a..10d27309b67b 100644
--- a/dev-python/flask-api/flask-api-3.1-r1.ebuild
+++ b/dev-python/flask-api/flask-api-3.1-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -21,7 +21,7 @@ SRC_URI="
 
 LICENSE="BSD-2"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~arm64 ~x86"
 
 RDEPEND="


[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2023-06-05 Thread Michał Górny
commit: 1b6a43eb378bbee52983dbedfaf814f241fcae49
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Jun  6 05:09:24 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Jun  6 05:43:48 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b6a43eb

dev-python/flask-api: Enable py3.12

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/flask-api/flask-api-3.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/flask-api/flask-api-3.1.ebuild 
b/dev-python/flask-api/flask-api-3.1.ebuild
index 0daaeb64bdc6..c77f8887c298 100644
--- a/dev-python/flask-api/flask-api-3.1.ebuild
+++ b/dev-python/flask-api/flask-api-3.1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{10..11} )
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
 
 inherit distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2023-06-05 Thread Michał Górny
commit: c539744056bae046083e9bdbadf749fd3193a0d0
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Jun  6 04:55:50 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Jun  6 05:43:41 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5397440

dev-python/flask-api: Bump to 3.1

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/flask-api/Manifest |  1 +
 dev-python/flask-api/flask-api-3.1.ebuild | 36 +++
 2 files changed, 37 insertions(+)

diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
index 5700fd1bce36..320db8ac3153 100644
--- a/dev-python/flask-api/Manifest
+++ b/dev-python/flask-api/Manifest
@@ -1 +1,2 @@
 DIST flask-api-3.0.gh.tar.gz 249620 BLAKE2B 
63ce0ce6a2d4755caf40c020fc6b88f3b585b0c30f5800df62c8e442f629b8b489917ff0f0d1266d941478336f38aa0560c144620f6c11d60cbd9e31870bf984
 SHA512 
c86b919f8681a73be166ddc50022faecb376b1b6f99bd0d78b2f2fc8b64f82bf82779dbdcfbcaa1c5e321ea2d286b95f1a1aab32864e6c3923417d7828c7c79a
+DIST flask-api-3.1.gh.tar.gz 258812 BLAKE2B 
f62fb820a467575738deda299de33b87efc066dcc468adad28309cd848f6710a91187a599aba05981457fa8bd8c598ba3014639d7b5d3869434eea32a513a08e
 SHA512 
158692b5d90f3c66231e26ee98df0496973a0fd1d9433041c0c19ff9255601af22cac7968273d2b27fc656f48dcf5e600e6eb939c7ed87f1af222d6fc47fc1ba

diff --git a/dev-python/flask-api/flask-api-3.1.ebuild 
b/dev-python/flask-api/flask-api-3.1.ebuild
new file mode 100644
index ..0daaeb64bdc6
--- /dev/null
+++ b/dev-python/flask-api/flask-api-3.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Browsable web APIs for Flask"
+HOMEPAGE="
+   https://github.com/flask-api/flask-api/
+   https://pypi.org/project/Flask-API/
+"
+# pypi mirror don't have docs folder
+SRC_URI="
+   https://github.com/flask-api/flask-api/archive/v${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/flask[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_install_all() {
+   local DOCS=( docs/about/release-notes.md docs/api-guide/* docs/index.md 
)
+   distutils-r1_python_install_all
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2023-06-05 Thread Michał Górny
commit: 97df40e6ef4e0f5be1c670994166e6ae484596db
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Jun  6 04:56:14 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Jun  6 05:43:42 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97df40e6

dev-python/flask-api: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/flask-api/Manifest|  1 -
 dev-python/flask-api/flask-api-3.0-r2.ebuild | 38 
 2 files changed, 39 deletions(-)

diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
index 320db8ac3153..a70221b4ff20 100644
--- a/dev-python/flask-api/Manifest
+++ b/dev-python/flask-api/Manifest
@@ -1,2 +1 @@
-DIST flask-api-3.0.gh.tar.gz 249620 BLAKE2B 
63ce0ce6a2d4755caf40c020fc6b88f3b585b0c30f5800df62c8e442f629b8b489917ff0f0d1266d941478336f38aa0560c144620f6c11d60cbd9e31870bf984
 SHA512 
c86b919f8681a73be166ddc50022faecb376b1b6f99bd0d78b2f2fc8b64f82bf82779dbdcfbcaa1c5e321ea2d286b95f1a1aab32864e6c3923417d7828c7c79a
 DIST flask-api-3.1.gh.tar.gz 258812 BLAKE2B 
f62fb820a467575738deda299de33b87efc066dcc468adad28309cd848f6710a91187a599aba05981457fa8bd8c598ba3014639d7b5d3869434eea32a513a08e
 SHA512 
158692b5d90f3c66231e26ee98df0496973a0fd1d9433041c0c19ff9255601af22cac7968273d2b27fc656f48dcf5e600e6eb939c7ed87f1af222d6fc47fc1ba

diff --git a/dev-python/flask-api/flask-api-3.0-r2.ebuild 
b/dev-python/flask-api/flask-api-3.0-r2.ebuild
deleted file mode 100644
index 924851d79164..
--- a/dev-python/flask-api/flask-api-3.0-r2.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{9..11} )
-
-inherit distutils-r1
-
-DESCRIPTION="Browsable web APIs for Flask"
-HOMEPAGE="
-   https://github.com/flask-api/flask-api/
-   https://pypi.org/project/Flask-API/
-"
-# pypi mirror don't have docs folder
-SRC_URI="
-   https://github.com/flask-api/flask-api/archive/v${PV}.tar.gz
-   -> ${P}.gh.tar.gz
-"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-# tests are broken with 2.3, I don't know if the code works
-# https://github.com/flask-api/flask-api/issues/151
-RDEPEND="
-   

[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2023-05-19 Thread Michał Górny
commit: d510b329e42a817f55962f171aa11168b7bb5235
Author: Michał Górny  gentoo  org>
AuthorDate: Fri May 19 13:47:38 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri May 19 13:47:38 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d510b329

dev-python/flask-api: Restrict to https://bugs.gentoo.org/906718
Signed-off-by: Michał Górny  gentoo.org>

 .../flask-api/{flask-api-3.0-r1.ebuild => flask-api-3.0-r2.ebuild}| 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dev-python/flask-api/flask-api-3.0-r1.ebuild 
b/dev-python/flask-api/flask-api-3.0-r2.ebuild
similarity index 82%
rename from dev-python/flask-api/flask-api-3.0-r1.ebuild
rename to dev-python/flask-api/flask-api-3.0-r2.ebuild
index 79ce434fb7a0..924851d79164 100644
--- a/dev-python/flask-api/flask-api-3.0-r1.ebuild
+++ b/dev-python/flask-api/flask-api-3.0-r2.ebuild
@@ -23,8 +23,10 @@ LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
+# tests are broken with 2.3, I don't know if the code works
+# https://github.com/flask-api/flask-api/issues/151
 RDEPEND="
-   dev-python/flask[${PYTHON_USEDEP}]
+   

[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2023-02-17 Thread Michał Górny
commit: 57c6d7d49cd1f8e18f71a4d87e613c77a22ca235
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Feb 17 13:11:03 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Feb 17 13:14:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57c6d7d4

dev-python/flask-api: EAPI 8, PEP517, py3.11

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/flask-api/Manifest|  1 +
 dev-python/flask-api/flask-api-3.0-r1.ebuild | 36 
 2 files changed, 37 insertions(+)

diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
index d0febe800a5f..047164c127e6 100644
--- a/dev-python/flask-api/Manifest
+++ b/dev-python/flask-api/Manifest
@@ -1 +1,2 @@
+DIST flask-api-3.0.gh.tar.gz 249620 BLAKE2B 
63ce0ce6a2d4755caf40c020fc6b88f3b585b0c30f5800df62c8e442f629b8b489917ff0f0d1266d941478336f38aa0560c144620f6c11d60cbd9e31870bf984
 SHA512 
c86b919f8681a73be166ddc50022faecb376b1b6f99bd0d78b2f2fc8b64f82bf82779dbdcfbcaa1c5e321ea2d286b95f1a1aab32864e6c3923417d7828c7c79a
 DIST flask-api-3.0.tar.gz 249620 BLAKE2B 
63ce0ce6a2d4755caf40c020fc6b88f3b585b0c30f5800df62c8e442f629b8b489917ff0f0d1266d941478336f38aa0560c144620f6c11d60cbd9e31870bf984
 SHA512 
c86b919f8681a73be166ddc50022faecb376b1b6f99bd0d78b2f2fc8b64f82bf82779dbdcfbcaa1c5e321ea2d286b95f1a1aab32864e6c3923417d7828c7c79a

diff --git a/dev-python/flask-api/flask-api-3.0-r1.ebuild 
b/dev-python/flask-api/flask-api-3.0-r1.ebuild
new file mode 100644
index ..79ce434fb7a0
--- /dev/null
+++ b/dev-python/flask-api/flask-api-3.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{9..11} )
+
+inherit distutils-r1
+
+DESCRIPTION="Browsable web APIs for Flask"
+HOMEPAGE="
+   https://github.com/flask-api/flask-api/
+   https://pypi.org/project/Flask-API/
+"
+# pypi mirror don't have docs folder
+SRC_URI="
+   https://github.com/flask-api/flask-api/archive/v${PV}.tar.gz
+   -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/flask[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_install_all() {
+   local DOCS=( docs/about/release-notes.md docs/api-guide/* docs/index.md 
)
+   distutils-r1_python_install_all
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/files/, dev-python/flask-api/

2021-10-17 Thread Michał Górny
commit: e9881e9100fcb6bc74c507e054b4800eeea36997
Author: Michał Górny  gentoo  org>
AuthorDate: Sun Oct 17 08:16:08 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun Oct 17 08:23:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9881e91

dev-python/flask-api: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/flask-api/Manifest  |  1 -
 .../files/flask-api-2.0-fix-pypy-tests.patch   | 22 ---
 dev-python/flask-api/flask-api-2.0.ebuild  | 32 --
 3 files changed, 55 deletions(-)

diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
index 536afd7f973..d0febe800a5 100644
--- a/dev-python/flask-api/Manifest
+++ b/dev-python/flask-api/Manifest
@@ -1,2 +1 @@
-DIST flask-api-2.0.tar.gz 235593 BLAKE2B 
fadd746d91cc2c797a2e40ee6b11532eb0184a1289a692f8de844501a6656eaa1e87d1089f267344185b22ed5c12bca43198d64d50ca8055ce95d0f62f19
 SHA512 
631e69e5a786598e6b5ef7e02c5c4f293eadd84d86fdf0155771d04fb6e87be5686756db90ab265cc097ae3d623c31dcebf5096a62c660d6f7d6fb1c3f3d4e3f
 DIST flask-api-3.0.tar.gz 249620 BLAKE2B 
63ce0ce6a2d4755caf40c020fc6b88f3b585b0c30f5800df62c8e442f629b8b489917ff0f0d1266d941478336f38aa0560c144620f6c11d60cbd9e31870bf984
 SHA512 
c86b919f8681a73be166ddc50022faecb376b1b6f99bd0d78b2f2fc8b64f82bf82779dbdcfbcaa1c5e321ea2d286b95f1a1aab32864e6c3923417d7828c7c79a

diff --git a/dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch 
b/dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch
deleted file mode 100644
index 4d30691b60d..000
--- a/dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-commit beb6a364de93a429398a9491e16f60a7aa82f51d
-Author: Louis Sautier 
-Date:   Tue Sep 22 00:46:38 2020 +0200
-
-Fix tests with PyPy, remove unused Python2-related code
-
-diff --git a/flask_api/tests/test_parsers.py b/flask_api/tests/test_parsers.py
-index 90a6b83..b7968f6 100644
 a/flask_api/tests/test_parsers.py
-+++ b/flask_api/tests/test_parsers.py
-@@ -36,9 +36,9 @@ class ParserTests(unittest.TestCase):
- with self.assertRaises(exceptions.ParseError) as context:
- parser.parse(stream, mediatypes.MediaType('application/json'))
- detail = str(context.exception)
--expected_py2 = 'JSON parse error - Expecting property name: line 1 
column 1 (char 1)'
-+expected_pypy = 'JSON parse error - Key name must be string at char: 
line 1 column 2 (char 1)'
- expected_py3 = 'JSON parse error - Expecting property name enclosed 
in double quotes: line 1 column 2 (char 1)'
--self.assertIn(detail, (expected_py2, expected_py3))
-+self.assertIn(detail, (expected_pypy, expected_py3))
- 
- def test_invalid_multipart(self):
- parser = parsers.MultiPartParser()

diff --git a/dev-python/flask-api/flask-api-2.0.ebuild 
b/dev-python/flask-api/flask-api-2.0.ebuild
deleted file mode 100644
index 3d030534fe1..000
--- a/dev-python/flask-api/flask-api-2.0.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( pypy3 python3_{7,8,9} )
-
-inherit distutils-r1
-
-DESCRIPTION="Browsable web APIs for Flask"
-HOMEPAGE="https://www.flaskapi.org/;
-# pypi mirror don't have docs folder
-SRC_URI="https://github.com/flask-api/flask-api/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="
-   dev-python/flask[${PYTHON_USEDEP}]
-   dev-python/markdown[${PYTHON_USEDEP}]
-"
-
-# https://github.com/flask-api/flask-api/pull/117
-PATCHES=( "${FILESDIR}/${P}-fix-pypy-tests.patch" )
-
-distutils_enable_tests pytest
-
-python_install_all() {
-   distutils-r1_python_install_all
-   dodoc docs/about/* docs/api-guide/* docs/index.md
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2021-09-21 Thread Arthur Zamarin
commit: 1e1bb3afd0e613dc5e21a6f94ba1c12fe0c8b187
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Tue Sep 21 06:19:07 2021 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Tue Sep 21 06:19:07 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e1bb3af

dev-python/flask-api: add 3.0, enable py3.10

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/flask-api/Manifest |  1 +
 dev-python/flask-api/flask-api-3.0.ebuild | 29 +
 2 files changed, 30 insertions(+)

diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
index 09bcfbe4a91..536afd7f973 100644
--- a/dev-python/flask-api/Manifest
+++ b/dev-python/flask-api/Manifest
@@ -1 +1,2 @@
 DIST flask-api-2.0.tar.gz 235593 BLAKE2B 
fadd746d91cc2c797a2e40ee6b11532eb0184a1289a692f8de844501a6656eaa1e87d1089f267344185b22ed5c12bca43198d64d50ca8055ce95d0f62f19
 SHA512 
631e69e5a786598e6b5ef7e02c5c4f293eadd84d86fdf0155771d04fb6e87be5686756db90ab265cc097ae3d623c31dcebf5096a62c660d6f7d6fb1c3f3d4e3f
+DIST flask-api-3.0.tar.gz 249620 BLAKE2B 
63ce0ce6a2d4755caf40c020fc6b88f3b585b0c30f5800df62c8e442f629b8b489917ff0f0d1266d941478336f38aa0560c144620f6c11d60cbd9e31870bf984
 SHA512 
c86b919f8681a73be166ddc50022faecb376b1b6f99bd0d78b2f2fc8b64f82bf82779dbdcfbcaa1c5e321ea2d286b95f1a1aab32864e6c3923417d7828c7c79a

diff --git a/dev-python/flask-api/flask-api-3.0.ebuild 
b/dev-python/flask-api/flask-api-3.0.ebuild
new file mode 100644
index 000..0d56985e7d6
--- /dev/null
+++ b/dev-python/flask-api/flask-api-3.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Browsable web APIs for Flask"
+HOMEPAGE="https://www.flaskapi.org/;
+# pypi mirror don't have docs folder
+SRC_URI="https://github.com/flask-api/flask-api/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+   dev-python/flask[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_install_all() {
+   local DOCS=( docs/about/release-notes.md docs/api-guide/* docs/index.md 
)
+   distutils-r1_python_install_all
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2021-01-09 Thread Sam James
commit: 5b0ee8ba364f1b4bc0b1b148b396574d9b01af39
Author: Sam James  gentoo  org>
AuthorDate: Sat Jan  9 18:49:52 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jan  9 18:49:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b0ee8ba

dev-python/flask-api: mark ALLARCHES

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Sam James  gentoo.org>

 dev-python/flask-api/metadata.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/flask-api/metadata.xml 
b/dev-python/flask-api/metadata.xml
index 58477491510..210c0aa750c 100644
--- a/dev-python/flask-api/metadata.xml
+++ b/dev-python/flask-api/metadata.xml
@@ -13,6 +13,7 @@
 pyt...@gentoo.org
 Python
 
+
 
 flask-api/flask-api
 Flask-API



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2020-09-23 Thread Louis Sautier
commit: e9899a958d3d19323aeb23c5777eadae15bceaa7
Author: Louis Sautier  gentoo  org>
AuthorDate: Wed Sep 23 11:31:52 2020 +
Commit: Louis Sautier  gentoo  org>
CommitDate: Wed Sep 23 11:31:54 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9899a95

dev-python/flask-api: update upstream metadata

Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: Louis Sautier  gentoo.org>

 dev-python/flask-api/metadata.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-python/flask-api/metadata.xml 
b/dev-python/flask-api/metadata.xml
index f29542a4355..58477491510 100644
--- a/dev-python/flask-api/metadata.xml
+++ b/dev-python/flask-api/metadata.xml
@@ -15,5 +15,6 @@
 
 
 flask-api/flask-api
+Flask-API
 
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/, dev-python/flask-api/files/

2020-09-23 Thread Louis Sautier
commit: 54a61e3f1ecd9a83cb4603b23d6bcb1a11f9051b
Author: Louis Sautier  gentoo  org>
AuthorDate: Wed Sep 23 11:23:09 2020 +
Commit: Louis Sautier  gentoo  org>
CommitDate: Wed Sep 23 11:29:52 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54a61e3f

dev-python/flask-api: add PyPy3 and Python 3.9 support, fix deps

Also update HOMEPAGE.

Package-Manager: Portage-3.0.7, Repoman-3.0.1
Signed-off-by: Louis Sautier  gentoo.org>

 .../files/flask-api-2.0-fix-pypy-tests.patch   | 22 ++
 dev-python/flask-api/flask-api-2.0.ebuild  | 13 -
 2 files changed, 30 insertions(+), 5 deletions(-)

diff --git a/dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch 
b/dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch
new file mode 100644
index 000..4d30691b60d
--- /dev/null
+++ b/dev-python/flask-api/files/flask-api-2.0-fix-pypy-tests.patch
@@ -0,0 +1,22 @@
+commit beb6a364de93a429398a9491e16f60a7aa82f51d
+Author: Louis Sautier 
+Date:   Tue Sep 22 00:46:38 2020 +0200
+
+Fix tests with PyPy, remove unused Python2-related code
+
+diff --git a/flask_api/tests/test_parsers.py b/flask_api/tests/test_parsers.py
+index 90a6b83..b7968f6 100644
+--- a/flask_api/tests/test_parsers.py
 b/flask_api/tests/test_parsers.py
+@@ -36,9 +36,9 @@ class ParserTests(unittest.TestCase):
+ with self.assertRaises(exceptions.ParseError) as context:
+ parser.parse(stream, mediatypes.MediaType('application/json'))
+ detail = str(context.exception)
+-expected_py2 = 'JSON parse error - Expecting property name: line 1 
column 1 (char 1)'
++expected_pypy = 'JSON parse error - Key name must be string at char: 
line 1 column 2 (char 1)'
+ expected_py3 = 'JSON parse error - Expecting property name enclosed 
in double quotes: line 1 column 2 (char 1)'
+-self.assertIn(detail, (expected_py2, expected_py3))
++self.assertIn(detail, (expected_pypy, expected_py3))
+ 
+ def test_invalid_multipart(self):
+ parser = parsers.MultiPartParser()

diff --git a/dev-python/flask-api/flask-api-2.0.ebuild 
b/dev-python/flask-api/flask-api-2.0.ebuild
index e2fe9c1ce9d..65d2fb33024 100644
--- a/dev-python/flask-api/flask-api-2.0.ebuild
+++ b/dev-python/flask-api/flask-api-2.0.ebuild
@@ -3,12 +3,12 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{6,7,8} )
+PYTHON_COMPAT=( pypy3 python3_{6,7,8,9} )
 
 inherit distutils-r1
 
 DESCRIPTION="Browsable web APIs for Flask"
-HOMEPAGE="https://github.com/flask-api/flask-api;
+HOMEPAGE="https://www.flaskapi.org/;
 # pypi mirror don't have docs folder
 SRC_URI="https://github.com/flask-api/flask-api/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 
@@ -16,10 +16,13 @@ LICENSE="BSD-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
-RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
-   dev-python/markdown[${PYTHON_USEDEP}]"
+RDEPEND="
+   dev-python/flask[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]
+"
 
-DEPEND="${RDEPEND}"
+# https://github.com/flask-api/flask-api/pull/117
+PATCHES=( "${FILESDIR}/${P}-fix-pypy-tests.patch" )
 
 distutils_enable_tests pytest
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2020-05-17 Thread Joonas Niilola
commit: e9a29cf972fc5043df6d17fe62016808585a
Author: David Roman  gmail  com>
AuthorDate: Wed May  6 13:30:17 2020 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sun May 17 16:41:51 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9a29cf9

dev-python/flask-api: verbump to 2.0

Closes: https://bugs.gentoo.org/717522
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Roman  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/15665
Signed-off-by: Joonas Niilola  gentoo.org>

 dev-python/flask-api/Manifest |  1 +
 dev-python/flask-api/flask-api-2.0.ebuild | 29 +
 2 files changed, 30 insertions(+)

diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
index 8500aa3b068..7b941f13e48 100644
--- a/dev-python/flask-api/Manifest
+++ b/dev-python/flask-api/Manifest
@@ -1 +1,2 @@
 DIST flask-api-1.1.tar.gz 235042 BLAKE2B 
b3c7e476c8ef1fa21f7e60aa1fb87ef5b40708ea96332ca0290d932bc5c195914da769b39ace1d34864c32989cf7f9856d070b1e6b690a6c1f60b495cabc
 SHA512 
52bb983bf9a0f906f37b645ff907eaa6ee3bc557b51f8935817963f3d66d99689eeba6a3e17711974663ad5ede267f9c85eb1d11f27597fe63806dc9f9e7ea22
+DIST flask-api-2.0.tar.gz 235593 BLAKE2B 
fadd746d91cc2c797a2e40ee6b11532eb0184a1289a692f8de844501a6656eaa1e87d1089f267344185b22ed5c12bca43198d64d50ca8055ce95d0f62f19
 SHA512 
631e69e5a786598e6b5ef7e02c5c4f293eadd84d86fdf0155771d04fb6e87be5686756db90ab265cc097ae3d623c31dcebf5096a62c660d6f7d6fb1c3f3d4e3f

diff --git a/dev-python/flask-api/flask-api-2.0.ebuild 
b/dev-python/flask-api/flask-api-2.0.ebuild
new file mode 100644
index 000..e2fe9c1ce9d
--- /dev/null
+++ b/dev-python/flask-api/flask-api-2.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Browsable web APIs for Flask"
+HOMEPAGE="https://github.com/flask-api/flask-api;
+# pypi mirror don't have docs folder
+SRC_URI="https://github.com/flask-api/flask-api/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]"
+
+DEPEND="${RDEPEND}"
+
+distutils_enable_tests pytest
+
+python_install_all() {
+   distutils-r1_python_install_all
+   dodoc docs/about/* docs/api-guide/* docs/index.md
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2020-05-06 Thread Joonas Niilola
commit: b126871a03475c721ae98fb2beb7757571cddd6f
Author: Joonas Niilola  gentoo  org>
AuthorDate: Wed May  6 14:00:08 2020 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Wed May  6 14:15:26 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b126871a

dev-python/flask-api: rearrange metadata.xml entries

Signed-off-by: Joonas Niilola  gentoo.org>

 dev-python/flask-api/metadata.xml | 8 
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-python/flask-api/metadata.xml 
b/dev-python/flask-api/metadata.xml
index 9e4d1fa2d5b..f29542a4355 100644
--- a/dev-python/flask-api/metadata.xml
+++ b/dev-python/flask-api/metadata.xml
@@ -1,14 +1,14 @@
 
 http://www.gentoo.org/dtd/metadata.dtd;>
 
-
-proxy-ma...@gentoo.org
-Proxy Maintainers
-
 
 davidroma...@gmail.com
 David Roman
 
+
+proxy-ma...@gentoo.org
+Proxy Maintainers
+
 
 pyt...@gentoo.org
 Python



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2020-03-27 Thread Michał Górny
commit: b100fd7192ef3fa573578f3bdf134839e4ebbf81
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Mar 27 09:08:26 2020 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Mar 27 09:16:08 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b100fd71

dev-python/flask-api: Remove redundant versions

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/flask-api/Manifest |  1 -
 dev-python/flask-api/flask-api-1.0.ebuild | 36 ---
 2 files changed, 37 deletions(-)

diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
index dffd2b7e19c..8500aa3b068 100644
--- a/dev-python/flask-api/Manifest
+++ b/dev-python/flask-api/Manifest
@@ -1,2 +1 @@
-DIST flask-api-1.0.tar.gz 18 BLAKE2B 
113bc6a3ba9f548e61ab6c1822491d91f8562c7809929bcd2b0ecc4160a2358532d5da398b7c876cf5e4f3d9dd03bc159da6a1f24621af1e07bc9d9680b87d7f
 SHA512 
425669e54b9f5dbf548acdb9fc2c3c661b8cfc4631d7677f20a838729584c4f970f9fbd47621e5b3155124637f5b8f4b5cb51bc402f7f406108882d46e4908de
 DIST flask-api-1.1.tar.gz 235042 BLAKE2B 
b3c7e476c8ef1fa21f7e60aa1fb87ef5b40708ea96332ca0290d932bc5c195914da769b39ace1d34864c32989cf7f9856d070b1e6b690a6c1f60b495cabc
 SHA512 
52bb983bf9a0f906f37b645ff907eaa6ee3bc557b51f8935817963f3d66d99689eeba6a3e17711974663ad5ede267f9c85eb1d11f27597fe63806dc9f9e7ea22

diff --git a/dev-python/flask-api/flask-api-1.0.ebuild 
b/dev-python/flask-api/flask-api-1.0.ebuild
deleted file mode 100644
index d973e9e5eca..000
--- a/dev-python/flask-api/flask-api-1.0.ebuild
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_6 )
-
-inherit distutils-r1
-
-DESCRIPTION="Browsable web APIs for Flask"
-HOMEPAGE="https://github.com/flask-api/flask-api;
-# pypi mirror don't have docs folder
-SRC_URI="https://github.com/flask-api/flask-api/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-
-LICENSE="BSD-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="dev-python/flask[${PYTHON_USEDEP}]"
-
-DEPEND="
-   ${RDEPEND}
-   test? (
-   dev-python/pytest[${PYTHON_USEDEP}]
-   )"
-
-python_install_all() {
-   distutils-r1_python_install_all
-   dodoc docs/about/* docs/api-guide/* docs/index.md
-}
-
-python_test() {
-   pytest || die
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2019-02-03 Thread Andreas Sturmlechner
commit: 8cf95ddbd3247fb630942645068072c687fbbd61
Author: David Roman  gmail  com>
AuthorDate: Wed Jan  2 00:43:54 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sun Feb  3 22:56:59 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cf95ddb

dev-python/flask-api: verbump to 1.1

Package-Manager: Portage-2.3.53, Repoman-2.3.12
Signed-off-by: David Roman  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/10722
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-python/flask-api/Manifest |  1 +
 dev-python/flask-api/flask-api-1.1.ebuild | 36 +++
 2 files changed, 37 insertions(+)

diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
index 4e074089118..dffd2b7e19c 100644
--- a/dev-python/flask-api/Manifest
+++ b/dev-python/flask-api/Manifest
@@ -1 +1,2 @@
 DIST flask-api-1.0.tar.gz 18 BLAKE2B 
113bc6a3ba9f548e61ab6c1822491d91f8562c7809929bcd2b0ecc4160a2358532d5da398b7c876cf5e4f3d9dd03bc159da6a1f24621af1e07bc9d9680b87d7f
 SHA512 
425669e54b9f5dbf548acdb9fc2c3c661b8cfc4631d7677f20a838729584c4f970f9fbd47621e5b3155124637f5b8f4b5cb51bc402f7f406108882d46e4908de
+DIST flask-api-1.1.tar.gz 235042 BLAKE2B 
b3c7e476c8ef1fa21f7e60aa1fb87ef5b40708ea96332ca0290d932bc5c195914da769b39ace1d34864c32989cf7f9856d070b1e6b690a6c1f60b495cabc
 SHA512 
52bb983bf9a0f906f37b645ff907eaa6ee3bc557b51f8935817963f3d66d99689eeba6a3e17711974663ad5ede267f9c85eb1d11f27597fe63806dc9f9e7ea22

diff --git a/dev-python/flask-api/flask-api-1.1.ebuild 
b/dev-python/flask-api/flask-api-1.1.ebuild
new file mode 100644
index 000..920cdeb2004
--- /dev/null
+++ b/dev-python/flask-api/flask-api-1.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
+
+inherit distutils-r1
+
+DESCRIPTION="Browsable web APIs for Flask"
+HOMEPAGE="https://github.com/flask-api/flask-api;
+# pypi mirror don't have docs folder
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/flask[${PYTHON_USEDEP}]
+   dev-python/markdown[${PYTHON_USEDEP}]"
+
+DEPEND="
+   ${RDEPEND}
+   test? (
+   dev-python/pytest[${PYTHON_USEDEP}]
+   )"
+
+python_install_all() {
+   distutils-r1_python_install_all
+   dodoc docs/about/* docs/api-guide/* docs/index.md
+}
+
+python_test() {
+   pytest -vv || die
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/flask-api/

2018-06-20 Thread Patrice Clement
commit: 8ab0b9df79dfae87b9e33e22de761b6660b6b0aa
Author: David Roman  gmail  com>
AuthorDate: Tue Jun 19 19:56:18 2018 +
Commit: Patrice Clement  gentoo  org>
CommitDate: Wed Jun 20 22:02:04 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ab0b9df

dev-python/flask-api: new package.

Closes: https://github.com/gentoo/gentoo/pull/8916

 dev-python/flask-api/Manifest |  1 +
 dev-python/flask-api/flask-api-1.0.ebuild | 35 +++
 dev-python/flask-api/metadata.xml | 19 +
 3 files changed, 55 insertions(+)

diff --git a/dev-python/flask-api/Manifest b/dev-python/flask-api/Manifest
new file mode 100644
index 000..4e074089118
--- /dev/null
+++ b/dev-python/flask-api/Manifest
@@ -0,0 +1 @@
+DIST flask-api-1.0.tar.gz 18 BLAKE2B 
113bc6a3ba9f548e61ab6c1822491d91f8562c7809929bcd2b0ecc4160a2358532d5da398b7c876cf5e4f3d9dd03bc159da6a1f24621af1e07bc9d9680b87d7f
 SHA512 
425669e54b9f5dbf548acdb9fc2c3c661b8cfc4631d7677f20a838729584c4f970f9fbd47621e5b3155124637f5b8f4b5cb51bc402f7f406108882d46e4908de

diff --git a/dev-python/flask-api/flask-api-1.0.ebuild 
b/dev-python/flask-api/flask-api-1.0.ebuild
new file mode 100644
index 000..a7ae0d383d1
--- /dev/null
+++ b/dev-python/flask-api/flask-api-1.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Browsable web APIs for Flask"
+HOMEPAGE="https://github.com/flask-api/flask-api;
+# pypi mirror don't have docs folder
+SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/flask[${PYTHON_USEDEP}]"
+
+DEPEND="
+   ${RDEPEND}
+   test? (
+   dev-python/pytest[${PYTHON_USEDEP}]
+   )"
+
+python_install_all() {
+   distutils-r1_python_install_all
+   dodoc docs/about/* docs/api-guide/* docs/index.md
+}
+
+python_test() {
+   pytest || die
+}

diff --git a/dev-python/flask-api/metadata.xml 
b/dev-python/flask-api/metadata.xml
new file mode 100644
index 000..9e4d1fa2d5b
--- /dev/null
+++ b/dev-python/flask-api/metadata.xml
@@ -0,0 +1,19 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+
+proxy-ma...@gentoo.org
+Proxy Maintainers
+
+
+davidroma...@gmail.com
+David Roman
+
+
+pyt...@gentoo.org
+Python
+
+
+flask-api/flask-api
+
+