From 1b935a84392973b1656064bc9e37d49bcc9d1f65 Mon Sep 17 00:00:00 2001 From: Bob AI Date: Fri, 20 Mar 2026 16:01:25 -0400 Subject: [PATCH] Add setuptools to install_requires for pkg_resources compatibility Modern Python (3.12+) no longer bundles setuptools, and setuptools>=82 removed pkg_resources entirely. The pytz dependency (pinned at 2018.4 via singer-python) uses pkg_resources as a fallback for timezone data loading, causing 'pkg_resources not found' errors in modern environments. Adding setuptools as an explicit dependency ensures pkg_resources remains available. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 74e1b5e..a1ddabd 100644 --- a/setup.py +++ b/setup.py @@ -16,6 +16,7 @@ 'PyMySQL==0.9.3', 'backoff==1.8.0', 'mysql-replication==0.22', + 'setuptools', ], extras_require={ 'dev': ['pylint==2.8.3']