Skip to content

Commit bda01aa

Browse files
authored
Merge pull request pallets-eco#2186 from ulgens/clean-travis
Clear Travis residues
2 parents 65e6c79 + 4b5d169 commit bda01aa

File tree

5 files changed

+8
-79
lines changed

5 files changed

+8
-79
lines changed

.travis.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ references to *[email protected]:flask-admin/flask-admin.git*.
77
.. image:: https://d322cqt584bo4o.cloudfront.net/flask-admin/localized.svg
88
:target: https://crowdin.com/project/flask-admin
99

10-
.. image:: https://travis-ci.org/flask-admin/flask-admin.svg?branch=master
11-
:target: https://travis-ci.org/flask-admin/flask-admin
10+
.. image:: https://github.com/flask-admin/flask-admin/actions/workflows/test.yaml/badge.svg
11+
:target: https://github.com/flask-admin/flask-admin/actions/workflows/test.yaml
12+
1213

1314
Introduction
1415
------------

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Support
4141

4242
****
4343

44-
Python 2.7 and 3.3 or higher.
44+
Python 3.6 or higher.
4545

4646
Indices And Tables
4747
------------------

flask_admin/contrib/rediscli.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ class RedisCli(BaseView):
3636
To use it, simply pass `Redis` connection object to the constructor.
3737
"""
3838

39-
shlex_check = True
40-
"""
41-
shlex from stdlib does not work with unicode on 2.7.2 and lower.
42-
If you want to suppress warning, set this attribute to False.
43-
"""
44-
4539
remapped_commands = {
4640
'del': 'delete'
4741
}
@@ -81,13 +75,6 @@ def __init__(self, redis,
8175
self._inspect_commands()
8276
self._contribute_commands()
8377

84-
if self.shlex_check and VER < (2, 7, 3):
85-
warnings.warn('Warning: rediscli uses shlex library and it does '
86-
'not work with unicode until Python 2.7.3. To '
87-
'remove this warning, upgrade to Python 2.7.3 or '
88-
'suppress it by setting shlex_check attribute '
89-
'to False.')
90-
9178
def _inspect_commands(self):
9279
"""
9380
Inspect connection object and extract command names.
@@ -136,10 +123,6 @@ def _parse_cmd(self, cmd):
136123
:param cmd:
137124
Command to parse
138125
"""
139-
if VER < (2, 7, 3):
140-
# shlex can't work with unicode until 2.7.3
141-
return tuple(x.decode('utf-8') for x in shlex.split(cmd.encode('utf-8')))
142-
143126
return tuple(shlex.split(cmd))
144127

145128
def _error(self, msg):

setup.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ def grep(attrname):
4242
'wtforms'
4343
]
4444

45-
if sys.version_info[0:2] < (3, 4):
46-
# required for python < 3.4
47-
install_requires.append('enum34>=1.1.6')
48-
4945

5046
setup(
5147
name='Flask-Admin',
@@ -84,11 +80,11 @@ def grep(attrname):
8480
'Operating System :: OS Independent',
8581
'Programming Language :: Python',
8682
'Topic :: Software Development :: Libraries :: Python Modules',
87-
'Programming Language :: Python :: 2.7',
88-
'Programming Language :: Python :: 3.3',
89-
'Programming Language :: Python :: 3.4',
90-
'Programming Language :: Python :: 3.5',
9183
'Programming Language :: Python :: 3.6',
84+
'Programming Language :: Python :: 3.7',
85+
'Programming Language :: Python :: 3.8',
86+
'Programming Language :: Python :: 3.9',
87+
'Programming Language :: Python :: 3.10',
9288
],
9389
test_suite='flask_admin.tests'
9490
)

0 commit comments

Comments
 (0)