Skip to content

Commit 2d0121f

Browse files
MrBurtyyyecharrod
authored andcommitted
SDK-1467: Remove sandbox package and update setup.py to load version without initialising the modules
1 parent 9cfe7ba commit 2d0121f

File tree

10 files changed

+9
-878
lines changed

10 files changed

+9
-878
lines changed

setup.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
from setuptools import setup, find_packages
3-
4-
from yoti_python_sdk import __version__
2+
from setuptools import find_packages
3+
from setuptools import setup
54

65
long_description = (
76
"This package contains the tools you need to quickly "
@@ -10,24 +9,28 @@
109
"application in a secure and trusted way."
1110
)
1211

12+
version = {}
13+
with open("yoti_python_sdk/version.py") as fp:
14+
exec(fp.read(), version)
15+
1316
setup(
1417
name="yoti",
15-
version=__version__,
16-
packages=find_packages(),
18+
version=version["__version__"],
19+
packages=find_packages(include=["yoti_python_sdk", "yoti_python_sdk.*"]),
1720
license="MIT",
1821
description="The Yoti Python SDK, providing API support for Login, Verify (2FA) and Age Verification.",
1922
long_description=long_description,
2023
url="https://github.com/getyoti/yoti-python-sdk",
2124
author="Yoti",
2225
author_email="[email protected]",
2326
install_requires=[
27+
"deprecated==1.2.6",
2428
"cryptography>=2.2.1",
2529
"protobuf>=3.1.0",
2630
"requests>=2.11.1",
2731
"future>=0.11.0",
2832
"asn1==2.2.0",
2933
"pyopenssl>=18.0.0",
30-
"deprecated==1.2.6",
3134
],
3235
extras_require={
3336
"examples": [

yoti_python_sandbox/__init__.py

Whitespace-only changes.

yoti_python_sandbox/age_verification.py

Lines changed: 0 additions & 97 deletions
This file was deleted.

yoti_python_sandbox/anchor.py

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)