-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1046 from appwrite/add-python-types
fix: add typing module for python 3.13
- Loading branch information
Showing
4 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ jobs: | |
Python310, | ||
Python311, | ||
Python312, | ||
Python313, | ||
Ruby27, | ||
Ruby30, | ||
Ruby31, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace Tests; | ||
|
||
class Python313Test extends Base | ||
{ | ||
protected string $sdkName = 'python'; | ||
protected string $sdkPlatform = 'server'; | ||
protected string $sdkLanguage = 'python'; | ||
protected string $version = '0.0.1'; | ||
|
||
protected string $language = 'python'; | ||
protected string $class = 'Appwrite\SDK\Language\Python'; | ||
protected array $build = [ | ||
'cp tests/languages/python/tests.py tests/sdks/python/test.py', | ||
'echo "" > tests/sdks/python/__init__.py', | ||
'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor python:3.13-alpine pip install -r tests/sdks/python/requirements.txt --upgrade', | ||
]; | ||
protected string $command = | ||
'docker run --network="mockapi" --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor --env PYTHONPATH=tests/sdks/python/vendor python:3.13-alpine python tests/sdks/python/test.py'; | ||
|
||
protected array $expectedOutput = [ | ||
...Base::FOO_RESPONSES, | ||
...Base::BAR_RESPONSES, | ||
...Base::GENERAL_RESPONSES, | ||
...Base::UPLOAD_RESPONSES, | ||
...Base::ENUM_RESPONSES, | ||
...Base::EXCEPTION_RESPONSES, | ||
...Base::OAUTH_RESPONSES, | ||
...Base::QUERY_HELPER_RESPONSES, | ||
...Base::PERMISSION_HELPER_RESPONSES, | ||
...Base::ID_HELPER_RESPONSES | ||
]; | ||
} |