Skip to content

Commit 7033ba6

Browse files
Pull request #26: feature/EOA-10706-fix-setuptools82
Merge in SDK/python_telesign from feature/EOA-10706-fix-setuptools82 to developer Squashed commit of the following: commit fb77f31169ed3faa7813ebf6a60f38648e563a31 Author: MousumiMohanty <@telesign.com> Date: Tue Mar 17 14:50:19 2026 +0530 removed f-string and find_namespace_packages to .format() and find_packages commit 49574c0a300da377432922556b1e2287c91834e3 Author: MousumiMohanty <@telesign.com> Date: Mon Mar 16 12:01:37 2026 +0530 auto-generate version from setup.py commit 32391640fbf6b54e04c3c17306c10b8d2b3c9484 Author: MousumiMohanty <@telesign.com> Date: Thu Mar 12 18:53:45 2026 +0530 Added fix for settuptool 82
1 parent 6ad8005 commit 7033ba6

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

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

setup.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
import sys
2-
from codecs import open
31
from os import path
4-
52
from setuptools import setup, find_packages
63

74
EXCLUDE_FROM_PACKAGES = ["tests"]
85

96
here = path.abspath(path.dirname(__file__))
107

11-
version = "4.0.0"
8+
version = "4.0.1"
9+
10+
version_path = path.join(here, "telesign", "_version.py")
11+
with open(version_path, "w") as f:
12+
f.write('"""Auto-generated version file"""\n__version__ = "{}"\n'.format(version))
1213

13-
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
14-
long_description = f.read()
14+
try:
15+
with open(path.join(here, "README.rst"), encoding="utf-8") as f:
16+
long_description = f.read()
17+
except (IOError, Exception):
18+
long_description = ""
1519

1620
setup(
1721
name="telesign",

telesign/__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("telesign").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__

telesign/_version.py

Whitespace-only changes.

0 commit comments

Comments
 (0)