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 16
16
os : [ macos-latest, ubuntu-latest ]
17
17
python-version : [ 3.9, "3.10" ]
18
18
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"
19
23
20
24
steps :
21
25
- 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
-
4
1
import django
5
2
6
3
from .settings import MARTOR_MARKDOWNIFY_URL , MARTOR_UPLOAD_URL , MARTOR_SEARCH_USERS_URL
11
8
)
12
9
13
10
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
16
18
17
19
18
20
if 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
1
4
Django >= 3.2
2
- Markdown == 3. 3.4
5
+ Markdown < 3.4
3
6
requests
4
7
bleach
5
8
tzdata
You can’t perform that action at this time.
0 commit comments