Dropped python 3.5 support

This commit is contained in:
Fedor Borshev 2021-04-16 22:34:59 +03:00
parent 1824e18b72
commit af06d9ca4f
2 changed files with 4 additions and 20 deletions

View file

@ -3,14 +3,6 @@ sudo: false
matrix:
include:
- python: 3.5
env: DJANGO=2.0.*
- python: 3.5
env: DJANGO=2.1.*
- python: 3.5
env: DJANGO=2.2.*
- python: 3.6
env: DJANGO=2.0.*
- python: 3.6

View file

@ -61,17 +61,10 @@ def get_meta():
path = join(dirname(__file__), 'markdownx', '__init__.py')
if version_info.major == 3 and version_info.minor >= 5:
from importlib.util import spec_from_file_location, module_from_spec
spec = spec_from_file_location('.', path)
mod = module_from_spec(spec)
spec.loader.exec_module(mod)
elif version_info.major == 3:
from importlib.machinery import SourceFileLoader
mod = SourceFileLoader('.', path).load_module()
else:
from imp import load_source
mod = load_source('.', path)
from importlib.util import spec_from_file_location, module_from_spec
spec = spec_from_file_location('.', path)
mod = module_from_spec(spec)
spec.loader.exec_module(mod)
meta = {key.replace('__', ''): getattr(mod, key) for key in keys}
@ -112,7 +105,6 @@ setup(
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: JavaScript',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',