From 7a305706abf2b3a3a2ebdb8fc707da11b408ef23 Mon Sep 17 00:00:00 2001 From: atollk Date: Wed, 12 Aug 2020 13:47:41 +0200 Subject: [PATCH] Version fix: is actually 1.0.1, not 1.1.0. --- flake8_import_restrictions/checker.py | 5 +++-- flake8_import_restrictions/imports_submodule.py | 2 +- setup.cfg | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/flake8_import_restrictions/checker.py b/flake8_import_restrictions/checker.py index 3218d88..73cb95b 100644 --- a/flake8_import_restrictions/checker.py +++ b/flake8_import_restrictions/checker.py @@ -2,7 +2,8 @@ import ast import fnmatch from collections import defaultdict -from typing import Iterable, Tuple, Union, List, Dict +from importlib import metadata +from typing import Dict, Iterable, List, Tuple, Union import flake8.options.manager @@ -39,7 +40,7 @@ class ImportChecker: """ name = "flake8-import-restrictions" - version = "1.1.0" + version = metadata.version(name) targetted_modules: Dict[int, Tuple[List[str], List[str]]] = defaultdict( lambda: ([], []) ) diff --git a/flake8_import_restrictions/imports_submodule.py b/flake8_import_restrictions/imports_submodule.py index c7b1d63..78cba4a 100644 --- a/flake8_import_restrictions/imports_submodule.py +++ b/flake8_import_restrictions/imports_submodule.py @@ -1,7 +1,7 @@ import importlib +import os.path import sys import types -import os.path from typing import Optional diff --git a/setup.cfg b/setup.cfg index b765e25..e906b8b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = flake8-import-restrictions -version = 1.1.0 +version = 1.0.1 description = A flake8 plugin used to disallow certain forms of imports. long_description = file: README.md long_description_content_type = text/markdown