From af06d9ca4f6410adbce75b72e4244b03238b9da3 Mon Sep 17 00:00:00 2001 From: Fedor Borshev Date: Fri, 16 Apr 2021 22:34:59 +0300 Subject: [PATCH] Dropped python 3.5 support --- .travis.yml | 8 -------- setup.py | 16 ++++------------ 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 78da6f5..eed5341 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/setup.py b/setup.py index 00438c9..7b14c9f 100755 --- a/setup.py +++ b/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',