Skip to content

Commit d4bccd2

Browse files
authored
fix: remove arbitrary equality comparisons (not supported by renovate) (#12561)
* fix: update syntax for markupsafe deps * update syntax for mock deps * provide python3 versions of pytest, mock * add six to samples that require it * flake8
1 parent a6faced commit d4bccd2

File tree

17 files changed

+41
-21
lines changed

17 files changed

+41
-21
lines changed

appengine/flexible/websockets/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Flask==1.1.4 # it seems like Flask-sockets doesn't play well with 2.0+
22
Flask-Sockets==0.2.1
33
gunicorn==22.0.0
44
requests==2.31.0
5-
markupsafe===2.0.1
5+
markupsafe==2.0.1
66
Werkzeug==1.0.1;

appengine/flexible_python37_and_earlier/websockets/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Flask==1.1.4 # it seems like Flask-sockets doesn't play well with 2.0+
22
Flask-Sockets==0.2.1
33
gunicorn==22.0.0
44
requests==2.31.0
5-
markupsafe===2.0.1
5+
markupsafe==2.0.1
66
Werkzeug==1.0.1;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# pin pytest to 4.6.11 for Python2.
22
pytest==4.6.11; python_version < '3.0'
3-
mock===3.0.5; python_version < '3.0'
3+
pytest==8.3.2; python_version >= '3.0'
4+
mock==3.0.5; python_version < '3.0'
5+
mock==5.1.0; python_version >= '3.0'
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# pin pytest to 4.6.11 for Python2.
22
pytest==4.6.11; python_version < '3.0'
3-
mock===3.0.5; python_version < '3.0'
3+
pytest==8.3.2; python_version >= '3.0'
4+
mock==3.0.5; python_version < '3.0'
5+
mock==5.1.0; python_version >= '3.0'
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# pin pytest to 4.6.11 for Python2.
22
pytest==4.6.11; python_version < '3.0'
3-
mock===3.0.5; python_version < '3.0'
3+
pytest==8.3.2; python_version >= '3.0'
4+
mock==3.0.5; python_version < '3.0'
5+
mock==5.1.0; python_version >= '3.0'

appengine/standard/firebase/firetactoe/firetactoe.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,19 @@
2020
from functools import lru_cache
2121
except ImportError:
2222
from functools32 import lru_cache
23+
2324
import json
2425
import os
2526
import re
2627
import time
2728
import urllib
2829

29-
3030
import flask
3131
from flask import request
32-
from google.appengine.api import app_identity
33-
from google.appengine.api import users
32+
from google.appengine.api import app_identity, users
3433
from google.appengine.ext import ndb
35-
from google.auth.transport.requests import AuthorizedSession
3634
import google.auth
37-
35+
from google.auth.transport.requests import AuthorizedSession
3836

3937
_FIREBASE_CONFIG = "_firebase_config.html"
4038

appengine/standard/firebase/firetactoe/firetactoe_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import mock
1615
import re
1716

1817
from google.appengine.api import users
1918
from google.appengine.ext import ndb
20-
from six.moves import http_client
19+
import mock
2120
import pytest
21+
from six.moves import http_client
2222
import webtest
2323

2424
import firetactoe
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# pin pytest to 4.6.11 for Python2.
22
pytest==4.6.11; python_version < '3.0'
3+
pytest==8.3.2; python_version >= '3.0'
34
WebTest==2.0.35; python_version < '3.0'
4-
mock===3.0.5; python_version < "3"
5+
mock==3.0.5; python_version < "3"
6+
mock==5.1.0; python_version >= '3.0'

appengine/standard/firebase/firetactoe/rest_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
# [START rest_writing_data]
2222
import json
2323

24-
from google.auth.transport.requests import AuthorizedSession
2524
import google.auth
25+
from google.auth.transport.requests import AuthorizedSession
2626

2727
_FIREBASE_SCOPES = [
2828
"https://www.googleapis.com/auth/firebase.database",

appengine/standard/iap/main_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import main
1615
import webtest
1716

17+
import main
18+
1819

1920
def test_index(testbed, login):
2021
app = webtest.TestApp(main.app)

0 commit comments

Comments
 (0)