From 0ce14ef901f9b073e50979b17f6a2ee5c3b32d6a Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Tue, 21 Feb 2023 18:57:38 +0000 Subject: [PATCH 01/16] SDK-2267:updated refs --- requirements.in | 2 +- requirements.txt | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirements.in b/requirements.in index d7235772..5493ec5f 100644 --- a/requirements.in +++ b/requirements.in @@ -4,7 +4,7 @@ cffi==1.14.3 future==0.18.2 itsdangerous==1.1.0 pbr==1.10.0 -protobuf==3.13.0 +protobuf==3.21.1 pyopenssl==19.1.0 PyYAML==5.2 # PyYAML 5.3 does not support Python 3.4 pytz==2022.1 diff --git a/requirements.txt b/requirements.txt index 7d09771c..98f2b365 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,7 +30,7 @@ itsdangerous==1.1.0 # via -r requirements.in pbr==1.10.0 # via -r requirements.in -protobuf==3.13.0 +protobuf==3.21.1 # via -r requirements.in pycparser==2.18 # via cffi diff --git a/setup.py b/setup.py index 5f11c781..e6b48660 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ install_requires=[ "deprecated==1.2.10", "cryptography>=2.2.1", - "protobuf==3.13.0", + "protobuf==3.21.1", "requests>=2.11.1", "future>=0.11.0", "asn1==2.2.0", From 697b5ccd7c0ff6b4cf54ebc04925b407c5e164e4 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Tue, 21 Feb 2023 19:00:36 +0000 Subject: [PATCH 02/16] SDK-2267:updated refs --- requirements.in | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.in b/requirements.in index 5493ec5f..f25ecb5c 100644 --- a/requirements.in +++ b/requirements.in @@ -4,7 +4,7 @@ cffi==1.14.3 future==0.18.2 itsdangerous==1.1.0 pbr==1.10.0 -protobuf==3.21.1 +protobuf==4.21.12 pyopenssl==19.1.0 PyYAML==5.2 # PyYAML 5.3 does not support Python 3.4 pytz==2022.1 diff --git a/requirements.txt b/requirements.txt index 98f2b365..9236a949 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,7 +30,7 @@ itsdangerous==1.1.0 # via -r requirements.in pbr==1.10.0 # via -r requirements.in -protobuf==3.21.1 +protobuf==3.20.1 # via -r requirements.in pycparser==2.18 # via cffi From a5bd81b2f50546d279a7b0a14023f30eca7f8c19 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Tue, 21 Feb 2023 19:02:49 +0000 Subject: [PATCH 03/16] SDK-2267:updated refs --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e6b48660..1564e16e 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ install_requires=[ "deprecated==1.2.10", "cryptography>=2.2.1", - "protobuf==3.21.1", + "protobuf==3.20.1", "requests>=2.11.1", "future>=0.11.0", "asn1==2.2.0", From 5aaebaa48d5fe4a0a72c0a2f7e6d79702122e9dd Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Tue, 21 Feb 2023 19:09:07 +0000 Subject: [PATCH 04/16] SDK-2267:updated refs --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9236a949..ac3a5451 100644 --- a/requirements.txt +++ b/requirements.txt @@ -30,7 +30,7 @@ itsdangerous==1.1.0 # via -r requirements.in pbr==1.10.0 # via -r requirements.in -protobuf==3.20.1 +protobuf==4.21.12 # via -r requirements.in pycparser==2.18 # via cffi From 50abcea5acfac114a136a9b112e540733456f702 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Wed, 22 Feb 2023 08:29:08 +0000 Subject: [PATCH 05/16] SDK-2267:version update --- yoti_python_sdk/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoti_python_sdk/version.py b/yoti_python_sdk/version.py index e8cf2158..072a54c4 100644 --- a/yoti_python_sdk/version.py +++ b/yoti_python_sdk/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = "2.14.1" +__version__ = "2.14.2" From a0a07ce0098a86333fda3fdfb91964fb1591e776 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Wed, 22 Feb 2023 08:30:43 +0000 Subject: [PATCH 06/16] SDK-2267:version update --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index e85e5860..1adb1c05 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -2,7 +2,7 @@ sonar.host.url = https://sonarcloud.io sonar.organization = getyoti sonar.projectKey = getyoti:python sonar.projectName = Python SDK -sonar.projectVersion = 2.14.1 +sonar.projectVersion = 2.14.2 sonar.exclusions = yoti_python_sdk/tests/**,examples/**,yoti_python_sdk/protobuf/**/* sonar.python.pylint.reportPath = coverage.out From e0ed5c803254206ff2669ccdc80a01cad5418f53 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Tue, 22 Apr 2025 17:18:46 +0300 Subject: [PATCH 07/16] updated-libraries --- requirements.in | 31 +++++++++++++++--------------- requirements.txt | 49 ++++++++++++++++++++++++------------------------ setup.py | 24 ++++++++++++++---------- 3 files changed, 54 insertions(+), 50 deletions(-) diff --git a/requirements.in b/requirements.in index f25ecb5c..6648ad00 100644 --- a/requirements.in +++ b/requirements.in @@ -1,15 +1,16 @@ -asn1==2.2.0 # asn1 2.3.0 introduces enum34 as a dependency, which causes problems on some envs -cryptography==2.8.0 -cffi==1.14.3 -future==0.18.2 -itsdangerous==1.1.0 -pbr==1.10.0 -protobuf==4.21.12 -pyopenssl==19.1.0 -PyYAML==5.2 # PyYAML 5.3 does not support Python 3.4 -pytz==2022.1 -requests>=2.20.0 -urllib3>=1.24.3 -deprecated==1.2.10 -wheel==0.33.6 -iso8601==0.1.13 +asn1==2.2.0 +cryptography>=42.0.0 +cffi>=1.16.0 +future>=0.18.3 +itsdangerous>=2.1.2 +pbr>=5.11.1 +protobuf==3.20.3 +pyopenssl>=24.0.0 +PyYAML>=6.0 +pytz>=2024.1 +requests>=2.31.0 +urllib3>=2.2.1 +deprecated>=1.2.14 +wheel>=0.41.0 +iso8601>=1.1.0 +wrapt>=1.15.0 diff --git a/requirements.txt b/requirements.txt index ac3a5451..762744e3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,60 +1,59 @@ # -# This file is autogenerated by pip-compile with python 3.9 -# To update, run: +# This file is autogenerated by pip-compile with Python 3.12 +# by the following command: # -# pip-compile --output-file=requirements.txt requirements.in +# pip-compile requirements.in # asn1==2.2.0 # via -r requirements.in certifi==2018.11.29 # via requests -cffi==1.14.3 +cffi==1.17.1 # via # -r requirements.in # cryptography -chardet==3.0.4 +charset-normalizer==3.4.1 # via requests -cryptography==2.8 +cryptography==44.0.2 # via # -r requirements.in # pyopenssl -deprecated==1.2.10 +deprecated==1.2.18 # via -r requirements.in -future==0.18.2 +future==1.0.0 # via -r requirements.in idna==2.7 # via requests -iso8601==0.1.13 +iso8601==2.1.0 # via -r requirements.in -itsdangerous==1.1.0 +itsdangerous==2.2.0 # via -r requirements.in -pbr==1.10.0 +pbr==6.1.1 # via -r requirements.in -protobuf==4.21.12 +protobuf==3.20.3 # via -r requirements.in pycparser==2.18 # via cffi -pyopenssl==19.1.0 +pyopenssl==25.0.0 # via -r requirements.in -pytz==2022.1 +pytz==2025.2 # via -r requirements.in -pyyaml==5.2 +pyyaml==6.0.2 # via -r requirements.in -requests==2.21.0 +requests==2.32.0 # via -r requirements.in -six==1.10.0 - # via - # cryptography - # protobuf - # pyopenssl -urllib3==1.24.3 +typing-extensions==4.13.2 + # via pyopenssl +urllib3==2.4.0 # via # -r requirements.in # requests -wheel==0.33.6 +wheel==0.45.1 # via -r requirements.in -wrapt==1.11.2 - # via deprecated +wrapt==1.17.2 + # via + # -r requirements.in + # deprecated # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/setup.py b/setup.py index 1564e16e..4816e027 100644 --- a/setup.py +++ b/setup.py @@ -18,15 +18,14 @@ author="Yoti", author_email="websdk@yoti.com", install_requires=[ - "deprecated==1.2.10", - "cryptography>=2.2.1", - "protobuf==3.20.1", - "requests>=2.11.1", - "future>=0.11.0", - "asn1==2.2.0", - "pyopenssl>=18.0.0", - "iso8601==0.1.13", - "pytz==2022.1", + "asn1==2.2.0", # still pinned due to enum34 issue + "cryptography>=42.0.0", + "protobuf==3.20.3", + "requests>=2.31.0", + "pyopenssl>=24.0.0", + "pytz>=2024.1", + "iso8601>=1.1.0", + "deprecated>=1.2.14", ], extras_require={ "examples": [ @@ -43,7 +42,7 @@ "pylint==1.9.4", "pylint-exit>=1.1.0", "python-coveralls==2.9.3", - "coverage==4.5.4", + "coverage>=7.4.0", "mock==2.0.0", "virtualenv==20.1.0", ], @@ -61,6 +60,11 @@ "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Software Development :: Libraries :: Python Modules", ], keywords="yoti sdk 2FA multifactor authentication verification identity login register verify 2Factor", From b69cbb68b339bc9cd25c17f230237dd54734fa59 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Tue, 22 Apr 2025 17:32:16 +0300 Subject: [PATCH 08/16] updated-libraries-removed-3.7-3.8 tests --- setup.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/setup.py b/setup.py index 4816e027..39ad0f3c 100644 --- a/setup.py +++ b/setup.py @@ -53,14 +53,6 @@ "Operating System :: OS Independent", "Intended Audience :: Developers", "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", From d55a08645b611f66364057bde3fd3f172eda2a25 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Tue, 22 Apr 2025 17:35:23 +0300 Subject: [PATCH 09/16] updated-libraries-removed-3.7-3.8 tests --- .github/workflows/tests.yaml | 4 ++-- requirements.in | 2 +- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 9506b63c..58f914d3 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,11 +9,11 @@ jobs: # only run on pull_request_target event when pull request pulls from fork repository if: > github.event_name == 'push' || - github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository + github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9, "3.10"] + python-version: [3.9, "3.10","3.11","3.12"] steps: - uses: actions/checkout@v2 diff --git a/requirements.in b/requirements.in index 6648ad00..005952ed 100644 --- a/requirements.in +++ b/requirements.in @@ -7,7 +7,7 @@ pbr>=5.11.1 protobuf==3.20.3 pyopenssl>=24.0.0 PyYAML>=6.0 -pytz>=2024.1 +pytz>=2025.2 requests>=2.31.0 urllib3>=2.2.1 deprecated>=1.2.14 diff --git a/setup.py b/setup.py index 39ad0f3c..77c90290 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ "protobuf==3.20.3", "requests>=2.31.0", "pyopenssl>=24.0.0", - "pytz>=2024.1", + "pytz>=2025.2", "iso8601>=1.1.0", "deprecated>=1.2.14", ], From 2fa19d743b17fb47c6f6fdf1c7904149f3aee469 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Wed, 23 Apr 2025 10:34:12 +0100 Subject: [PATCH 10/16] updated example reequirements --- examples/doc_scan/requirements.in | 2 +- examples/doc_scan/requirements.txt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/doc_scan/requirements.in b/examples/doc_scan/requirements.in index 4bfbe87a..e5d2c3e4 100644 --- a/examples/doc_scan/requirements.in +++ b/examples/doc_scan/requirements.in @@ -2,4 +2,4 @@ flask>=1.1.2 python-dotenv>=0.13.0 yoti>=2.13.0 filetype>=1.0.7 -pyopenssl>=19.1.0 +pyopenssl>=24.0.0 diff --git a/examples/doc_scan/requirements.txt b/examples/doc_scan/requirements.txt index 38b136a4..15588a8d 100644 --- a/examples/doc_scan/requirements.txt +++ b/examples/doc_scan/requirements.txt @@ -6,14 +6,14 @@ # asn1==2.2.0 # via yoti certifi==2020.4.5.1 # via requests -cffi==1.14.0 # via cryptography +cffi==1.17.1 chardet==3.0.4 # via requests click==7.1.2 # via flask -cryptography==3.2 # via pyopenssl, yoti +cryptography==44.0.2 deprecated==1.2.10 # via yoti filetype==1.0.7 # via -r requirements.in flask==1.1.2 # via -r requirements.in -future==0.18.2 # via yoti +future==1.0.0 idna==2.9 # via requests iso8601==0.1.13 # via yoti itsdangerous==1.1.0 # via flask @@ -27,7 +27,7 @@ requests==2.23.0 # via yoti six==1.14.0 # via cryptography, protobuf, pyopenssl urllib3==1.25.9 # via requests werkzeug==1.0.1 # via flask -wrapt==1.12.1 # via deprecated +wrapt==1.17.2 # via deprecated yoti==2.13.0 # via -r requirements.in # The following packages are considered to be unsafe in a requirements file: From 140587ac5686103990715658d371704d18c4e5b3 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Thu, 24 Apr 2025 23:43:11 +0300 Subject: [PATCH 11/16] updated requirements and some libraries --- examples/doc_scan/requirements.in | 15 +++-- examples/doc_scan/requirements.txt | 93 ++++++++++++++++++++++-------- requirements.in | 2 +- requirements.txt | 4 +- 4 files changed, 82 insertions(+), 32 deletions(-) diff --git a/examples/doc_scan/requirements.in b/examples/doc_scan/requirements.in index e5d2c3e4..87f754ba 100644 --- a/examples/doc_scan/requirements.in +++ b/examples/doc_scan/requirements.in @@ -1,5 +1,12 @@ -flask>=1.1.2 -python-dotenv>=0.13.0 -yoti>=2.13.0 +# Core requirements +flask>=2.2.0 +python-dotenv>=0.21.0 +yoti==2.14.0 filetype>=1.0.7 -pyopenssl>=24.0.0 +pyopenssl==23.2.0 +click >=8.0 + +# Required for yoti compatibility +deprecated==1.2.10 +iso8601==0.1.13 +pytz==2020.4 \ No newline at end of file diff --git a/examples/doc_scan/requirements.txt b/examples/doc_scan/requirements.txt index 15588a8d..06845b52 100644 --- a/examples/doc_scan/requirements.txt +++ b/examples/doc_scan/requirements.txt @@ -1,34 +1,77 @@ # -# This file is autogenerated by pip-compile -# To update, run: +# This file is autogenerated by pip-compile with Python 3.12 +# by the following command: # # pip-compile --output-file=requirements.txt requirements.in # -asn1==2.2.0 # via yoti -certifi==2020.4.5.1 # via requests +asn1==2.2.0 + # via yoti +blinker==1.9.0 + # via flask +certifi==2020.4.5.1 + # via requests cffi==1.17.1 -chardet==3.0.4 # via requests -click==7.1.2 # via flask -cryptography==44.0.2 -deprecated==1.2.10 # via yoti -filetype==1.0.7 # via -r requirements.in -flask==1.1.2 # via -r requirements.in + # via cryptography +chardet==3.0.4 + # via requests +click==8.1.8 + # via + # -r requirements.in + # flask +cryptography==41.0.7 + # via + # pyopenssl + # yoti +deprecated==1.2.10 + # via + # -r requirements.in + # yoti +filetype==1.0.7 + # via -r requirements.in +flask==3.1.0 + # via -r requirements.in future==1.0.0 -idna==2.9 # via requests -iso8601==0.1.13 # via yoti -itsdangerous==1.1.0 # via flask -jinja2==2.11.2 # via flask -markupsafe==1.1.1 # via jinja2 -protobuf==3.11.3 # via yoti -pycparser==2.20 # via cffi -pyopenssl==19.1.0 # via -r requirements.in, yoti -python-dotenv==0.13.0 # via -r requirements.in -requests==2.23.0 # via yoti -six==1.14.0 # via cryptography, protobuf, pyopenssl -urllib3==1.25.9 # via requests -werkzeug==1.0.1 # via flask -wrapt==1.17.2 # via deprecated -yoti==2.13.0 # via -r requirements.in + # via yoti +idna==2.9 + # via requests +iso8601==0.1.13 + # via + # -r requirements.in + # yoti +itsdangerous==2.2.0 + # via flask +jinja2==3.1.6 + # via flask +markupsafe==3.0.2 + # via + # jinja2 + # werkzeug +protobuf==3.11.3 + # via yoti +pycparser==2.20 + # via cffi +pyopenssl==23.2.0 + # via + # -r requirements.in + # yoti +python-dotenv==1.1.0 + # via -r requirements.in +pytz==2020.4 + # via + # -r requirements.in + # yoti +requests==2.23.0 + # via yoti +six==1.14.0 + # via protobuf +urllib3==1.25.9 + # via requests +werkzeug==3.1.3 + # via flask +wrapt==1.17.2 + # via deprecated +yoti==2.14.0 + # via -r requirements.in # The following packages are considered to be unsafe in a requirements file: # setuptools diff --git a/requirements.in b/requirements.in index 005952ed..5bdc7fe3 100644 --- a/requirements.in +++ b/requirements.in @@ -1,5 +1,5 @@ asn1==2.2.0 -cryptography>=42.0.0 +cryptography>=41.0.7 cffi>=1.16.0 future>=0.18.3 itsdangerous>=2.1.2 diff --git a/requirements.txt b/requirements.txt index 762744e3..861b5012 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ # -# This file is autogenerated by pip-compile with Python 3.12 +# This file is autogenerated by pip-compile with Python 3.11 # by the following command: # -# pip-compile requirements.in +# pip-compile --output-file=requirements.txt requirements.in # asn1==2.2.0 # via -r requirements.in From e427f0e6c1ccc215fb4f1c91439c81fcbaae1185 Mon Sep 17 00:00:00 2001 From: mehmet-yoti <111424390+mehmet-yoti@users.noreply.github.com> Date: Fri, 27 Jun 2025 12:31:50 +0100 Subject: [PATCH 12/16] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d50a9736..e75e3377 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ timestamp = activity_details.timestamp base64_selfie_uri = activity_details.base64_selfie_uri ``` + You can retrieve the anchors, sources and verifiers for each attribute as follows: ```python given_names_attribute = profile.given_names @@ -238,3 +239,4 @@ set LIB=C:\OpenSSL-Win64\lib;%LIB% set INCLUDE=C:\OpenSSL-Win64\include;%INCLUDE% ``` Where `OpenSSL-Win64` is the location that you have installed OpenSSL to. See [here](https://cryptography.io/en/latest/installation/#building-cryptography-on-windows) for more information. + From 27a9a59ce55b313edf6946e038d0e76b2b37545f Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Fri, 27 Jun 2025 12:52:30 +0100 Subject: [PATCH 13/16] updated to fix 3.7 and 3.8 tests requeirements --- .github/workflows/sonar.yaml | 9 +- .github/workflows/tests.yaml | 12 +- env312/bin/Activate.ps1 | 247 +++++++++++++++++++++++++++++++++++ env312/bin/activate | 70 ++++++++++ env312/bin/activate.csh | 27 ++++ env312/bin/activate.fish | 69 ++++++++++ env312/bin/chardetect | 8 ++ env312/bin/dotenv | 8 ++ env312/bin/flask | 8 ++ env312/bin/futurize | 8 ++ env312/bin/normalizer | 8 ++ env312/bin/pasteurize | 8 ++ env312/bin/pbr | 8 ++ env312/bin/pip | 8 ++ env312/bin/pip3 | 8 ++ env312/bin/pip3.12 | 8 ++ env312/bin/python | 1 + env312/bin/python3 | 1 + env312/bin/python3.12 | 1 + env312/bin/wheel | 8 ++ env312/pyvenv.cfg | 5 + 21 files changed, 513 insertions(+), 17 deletions(-) create mode 100644 env312/bin/Activate.ps1 create mode 100644 env312/bin/activate create mode 100644 env312/bin/activate.csh create mode 100644 env312/bin/activate.fish create mode 100755 env312/bin/chardetect create mode 100755 env312/bin/dotenv create mode 100755 env312/bin/flask create mode 100755 env312/bin/futurize create mode 100755 env312/bin/normalizer create mode 100755 env312/bin/pasteurize create mode 100755 env312/bin/pbr create mode 100755 env312/bin/pip create mode 100755 env312/bin/pip3 create mode 100755 env312/bin/pip3.12 create mode 120000 env312/bin/python create mode 120000 env312/bin/python3 create mode 120000 env312/bin/python3.12 create mode 100755 env312/bin/wheel create mode 100644 env312/pyvenv.cfg diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml index f5055259..9d91c4b0 100644 --- a/.github/workflows/sonar.yaml +++ b/.github/workflows/sonar.yaml @@ -1,15 +1,10 @@ name: Sonar Scan -on: [push, pull_request_target] +on: [push, pull_request] jobs: sonar: name: Sonar Scan - runs-on: ubuntu-latest - # always run on push events - # only run on pull_request_target event when pull request pulls from fork repository - if: > - github.event_name == 'push' || - github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 58f914d3..589e42e8 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,15 +1,10 @@ name: Unit Tests -on: [push, pull_request_target] +on: [push, pull_request] jobs: test: name: Test (Python ${{ matrix.python-version }}) runs-on: ubuntu-latest - # always run on push events - # only run on pull_request_target event when pull request pulls from fork repository - if: > - github.event_name == 'push' || - github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository strategy: fail-fast: false matrix: @@ -32,10 +27,7 @@ jobs: examples: name: Check Examples - runs-on: ubuntu-latest - if: > - github.event_name == 'push' || - github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/env312/bin/Activate.ps1 b/env312/bin/Activate.ps1 new file mode 100644 index 00000000..eeea3583 --- /dev/null +++ b/env312/bin/Activate.ps1 @@ -0,0 +1,247 @@ +<# +.Synopsis +Activate a Python virtual environment for the current PowerShell session. + +.Description +Pushes the python executable for a virtual environment to the front of the +$Env:PATH environment variable and sets the prompt to signify that you are +in a Python virtual environment. Makes use of the command line switches as +well as the `pyvenv.cfg` file values present in the virtual environment. + +.Parameter VenvDir +Path to the directory that contains the virtual environment to activate. The +default value for this is the parent of the directory that the Activate.ps1 +script is located within. + +.Parameter Prompt +The prompt prefix to display when this virtual environment is activated. By +default, this prompt is the name of the virtual environment folder (VenvDir) +surrounded by parentheses and followed by a single space (ie. '(.venv) '). + +.Example +Activate.ps1 +Activates the Python virtual environment that contains the Activate.ps1 script. + +.Example +Activate.ps1 -Verbose +Activates the Python virtual environment that contains the Activate.ps1 script, +and shows extra information about the activation as it executes. + +.Example +Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv +Activates the Python virtual environment located in the specified location. + +.Example +Activate.ps1 -Prompt "MyPython" +Activates the Python virtual environment that contains the Activate.ps1 script, +and prefixes the current prompt with the specified string (surrounded in +parentheses) while the virtual environment is active. + +.Notes +On Windows, it may be required to enable this Activate.ps1 script by setting the +execution policy for the user. You can do this by issuing the following PowerShell +command: + +PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser + +For more information on Execution Policies: +https://go.microsoft.com/fwlink/?LinkID=135170 + +#> +Param( + [Parameter(Mandatory = $false)] + [String] + $VenvDir, + [Parameter(Mandatory = $false)] + [String] + $Prompt +) + +<# Function declarations --------------------------------------------------- #> + +<# +.Synopsis +Remove all shell session elements added by the Activate script, including the +addition of the virtual environment's Python executable from the beginning of +the PATH variable. + +.Parameter NonDestructive +If present, do not remove this function from the global namespace for the +session. + +#> +function global:deactivate ([switch]$NonDestructive) { + # Revert to original values + + # The prior prompt: + if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) { + Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt + Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT + } + + # The prior PYTHONHOME: + if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) { + Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME + Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME + } + + # The prior PATH: + if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) { + Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH + Remove-Item -Path Env:_OLD_VIRTUAL_PATH + } + + # Just remove the VIRTUAL_ENV altogether: + if (Test-Path -Path Env:VIRTUAL_ENV) { + Remove-Item -Path env:VIRTUAL_ENV + } + + # Just remove VIRTUAL_ENV_PROMPT altogether. + if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) { + Remove-Item -Path env:VIRTUAL_ENV_PROMPT + } + + # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether: + if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) { + Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force + } + + # Leave deactivate function in the global namespace if requested: + if (-not $NonDestructive) { + Remove-Item -Path function:deactivate + } +} + +<# +.Description +Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the +given folder, and returns them in a map. + +For each line in the pyvenv.cfg file, if that line can be parsed into exactly +two strings separated by `=` (with any amount of whitespace surrounding the =) +then it is considered a `key = value` line. The left hand string is the key, +the right hand is the value. + +If the value starts with a `'` or a `"` then the first and last character is +stripped from the value before being captured. + +.Parameter ConfigDir +Path to the directory that contains the `pyvenv.cfg` file. +#> +function Get-PyVenvConfig( + [String] + $ConfigDir +) { + Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg" + + # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue). + $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue + + # An empty map will be returned if no config file is found. + $pyvenvConfig = @{ } + + if ($pyvenvConfigPath) { + + Write-Verbose "File exists, parse `key = value` lines" + $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath + + $pyvenvConfigContent | ForEach-Object { + $keyval = $PSItem -split "\s*=\s*", 2 + if ($keyval[0] -and $keyval[1]) { + $val = $keyval[1] + + # Remove extraneous quotations around a string value. + if ("'""".Contains($val.Substring(0, 1))) { + $val = $val.Substring(1, $val.Length - 2) + } + + $pyvenvConfig[$keyval[0]] = $val + Write-Verbose "Adding Key: '$($keyval[0])'='$val'" + } + } + } + return $pyvenvConfig +} + + +<# Begin Activate script --------------------------------------------------- #> + +# Determine the containing directory of this script +$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition +$VenvExecDir = Get-Item -Path $VenvExecPath + +Write-Verbose "Activation script is located in path: '$VenvExecPath'" +Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)" +Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)" + +# Set values required in priority: CmdLine, ConfigFile, Default +# First, get the location of the virtual environment, it might not be +# VenvExecDir if specified on the command line. +if ($VenvDir) { + Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values" +} +else { + Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir." + $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/") + Write-Verbose "VenvDir=$VenvDir" +} + +# Next, read the `pyvenv.cfg` file to determine any required value such +# as `prompt`. +$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir + +# Next, set the prompt from the command line, or the config file, or +# just use the name of the virtual environment folder. +if ($Prompt) { + Write-Verbose "Prompt specified as argument, using '$Prompt'" +} +else { + Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value" + if ($pyvenvCfg -and $pyvenvCfg['prompt']) { + Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'" + $Prompt = $pyvenvCfg['prompt']; + } + else { + Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)" + Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'" + $Prompt = Split-Path -Path $venvDir -Leaf + } +} + +Write-Verbose "Prompt = '$Prompt'" +Write-Verbose "VenvDir='$VenvDir'" + +# Deactivate any currently active virtual environment, but leave the +# deactivate function in place. +deactivate -nondestructive + +# Now set the environment variable VIRTUAL_ENV, used by many tools to determine +# that there is an activated venv. +$env:VIRTUAL_ENV = $VenvDir + +if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) { + + Write-Verbose "Setting prompt to '$Prompt'" + + # Set the prompt to include the env name + # Make sure _OLD_VIRTUAL_PROMPT is global + function global:_OLD_VIRTUAL_PROMPT { "" } + Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT + New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt + + function global:prompt { + Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) " + _OLD_VIRTUAL_PROMPT + } + $env:VIRTUAL_ENV_PROMPT = $Prompt +} + +# Clear PYTHONHOME +if (Test-Path -Path Env:PYTHONHOME) { + Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME + Remove-Item -Path Env:PYTHONHOME +} + +# Add the venv to the PATH +Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH +$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH" diff --git a/env312/bin/activate b/env312/bin/activate new file mode 100644 index 00000000..3a731499 --- /dev/null +++ b/env312/bin/activate @@ -0,0 +1,70 @@ +# This file must be used with "source bin/activate" *from bash* +# You cannot run it directly + +deactivate () { + # reset old environment variables + if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then + PATH="${_OLD_VIRTUAL_PATH:-}" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then + PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # Call hash to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + hash -r 2> /dev/null + + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then + PS1="${_OLD_VIRTUAL_PS1:-}" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + unset VIRTUAL_ENV_PROMPT + if [ ! "${1:-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +# on Windows, a path can contain colons and backslashes and has to be converted: +if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then + # transform D:\path\to\venv to /d/path/to/venv on MSYS + # and to /cygdrive/d/path/to/venv on Cygwin + export VIRTUAL_ENV=$(cygpath "/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312") +else + # use the path as-is + export VIRTUAL_ENV="/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312" +fi + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/bin:$PATH" +export PATH + +# unset PYTHONHOME if set +# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) +# could use `if (set -u; : $PYTHONHOME) ;` in bash +if [ -n "${PYTHONHOME:-}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then + _OLD_VIRTUAL_PS1="${PS1:-}" + PS1="(env312) ${PS1:-}" + export PS1 + VIRTUAL_ENV_PROMPT="(env312) " + export VIRTUAL_ENV_PROMPT +fi + +# Call hash to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +hash -r 2> /dev/null diff --git a/env312/bin/activate.csh b/env312/bin/activate.csh new file mode 100644 index 00000000..d35e3f75 --- /dev/null +++ b/env312/bin/activate.csh @@ -0,0 +1,27 @@ +# This file must be used with "source bin/activate.csh" *from csh*. +# You cannot run it directly. + +# Created by Davide Di Blasi . +# Ported to Python 3.3 venv by Andrew Svetlov + +alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV "/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + +set _OLD_VIRTUAL_PROMPT="$prompt" + +if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then + set prompt = "(env312) $prompt" + setenv VIRTUAL_ENV_PROMPT "(env312) " +endif + +alias pydoc python -m pydoc + +rehash diff --git a/env312/bin/activate.fish b/env312/bin/activate.fish new file mode 100644 index 00000000..8c3f09e4 --- /dev/null +++ b/env312/bin/activate.fish @@ -0,0 +1,69 @@ +# This file must be used with "source /bin/activate.fish" *from fish* +# (https://fishshell.com/). You cannot run it directly. + +function deactivate -d "Exit virtual environment and return to normal shell environment" + # reset old environment variables + if test -n "$_OLD_VIRTUAL_PATH" + set -gx PATH $_OLD_VIRTUAL_PATH + set -e _OLD_VIRTUAL_PATH + end + if test -n "$_OLD_VIRTUAL_PYTHONHOME" + set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME + set -e _OLD_VIRTUAL_PYTHONHOME + end + + if test -n "$_OLD_FISH_PROMPT_OVERRIDE" + set -e _OLD_FISH_PROMPT_OVERRIDE + # prevents error when using nested fish instances (Issue #93858) + if functions -q _old_fish_prompt + functions -e fish_prompt + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + end + end + + set -e VIRTUAL_ENV + set -e VIRTUAL_ENV_PROMPT + if test "$argv[1]" != "nondestructive" + # Self-destruct! + functions -e deactivate + end +end + +# Unset irrelevant variables. +deactivate nondestructive + +set -gx VIRTUAL_ENV "/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312" + +set -gx _OLD_VIRTUAL_PATH $PATH +set -gx PATH "$VIRTUAL_ENV/bin" $PATH + +# Unset PYTHONHOME if set. +if set -q PYTHONHOME + set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME + set -e PYTHONHOME +end + +if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" + # fish uses a function instead of an env var to generate the prompt. + + # Save the current fish_prompt function as the function _old_fish_prompt. + functions -c fish_prompt _old_fish_prompt + + # With the original prompt function renamed, we can override with our own. + function fish_prompt + # Save the return status of the last command. + set -l old_status $status + + # Output the venv prompt; color taken from the blue of the Python logo. + printf "%s%s%s" (set_color 4B8BBE) "(env312) " (set_color normal) + + # Restore the return status of the previous command. + echo "exit $old_status" | . + # Output the original/"old" prompt. + _old_fish_prompt + end + + set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" + set -gx VIRTUAL_ENV_PROMPT "(env312) " +end diff --git a/env312/bin/chardetect b/env312/bin/chardetect new file mode 100755 index 00000000..f472d2a4 --- /dev/null +++ b/env312/bin/chardetect @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from chardet.cli.chardetect import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/env312/bin/dotenv b/env312/bin/dotenv new file mode 100755 index 00000000..fa988b51 --- /dev/null +++ b/env312/bin/dotenv @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from dotenv.cli import cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli()) diff --git a/env312/bin/flask b/env312/bin/flask new file mode 100755 index 00000000..059089fc --- /dev/null +++ b/env312/bin/flask @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from flask.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/env312/bin/futurize b/env312/bin/futurize new file mode 100755 index 00000000..cbb06a3d --- /dev/null +++ b/env312/bin/futurize @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from libfuturize.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/env312/bin/normalizer b/env312/bin/normalizer new file mode 100755 index 00000000..bcd453ee --- /dev/null +++ b/env312/bin/normalizer @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from charset_normalizer import cli +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli.cli_detect()) diff --git a/env312/bin/pasteurize b/env312/bin/pasteurize new file mode 100755 index 00000000..848e37a8 --- /dev/null +++ b/env312/bin/pasteurize @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from libpasteurize.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/env312/bin/pbr b/env312/bin/pbr new file mode 100755 index 00000000..39c4c436 --- /dev/null +++ b/env312/bin/pbr @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from pbr.cmd.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/env312/bin/pip b/env312/bin/pip new file mode 100755 index 00000000..035529bb --- /dev/null +++ b/env312/bin/pip @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/env312/bin/pip3 b/env312/bin/pip3 new file mode 100755 index 00000000..035529bb --- /dev/null +++ b/env312/bin/pip3 @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/env312/bin/pip3.12 b/env312/bin/pip3.12 new file mode 100755 index 00000000..035529bb --- /dev/null +++ b/env312/bin/pip3.12 @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/env312/bin/python b/env312/bin/python new file mode 120000 index 00000000..11b9d885 --- /dev/null +++ b/env312/bin/python @@ -0,0 +1 @@ +python3.12 \ No newline at end of file diff --git a/env312/bin/python3 b/env312/bin/python3 new file mode 120000 index 00000000..11b9d885 --- /dev/null +++ b/env312/bin/python3 @@ -0,0 +1 @@ +python3.12 \ No newline at end of file diff --git a/env312/bin/python3.12 b/env312/bin/python3.12 new file mode 120000 index 00000000..f865d609 --- /dev/null +++ b/env312/bin/python3.12 @@ -0,0 +1 @@ +/Users/mehmetalisepici/.pyenv/versions/3.12.3/bin/python3.12 \ No newline at end of file diff --git a/env312/bin/wheel b/env312/bin/wheel new file mode 100755 index 00000000..8fed8720 --- /dev/null +++ b/env312/bin/wheel @@ -0,0 +1,8 @@ +#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 +# -*- coding: utf-8 -*- +import re +import sys +from wheel.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/env312/pyvenv.cfg b/env312/pyvenv.cfg new file mode 100644 index 00000000..3a6a9a0f --- /dev/null +++ b/env312/pyvenv.cfg @@ -0,0 +1,5 @@ +home = /Users/mehmetalisepici/.pyenv/versions/3.12.3/bin +include-system-site-packages = false +version = 3.12.3 +executable = /Users/mehmetalisepici/.pyenv/versions/3.12.3/bin/python3.12 +command = /Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/venv/bin/python3.12 -m venv /Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312 From 496a98184942df3590d617e6447627659990055a Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Fri, 27 Jun 2025 12:53:23 +0100 Subject: [PATCH 14/16] updated to fix 3.7 and 3.8 tests requeirements --- env312/bin/Activate.ps1 | 247 --------------------------------------- env312/bin/activate | 70 ----------- env312/bin/activate.csh | 27 ----- env312/bin/activate.fish | 69 ----------- env312/bin/chardetect | 8 -- env312/bin/dotenv | 8 -- env312/bin/flask | 8 -- env312/bin/futurize | 8 -- env312/bin/normalizer | 8 -- env312/bin/pasteurize | 8 -- env312/bin/pbr | 8 -- env312/bin/pip | 8 -- env312/bin/pip3 | 8 -- env312/bin/pip3.12 | 8 -- env312/bin/python | 1 - env312/bin/python3 | 1 - env312/bin/python3.12 | 1 - env312/bin/wheel | 8 -- env312/pyvenv.cfg | 5 - 19 files changed, 509 deletions(-) delete mode 100644 env312/bin/Activate.ps1 delete mode 100644 env312/bin/activate delete mode 100644 env312/bin/activate.csh delete mode 100644 env312/bin/activate.fish delete mode 100755 env312/bin/chardetect delete mode 100755 env312/bin/dotenv delete mode 100755 env312/bin/flask delete mode 100755 env312/bin/futurize delete mode 100755 env312/bin/normalizer delete mode 100755 env312/bin/pasteurize delete mode 100755 env312/bin/pbr delete mode 100755 env312/bin/pip delete mode 100755 env312/bin/pip3 delete mode 100755 env312/bin/pip3.12 delete mode 120000 env312/bin/python delete mode 120000 env312/bin/python3 delete mode 120000 env312/bin/python3.12 delete mode 100755 env312/bin/wheel delete mode 100644 env312/pyvenv.cfg diff --git a/env312/bin/Activate.ps1 b/env312/bin/Activate.ps1 deleted file mode 100644 index eeea3583..00000000 --- a/env312/bin/Activate.ps1 +++ /dev/null @@ -1,247 +0,0 @@ -<# -.Synopsis -Activate a Python virtual environment for the current PowerShell session. - -.Description -Pushes the python executable for a virtual environment to the front of the -$Env:PATH environment variable and sets the prompt to signify that you are -in a Python virtual environment. Makes use of the command line switches as -well as the `pyvenv.cfg` file values present in the virtual environment. - -.Parameter VenvDir -Path to the directory that contains the virtual environment to activate. The -default value for this is the parent of the directory that the Activate.ps1 -script is located within. - -.Parameter Prompt -The prompt prefix to display when this virtual environment is activated. By -default, this prompt is the name of the virtual environment folder (VenvDir) -surrounded by parentheses and followed by a single space (ie. '(.venv) '). - -.Example -Activate.ps1 -Activates the Python virtual environment that contains the Activate.ps1 script. - -.Example -Activate.ps1 -Verbose -Activates the Python virtual environment that contains the Activate.ps1 script, -and shows extra information about the activation as it executes. - -.Example -Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv -Activates the Python virtual environment located in the specified location. - -.Example -Activate.ps1 -Prompt "MyPython" -Activates the Python virtual environment that contains the Activate.ps1 script, -and prefixes the current prompt with the specified string (surrounded in -parentheses) while the virtual environment is active. - -.Notes -On Windows, it may be required to enable this Activate.ps1 script by setting the -execution policy for the user. You can do this by issuing the following PowerShell -command: - -PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser - -For more information on Execution Policies: -https://go.microsoft.com/fwlink/?LinkID=135170 - -#> -Param( - [Parameter(Mandatory = $false)] - [String] - $VenvDir, - [Parameter(Mandatory = $false)] - [String] - $Prompt -) - -<# Function declarations --------------------------------------------------- #> - -<# -.Synopsis -Remove all shell session elements added by the Activate script, including the -addition of the virtual environment's Python executable from the beginning of -the PATH variable. - -.Parameter NonDestructive -If present, do not remove this function from the global namespace for the -session. - -#> -function global:deactivate ([switch]$NonDestructive) { - # Revert to original values - - # The prior prompt: - if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) { - Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt - Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT - } - - # The prior PYTHONHOME: - if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) { - Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME - Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME - } - - # The prior PATH: - if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) { - Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH - Remove-Item -Path Env:_OLD_VIRTUAL_PATH - } - - # Just remove the VIRTUAL_ENV altogether: - if (Test-Path -Path Env:VIRTUAL_ENV) { - Remove-Item -Path env:VIRTUAL_ENV - } - - # Just remove VIRTUAL_ENV_PROMPT altogether. - if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) { - Remove-Item -Path env:VIRTUAL_ENV_PROMPT - } - - # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether: - if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) { - Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force - } - - # Leave deactivate function in the global namespace if requested: - if (-not $NonDestructive) { - Remove-Item -Path function:deactivate - } -} - -<# -.Description -Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the -given folder, and returns them in a map. - -For each line in the pyvenv.cfg file, if that line can be parsed into exactly -two strings separated by `=` (with any amount of whitespace surrounding the =) -then it is considered a `key = value` line. The left hand string is the key, -the right hand is the value. - -If the value starts with a `'` or a `"` then the first and last character is -stripped from the value before being captured. - -.Parameter ConfigDir -Path to the directory that contains the `pyvenv.cfg` file. -#> -function Get-PyVenvConfig( - [String] - $ConfigDir -) { - Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg" - - # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue). - $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue - - # An empty map will be returned if no config file is found. - $pyvenvConfig = @{ } - - if ($pyvenvConfigPath) { - - Write-Verbose "File exists, parse `key = value` lines" - $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath - - $pyvenvConfigContent | ForEach-Object { - $keyval = $PSItem -split "\s*=\s*", 2 - if ($keyval[0] -and $keyval[1]) { - $val = $keyval[1] - - # Remove extraneous quotations around a string value. - if ("'""".Contains($val.Substring(0, 1))) { - $val = $val.Substring(1, $val.Length - 2) - } - - $pyvenvConfig[$keyval[0]] = $val - Write-Verbose "Adding Key: '$($keyval[0])'='$val'" - } - } - } - return $pyvenvConfig -} - - -<# Begin Activate script --------------------------------------------------- #> - -# Determine the containing directory of this script -$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition -$VenvExecDir = Get-Item -Path $VenvExecPath - -Write-Verbose "Activation script is located in path: '$VenvExecPath'" -Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)" -Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)" - -# Set values required in priority: CmdLine, ConfigFile, Default -# First, get the location of the virtual environment, it might not be -# VenvExecDir if specified on the command line. -if ($VenvDir) { - Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values" -} -else { - Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir." - $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/") - Write-Verbose "VenvDir=$VenvDir" -} - -# Next, read the `pyvenv.cfg` file to determine any required value such -# as `prompt`. -$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir - -# Next, set the prompt from the command line, or the config file, or -# just use the name of the virtual environment folder. -if ($Prompt) { - Write-Verbose "Prompt specified as argument, using '$Prompt'" -} -else { - Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value" - if ($pyvenvCfg -and $pyvenvCfg['prompt']) { - Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'" - $Prompt = $pyvenvCfg['prompt']; - } - else { - Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)" - Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'" - $Prompt = Split-Path -Path $venvDir -Leaf - } -} - -Write-Verbose "Prompt = '$Prompt'" -Write-Verbose "VenvDir='$VenvDir'" - -# Deactivate any currently active virtual environment, but leave the -# deactivate function in place. -deactivate -nondestructive - -# Now set the environment variable VIRTUAL_ENV, used by many tools to determine -# that there is an activated venv. -$env:VIRTUAL_ENV = $VenvDir - -if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) { - - Write-Verbose "Setting prompt to '$Prompt'" - - # Set the prompt to include the env name - # Make sure _OLD_VIRTUAL_PROMPT is global - function global:_OLD_VIRTUAL_PROMPT { "" } - Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT - New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt - - function global:prompt { - Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) " - _OLD_VIRTUAL_PROMPT - } - $env:VIRTUAL_ENV_PROMPT = $Prompt -} - -# Clear PYTHONHOME -if (Test-Path -Path Env:PYTHONHOME) { - Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME - Remove-Item -Path Env:PYTHONHOME -} - -# Add the venv to the PATH -Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH -$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH" diff --git a/env312/bin/activate b/env312/bin/activate deleted file mode 100644 index 3a731499..00000000 --- a/env312/bin/activate +++ /dev/null @@ -1,70 +0,0 @@ -# This file must be used with "source bin/activate" *from bash* -# You cannot run it directly - -deactivate () { - # reset old environment variables - if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then - PATH="${_OLD_VIRTUAL_PATH:-}" - export PATH - unset _OLD_VIRTUAL_PATH - fi - if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then - PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}" - export PYTHONHOME - unset _OLD_VIRTUAL_PYTHONHOME - fi - - # Call hash to forget past commands. Without forgetting - # past commands the $PATH changes we made may not be respected - hash -r 2> /dev/null - - if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then - PS1="${_OLD_VIRTUAL_PS1:-}" - export PS1 - unset _OLD_VIRTUAL_PS1 - fi - - unset VIRTUAL_ENV - unset VIRTUAL_ENV_PROMPT - if [ ! "${1:-}" = "nondestructive" ] ; then - # Self destruct! - unset -f deactivate - fi -} - -# unset irrelevant variables -deactivate nondestructive - -# on Windows, a path can contain colons and backslashes and has to be converted: -if [ "${OSTYPE:-}" = "cygwin" ] || [ "${OSTYPE:-}" = "msys" ] ; then - # transform D:\path\to\venv to /d/path/to/venv on MSYS - # and to /cygdrive/d/path/to/venv on Cygwin - export VIRTUAL_ENV=$(cygpath "/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312") -else - # use the path as-is - export VIRTUAL_ENV="/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312" -fi - -_OLD_VIRTUAL_PATH="$PATH" -PATH="$VIRTUAL_ENV/bin:$PATH" -export PATH - -# unset PYTHONHOME if set -# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) -# could use `if (set -u; : $PYTHONHOME) ;` in bash -if [ -n "${PYTHONHOME:-}" ] ; then - _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}" - unset PYTHONHOME -fi - -if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then - _OLD_VIRTUAL_PS1="${PS1:-}" - PS1="(env312) ${PS1:-}" - export PS1 - VIRTUAL_ENV_PROMPT="(env312) " - export VIRTUAL_ENV_PROMPT -fi - -# Call hash to forget past commands. Without forgetting -# past commands the $PATH changes we made may not be respected -hash -r 2> /dev/null diff --git a/env312/bin/activate.csh b/env312/bin/activate.csh deleted file mode 100644 index d35e3f75..00000000 --- a/env312/bin/activate.csh +++ /dev/null @@ -1,27 +0,0 @@ -# This file must be used with "source bin/activate.csh" *from csh*. -# You cannot run it directly. - -# Created by Davide Di Blasi . -# Ported to Python 3.3 venv by Andrew Svetlov - -alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate' - -# Unset irrelevant variables. -deactivate nondestructive - -setenv VIRTUAL_ENV "/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312" - -set _OLD_VIRTUAL_PATH="$PATH" -setenv PATH "$VIRTUAL_ENV/bin:$PATH" - - -set _OLD_VIRTUAL_PROMPT="$prompt" - -if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then - set prompt = "(env312) $prompt" - setenv VIRTUAL_ENV_PROMPT "(env312) " -endif - -alias pydoc python -m pydoc - -rehash diff --git a/env312/bin/activate.fish b/env312/bin/activate.fish deleted file mode 100644 index 8c3f09e4..00000000 --- a/env312/bin/activate.fish +++ /dev/null @@ -1,69 +0,0 @@ -# This file must be used with "source /bin/activate.fish" *from fish* -# (https://fishshell.com/). You cannot run it directly. - -function deactivate -d "Exit virtual environment and return to normal shell environment" - # reset old environment variables - if test -n "$_OLD_VIRTUAL_PATH" - set -gx PATH $_OLD_VIRTUAL_PATH - set -e _OLD_VIRTUAL_PATH - end - if test -n "$_OLD_VIRTUAL_PYTHONHOME" - set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME - set -e _OLD_VIRTUAL_PYTHONHOME - end - - if test -n "$_OLD_FISH_PROMPT_OVERRIDE" - set -e _OLD_FISH_PROMPT_OVERRIDE - # prevents error when using nested fish instances (Issue #93858) - if functions -q _old_fish_prompt - functions -e fish_prompt - functions -c _old_fish_prompt fish_prompt - functions -e _old_fish_prompt - end - end - - set -e VIRTUAL_ENV - set -e VIRTUAL_ENV_PROMPT - if test "$argv[1]" != "nondestructive" - # Self-destruct! - functions -e deactivate - end -end - -# Unset irrelevant variables. -deactivate nondestructive - -set -gx VIRTUAL_ENV "/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312" - -set -gx _OLD_VIRTUAL_PATH $PATH -set -gx PATH "$VIRTUAL_ENV/bin" $PATH - -# Unset PYTHONHOME if set. -if set -q PYTHONHOME - set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME - set -e PYTHONHOME -end - -if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" - # fish uses a function instead of an env var to generate the prompt. - - # Save the current fish_prompt function as the function _old_fish_prompt. - functions -c fish_prompt _old_fish_prompt - - # With the original prompt function renamed, we can override with our own. - function fish_prompt - # Save the return status of the last command. - set -l old_status $status - - # Output the venv prompt; color taken from the blue of the Python logo. - printf "%s%s%s" (set_color 4B8BBE) "(env312) " (set_color normal) - - # Restore the return status of the previous command. - echo "exit $old_status" | . - # Output the original/"old" prompt. - _old_fish_prompt - end - - set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" - set -gx VIRTUAL_ENV_PROMPT "(env312) " -end diff --git a/env312/bin/chardetect b/env312/bin/chardetect deleted file mode 100755 index f472d2a4..00000000 --- a/env312/bin/chardetect +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from chardet.cli.chardetect import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/env312/bin/dotenv b/env312/bin/dotenv deleted file mode 100755 index fa988b51..00000000 --- a/env312/bin/dotenv +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from dotenv.cli import cli -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(cli()) diff --git a/env312/bin/flask b/env312/bin/flask deleted file mode 100755 index 059089fc..00000000 --- a/env312/bin/flask +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from flask.cli import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/env312/bin/futurize b/env312/bin/futurize deleted file mode 100755 index cbb06a3d..00000000 --- a/env312/bin/futurize +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from libfuturize.main import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/env312/bin/normalizer b/env312/bin/normalizer deleted file mode 100755 index bcd453ee..00000000 --- a/env312/bin/normalizer +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from charset_normalizer import cli -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(cli.cli_detect()) diff --git a/env312/bin/pasteurize b/env312/bin/pasteurize deleted file mode 100755 index 848e37a8..00000000 --- a/env312/bin/pasteurize +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from libpasteurize.main import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/env312/bin/pbr b/env312/bin/pbr deleted file mode 100755 index 39c4c436..00000000 --- a/env312/bin/pbr +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from pbr.cmd.main import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/env312/bin/pip b/env312/bin/pip deleted file mode 100755 index 035529bb..00000000 --- a/env312/bin/pip +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from pip._internal.cli.main import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/env312/bin/pip3 b/env312/bin/pip3 deleted file mode 100755 index 035529bb..00000000 --- a/env312/bin/pip3 +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from pip._internal.cli.main import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/env312/bin/pip3.12 b/env312/bin/pip3.12 deleted file mode 100755 index 035529bb..00000000 --- a/env312/bin/pip3.12 +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from pip._internal.cli.main import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/env312/bin/python b/env312/bin/python deleted file mode 120000 index 11b9d885..00000000 --- a/env312/bin/python +++ /dev/null @@ -1 +0,0 @@ -python3.12 \ No newline at end of file diff --git a/env312/bin/python3 b/env312/bin/python3 deleted file mode 120000 index 11b9d885..00000000 --- a/env312/bin/python3 +++ /dev/null @@ -1 +0,0 @@ -python3.12 \ No newline at end of file diff --git a/env312/bin/python3.12 b/env312/bin/python3.12 deleted file mode 120000 index f865d609..00000000 --- a/env312/bin/python3.12 +++ /dev/null @@ -1 +0,0 @@ -/Users/mehmetalisepici/.pyenv/versions/3.12.3/bin/python3.12 \ No newline at end of file diff --git a/env312/bin/wheel b/env312/bin/wheel deleted file mode 100755 index 8fed8720..00000000 --- a/env312/bin/wheel +++ /dev/null @@ -1,8 +0,0 @@ -#!/Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312/bin/python3.12 -# -*- coding: utf-8 -*- -import re -import sys -from wheel.cli import main -if __name__ == '__main__': - sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) - sys.exit(main()) diff --git a/env312/pyvenv.cfg b/env312/pyvenv.cfg deleted file mode 100644 index 3a6a9a0f..00000000 --- a/env312/pyvenv.cfg +++ /dev/null @@ -1,5 +0,0 @@ -home = /Users/mehmetalisepici/.pyenv/versions/3.12.3/bin -include-system-site-packages = false -version = 3.12.3 -executable = /Users/mehmetalisepici/.pyenv/versions/3.12.3/bin/python3.12 -command = /Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/venv/bin/python3.12 -m venv /Users/mehmetalisepici/Projects/Yoti-Sdk/yoti-python-sdk/env312 From 067b85b4a99026e2e1de171435f7450c7a23e4d9 Mon Sep 17 00:00:00 2001 From: mehmet-yoti Date: Fri, 27 Jun 2025 12:58:36 +0100 Subject: [PATCH 15/16] updated to fix 3.7 and 3.8 tests requeirements --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 589e42e8..4f2b6fb2 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.9, "3.10","3.11","3.12"] + python-version: [3.7,3.8,3.9, "3.10","3.11","3.12"] steps: - uses: actions/checkout@v2 From 0cffec644de569c40525920581eddf526100a11a Mon Sep 17 00:00:00 2001 From: mehmet-yoti <111424390+mehmet-yoti@users.noreply.github.com> Date: Mon, 30 Jun 2025 12:48:53 +0300 Subject: [PATCH 16/16] Update tests.yaml --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4f2b6fb2..589e42e8 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7,3.8,3.9, "3.10","3.11","3.12"] + python-version: [3.9, "3.10","3.11","3.12"] steps: - uses: actions/checkout@v2