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
+3 -1
View File
@@ -4,7 +4,9 @@ from setuptools import find_packages, setup
setup(
name='tablib',
use_scm_version=True,
use_scm_version={
'write_to': 'src/tablib/_version.py',
},
setup_requires=['setuptools_scm'],
description='Format agnostic tabular data library (XLS, JSON, YAML, CSV)',
long_description=(