mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
Dropped python 3.5 support
This commit is contained in:
parent
1824e18b72
commit
af06d9ca4f
2 changed files with 4 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
16
setup.py
16
setup.py
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue