Skip to content

Commit 819c3fe

Browse files
Pull request #27: Feature/EOA-10706 fix setuptools82
Merge in SDK/python_telesign_enterprise from feature/EOA-10706-fix-setuptools82 to developer Squashed commit of the following: commit f7e41ac20ab0648491ef7b89355a37330b99b85a Author: MousumiMohanty <@telesign.com> Date: Tue Mar 17 15:22:39 2026 +0530 removed f-string and find_namespace_packages to .format() and find_packages commit f3f5b493a6ce0afa7d115dd03b76700905f38850 Author: MousumiMohanty <@telesign.com> Date: Mon Mar 16 12:58:20 2026 +0530 removed the space from version file commit 6c1d53dd4771f4c591fef55f73d726703309d424 Author: MousumiMohanty <@telesign.com> Date: Mon Mar 16 12:55:17 2026 +0530 auto-generate version from setup.py commit ddb7cf4effca51df51748f550976c6608699d176 Author: MousumiMohanty <@telesign.com> Date: Fri Mar 13 17:50:30 2026 +0530 updated the syntax commit e346c59409f44b79ffad32833ead612f7b965099 Author: MousumiMohanty <@telesign.com> Date: Thu Mar 12 18:54:44 2026 +0530 Added fix for settuptool 82
1 parent 9ac2a24 commit 819c3fe

4 files changed

Lines changed: 19 additions & 5 deletions

File tree

RELEASE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
4.0.1
2+
- Added fix for pkg_resources removed from setuptools 82
3+
14
4.0.0
25
- Added support for Intelligence Cloud to use new endpoint
36
- Removed Legacy PID Score

setup.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
from os import path
12
from setuptools import setup, find_packages
23

3-
version = "4.0.0"
4+
here = path.abspath(path.dirname(__file__))
5+
6+
version = "4.0.1"
7+
8+
version_path = path.join(here, "telesignenterprise", "_version.py")
9+
with open(version_path, "w") as f:
10+
f.write('"""Auto-generated version file"""\n__version__ = "{}"\n'.format(version))
411

512
try:
6-
with open("README") as f:
13+
with open(path.join(here, "README"), encoding="utf-8") as f:
714
readme_content = f.read()
815
except (IOError, Exception):
916
readme_content = ""
@@ -40,4 +47,4 @@
4047
url="https://github.com/telesign/python_telesign",
4148
install_requires=["telesign >=4.0.0, <5.0.0"],
4249
packages=find_packages(exclude=["test", "test.*", "examples", "examples.*"]),
43-
)
50+
)

telesignenterprise/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
from pkg_resources import get_distribution
1+
try:
2+
from ._version import __version__
3+
except ImportError:
4+
__version__ = "0.0.0" #Fallback
25

3-
__version__ = get_distribution("telesignenterprise").version
46
__author__ = "TeleSign"
57
__copyright__ = "Copyright 2017, TeleSign Corp."
68
__credits__ = ["TeleSign"]
79
__license__ = "MIT"
810
__maintainer__ = "TeleSign Corp."
911
__email__ = "support@telesign.com"
1012
__status__ = "Production"
13+
14+
__version__ = __version__

telesignenterprise/_version.py

Whitespace-only changes.

0 commit comments

Comments
 (0)