* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-flask/files/, dev-python/pytest-flask/
@ 2024-12-18 13:54 David Roman
2024-12-18 17:21 ` [gentoo-commits] repo/proj/guru:master " David Roman
0 siblings, 1 reply; 2+ messages in thread
From: David Roman @ 2024-12-18 13:54 UTC (permalink / raw
To: gentoo-commits
commit: 8b2798bf1a8bb7e861e0e2d306e6238108e45c58
Author: David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Wed Dec 18 13:54:08 2024 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Dec 18 13:54:17 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8b2798bf
dev-python/pytest-flask: treeclean, moved to ::gentoo
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
dev-python/pytest-flask/Manifest | 1 -
.../files/pytest-flask-fix-flask-compat.patch | 74 ----------------------
dev-python/pytest-flask/metadata.xml | 11 ----
dev-python/pytest-flask/pytest-flask-1.3.0.ebuild | 30 ---------
4 files changed, 116 deletions(-)
diff --git a/dev-python/pytest-flask/Manifest b/dev-python/pytest-flask/Manifest
deleted file mode 100644
index 2812cc719..000000000
--- a/dev-python/pytest-flask/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST pytest-flask-1.3.0.tar.gz 35816 BLAKE2B 008c7f2acdc320dcab3e1745fb8e546a1f4cbdf75155db85f00bb70aea2eb3efa46d68f39fac114e3ddc3675b45d3d6d9a7bba8eb0c331c36e7f3d08c83c5da0 SHA512 4512e261cf6b284540ea9dda4cade52be57776c16f0cc7185755cbec294e526268753dbe663200a6ab3dee2ac0cc42df080d8f0045f88feac5de115fcc71ac21
diff --git a/dev-python/pytest-flask/files/pytest-flask-fix-flask-compat.patch b/dev-python/pytest-flask/files/pytest-flask-fix-flask-compat.patch
deleted file mode 100644
index 788d3e0dd..000000000
--- a/dev-python/pytest-flask/files/pytest-flask-fix-flask-compat.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-diff --git a/pytest_flask/fixtures.py b/pytest_flask/fixtures.py
-index eb25861..486ec8b 100755
---- a/pytest_flask/fixtures.py
-+++ b/pytest_flask/fixtures.py
-@@ -3,7 +3,6 @@ import socket
- import warnings
-
- import pytest
--from flask import _request_ctx_stack
-
- from ._internal import _determine_scope
- from ._internal import _make_accept_header
-@@ -93,23 +92,6 @@ def config(app):
- return app.config
-
-
--@pytest.fixture
--def request_ctx(app):
-- """The request context which contains all request relevant information,
-- e.g. `session`, `g`, `flashes`, etc.
-- """
-- warnings.warn(
-- "In Werzeug 2.0.0, the Client request methods "
-- "(client.get, client.post) always return an instance of TestResponse. This "
-- "class provides a reference to the request object through 'response.request' "
-- "The fixture 'request_ctx' is deprecated and will be removed in the future, using TestResponse.request "
-- "is the prefered way.",
-- DeprecationWarning,
-- stacklevel=2,
-- )
-- return _request_ctx_stack.top
--
--
- @pytest.fixture(params=["application/json", "text/html"])
- def mimetype(request):
- return request.param
-diff --git a/pytest_flask/plugin.py b/pytest_flask/plugin.py
-index bb4bf59..037f062 100755
---- a/pytest_flask/plugin.py
-+++ b/pytest_flask/plugin.py
-@@ -19,7 +19,6 @@ from .fixtures import client
- from .fixtures import client_class
- from .fixtures import config
- from .fixtures import live_server
--from .fixtures import request_ctx
- from .pytest_compat import getfixturevalue
-
-
-diff --git a/tests/test_fixtures.py b/tests/test_fixtures.py
-index a55fd98..b38af95 100755
---- a/tests/test_fixtures.py
-+++ b/tests/test_fixtures.py
-@@ -16,21 +16,6 @@ class TestFixtures:
- def test_accept_jsonp(self, accept_jsonp):
- assert accept_jsonp == [("Accept", "application/json-p")]
-
-- def test_request_ctx(self, app, request_ctx):
-- assert request_ctx.app is app
--
-- def test_request_ctx_is_kept_around(self, client):
-- res = client.get(url_for("index"), headers=[("X-Something", "42")])
-- """In werkzeug 2.0.0 the test Client provides a new attribute 'request'
-- in the response class wich holds a reference to the request object that
-- produced the respective response, making instrospection easier"""
-- try:
-- assert res.request.headers["X-Something"] == "42"
-- except AttributeError:
-- """This is the conventional (pre 2.0.0) way of reaching the
-- request object, using flask.request global."""
-- assert request.headers["X-Something"] == "42"
--
- def test_accept_mimetype(self, accept_mimetype):
- mimestrings = [[("Accept", "application/json")], [("Accept", "text/html")]]
- assert accept_mimetype in mimestrings
diff --git a/dev-python/pytest-flask/metadata.xml b/dev-python/pytest-flask/metadata.xml
deleted file mode 100644
index 315ef7d75..000000000
--- a/dev-python/pytest-flask/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <email>davidroman96@gmail.com</email>
- <name>David Roman</name>
- </maintainer>
- <upstream>
- <remote-id type="pypi">pytest-flask</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-python/pytest-flask/pytest-flask-1.3.0.ebuild b/dev-python/pytest-flask/pytest-flask-1.3.0.ebuild
deleted file mode 100644
index 09aa38167..000000000
--- a/dev-python/pytest-flask/pytest-flask-1.3.0.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( python3_{11,12} pypy3 )
-inherit distutils-r1 pypi
-
-DESCRIPTION="A set of pytest fixtures to test Flask applications "
-HOMEPAGE="http://pytest-flask.readthedocs.org"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-
-RDEPEND="
- dev-python/flask[${PYTHON_USEDEP}]
- dev-python/werkzeug[${PYTHON_USEDEP}]
-"
-
-DEPEND="${RDEPEND}
- test? (
- dev-python/mock[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-python/pytest-flask/files/, dev-python/pytest-flask/
2024-12-18 13:54 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-flask/files/, dev-python/pytest-flask/ David Roman
@ 2024-12-18 17:21 ` David Roman
0 siblings, 0 replies; 2+ messages in thread
From: David Roman @ 2024-12-18 17:21 UTC (permalink / raw
To: gentoo-commits
commit: 8b2798bf1a8bb7e861e0e2d306e6238108e45c58
Author: David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Wed Dec 18 13:54:08 2024 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Dec 18 13:54:17 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8b2798bf
dev-python/pytest-flask: treeclean, moved to ::gentoo
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
dev-python/pytest-flask/Manifest | 1 -
.../files/pytest-flask-fix-flask-compat.patch | 74 ----------------------
dev-python/pytest-flask/metadata.xml | 11 ----
dev-python/pytest-flask/pytest-flask-1.3.0.ebuild | 30 ---------
4 files changed, 116 deletions(-)
diff --git a/dev-python/pytest-flask/Manifest b/dev-python/pytest-flask/Manifest
deleted file mode 100644
index 2812cc719..000000000
--- a/dev-python/pytest-flask/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST pytest-flask-1.3.0.tar.gz 35816 BLAKE2B 008c7f2acdc320dcab3e1745fb8e546a1f4cbdf75155db85f00bb70aea2eb3efa46d68f39fac114e3ddc3675b45d3d6d9a7bba8eb0c331c36e7f3d08c83c5da0 SHA512 4512e261cf6b284540ea9dda4cade52be57776c16f0cc7185755cbec294e526268753dbe663200a6ab3dee2ac0cc42df080d8f0045f88feac5de115fcc71ac21
diff --git a/dev-python/pytest-flask/files/pytest-flask-fix-flask-compat.patch b/dev-python/pytest-flask/files/pytest-flask-fix-flask-compat.patch
deleted file mode 100644
index 788d3e0dd..000000000
--- a/dev-python/pytest-flask/files/pytest-flask-fix-flask-compat.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-diff --git a/pytest_flask/fixtures.py b/pytest_flask/fixtures.py
-index eb25861..486ec8b 100755
---- a/pytest_flask/fixtures.py
-+++ b/pytest_flask/fixtures.py
-@@ -3,7 +3,6 @@ import socket
- import warnings
-
- import pytest
--from flask import _request_ctx_stack
-
- from ._internal import _determine_scope
- from ._internal import _make_accept_header
-@@ -93,23 +92,6 @@ def config(app):
- return app.config
-
-
--@pytest.fixture
--def request_ctx(app):
-- """The request context which contains all request relevant information,
-- e.g. `session`, `g`, `flashes`, etc.
-- """
-- warnings.warn(
-- "In Werzeug 2.0.0, the Client request methods "
-- "(client.get, client.post) always return an instance of TestResponse. This "
-- "class provides a reference to the request object through 'response.request' "
-- "The fixture 'request_ctx' is deprecated and will be removed in the future, using TestResponse.request "
-- "is the prefered way.",
-- DeprecationWarning,
-- stacklevel=2,
-- )
-- return _request_ctx_stack.top
--
--
- @pytest.fixture(params=["application/json", "text/html"])
- def mimetype(request):
- return request.param
-diff --git a/pytest_flask/plugin.py b/pytest_flask/plugin.py
-index bb4bf59..037f062 100755
---- a/pytest_flask/plugin.py
-+++ b/pytest_flask/plugin.py
-@@ -19,7 +19,6 @@ from .fixtures import client
- from .fixtures import client_class
- from .fixtures import config
- from .fixtures import live_server
--from .fixtures import request_ctx
- from .pytest_compat import getfixturevalue
-
-
-diff --git a/tests/test_fixtures.py b/tests/test_fixtures.py
-index a55fd98..b38af95 100755
---- a/tests/test_fixtures.py
-+++ b/tests/test_fixtures.py
-@@ -16,21 +16,6 @@ class TestFixtures:
- def test_accept_jsonp(self, accept_jsonp):
- assert accept_jsonp == [("Accept", "application/json-p")]
-
-- def test_request_ctx(self, app, request_ctx):
-- assert request_ctx.app is app
--
-- def test_request_ctx_is_kept_around(self, client):
-- res = client.get(url_for("index"), headers=[("X-Something", "42")])
-- """In werkzeug 2.0.0 the test Client provides a new attribute 'request'
-- in the response class wich holds a reference to the request object that
-- produced the respective response, making instrospection easier"""
-- try:
-- assert res.request.headers["X-Something"] == "42"
-- except AttributeError:
-- """This is the conventional (pre 2.0.0) way of reaching the
-- request object, using flask.request global."""
-- assert request.headers["X-Something"] == "42"
--
- def test_accept_mimetype(self, accept_mimetype):
- mimestrings = [[("Accept", "application/json")], [("Accept", "text/html")]]
- assert accept_mimetype in mimestrings
diff --git a/dev-python/pytest-flask/metadata.xml b/dev-python/pytest-flask/metadata.xml
deleted file mode 100644
index 315ef7d75..000000000
--- a/dev-python/pytest-flask/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <email>davidroman96@gmail.com</email>
- <name>David Roman</name>
- </maintainer>
- <upstream>
- <remote-id type="pypi">pytest-flask</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-python/pytest-flask/pytest-flask-1.3.0.ebuild b/dev-python/pytest-flask/pytest-flask-1.3.0.ebuild
deleted file mode 100644
index 09aa38167..000000000
--- a/dev-python/pytest-flask/pytest-flask-1.3.0.ebuild
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( python3_{11,12} pypy3 )
-inherit distutils-r1 pypi
-
-DESCRIPTION="A set of pytest fixtures to test Flask applications "
-HOMEPAGE="http://pytest-flask.readthedocs.org"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="test"
-
-RDEPEND="
- dev-python/flask[${PYTHON_USEDEP}]
- dev-python/werkzeug[${PYTHON_USEDEP}]
-"
-
-DEPEND="${RDEPEND}
- test? (
- dev-python/mock[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-18 17:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-18 13:54 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pytest-flask/files/, dev-python/pytest-flask/ David Roman
2024-12-18 17:21 ` [gentoo-commits] repo/proj/guru:master " David Roman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox