Stop using pkg_resources

tablib imports pkg_resources in order to find its own version. Importing
pkg_resources is very slow (100ms-250ms is common).

Avoid it by letting setuptools-scm generate a file with the version
instead.
This commit is contained in:
Ran Benita
2020-08-10 16:49:51 +03:00
committed by GitHub
parent ce79e44d14
commit bc8438bda4
5 changed files with 18 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[tool.isort]
force_grid_wrap = 0
include_trailing_comma = true
known_third_party = ["MarkupPy", "odf", "openpyxl", "pkg_resources", "setuptools", "tablib", "xlrd", "xlwt", "yaml"]
known_third_party = ["MarkupPy", "odf", "openpyxl", "setuptools", "tablib", "xlrd", "xlwt", "yaml"]
line_length = 88
multi_line_output = 3
use_parentheses = true