File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1616 os : [ macos-latest, ubuntu-latest ]
1717 python-version : [ 3.9, "3.10" ]
1818 django-version : [ 3.2, 4.0, 4.1 ]
19+ include :
20+ - os : ubuntu-20.04
21+ python-version : " 3.6"
22+ django-version : " 3.2"
1923
2024 steps :
2125 - name : Install system dependencies (windows)
Original file line number Diff line number Diff line change 1- # -*- coding: utf-8 -*-
2- from __future__ import unicode_literals
3-
41import django
52
63from .settings import MARTOR_MARKDOWNIFY_URL , MARTOR_UPLOAD_URL , MARTOR_SEARCH_USERS_URL
118)
129
1310
14- def __normalize (path ):
15- return path .removeprefix ('/' ).removesuffix ('/' )
11+ def __normalize (path : str ) -> str :
12+ # to support Python < 3.9 we can't use removeprefix('/').removesuffix('/')
13+ if path .startswith ("/" ):
14+ path = path [1 :]
15+ if path .endswith ("/" ):
16+ path = path [:- 1 ]
17+ return path
1618
1719
1820if django .VERSION >= (2 , 0 ):
Original file line number Diff line number Diff line change 1+ urllib3 < 2 ; python_version < '3.7' # urllib3 2.0 dropped support for Python 3.6
2+ zipp < 3.7 ; python_version < '3.7' # zipp 3.7.0 dropped support for Python 3.6
3+ importlib_metadata < 4.9 # # importlib_metadata 4.9.0 dropped support for Python 3.6
14Django >= 3.2
2- Markdown == 3. 3.4
5+ Markdown < 3.4
36requests
47bleach
58tzdata
You can’t perform that action at this time.
0 commit comments