From a30ec5b94cfbfa775dfaa015e3c1de364af89d7f Mon Sep 17 00:00:00 2001 From: Furechan Date: Tue, 24 Dec 2024 23:19:52 -0500 Subject: [PATCH 1/3] Removed pkg_resources import from tiingo.api, VERSION comes from __version__ --- tiingo/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tiingo/api.py b/tiingo/api.py index dca1a22..20a4f18 100644 --- a/tiingo/api.py +++ b/tiingo/api.py @@ -26,8 +26,7 @@ except ImportError: pandas_is_installed = False -VERSION = pkg_resources.get_distribution("tiingo").version - +from .__version__ import __version__ as VERSION # These methods enable python 2 + 3 compatibility. def get_zipfile_from_response(response): From b0eec6d2d1d1b7c3bec7da3dc4b7d44c64091fd7 Mon Sep 17 00:00:00 2001 From: Furechan Date: Tue, 24 Dec 2024 23:24:56 -0500 Subject: [PATCH 2/3] Removed pkg_resources import from tiingo.api, VERSION comes from __version__ --- tiingo/api.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tiingo/api.py b/tiingo/api.py index 20a4f18..69f2839 100644 --- a/tiingo/api.py +++ b/tiingo/api.py @@ -6,7 +6,6 @@ import os import re import sys -import pkg_resources from zipfile import ZipFile import requests From 9661fb25615efd20a2e61e7ba55080dcfc11844a Mon Sep 17 00:00:00 2001 From: Furechan Date: Tue, 24 Dec 2024 23:36:14 -0500 Subject: [PATCH 3/3] Removed pkg_resources import from tiingo.api, VERSION comes from __version__ --- tiingo/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tiingo/api.py b/tiingo/api.py index 69f2839..72e0dae 100644 --- a/tiingo/api.py +++ b/tiingo/api.py @@ -18,6 +18,8 @@ MissingRequiredArgumentError, ) +from tiingo.__version__ import __version__ as VERSION + try: import pandas as pd @@ -25,7 +27,6 @@ except ImportError: pandas_is_installed = False -from .__version__ import __version__ as VERSION # These methods enable python 2 + 3 compatibility. def get_zipfile_from_response(response):