Skip to content

Commit

Permalink
Merge pull request #692 from appwrite/fix-python-sdk-issue
Browse files Browse the repository at this point in the history
Fix python sdk issue
  • Loading branch information
christyjacob4 authored Jul 10, 2023
2 parents f2300f0 + 904c35d commit d35c5af
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions templates/python/.travis.yml.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: python

dist: bionic

python:
- "3.8"

Expand Down
2 changes: 1 addition & 1 deletion templates/python/requirements.txt.twig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
requests==2.29.0
requests==2.31.0
2 changes: 1 addition & 1 deletion templates/python/setup.cfg.twig
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
description-file = README.md
description_file = README.md
2 changes: 1 addition & 1 deletion tests/Python310Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Python310Test extends Base
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.10 pip install -r tests/sdks/python/requirements.txt --upgrade',
'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor python:3.10-alpine pip install -r tests/sdks/python/requirements.txt --upgrade',
];
protected string $command =
'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor --env PYTHONPATH=tests/sdks/python/vendor python:3.10-alpine python tests/sdks/python/test.py';
Expand Down
2 changes: 1 addition & 1 deletion tests/Python38Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Python38Test extends Base
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.8 pip install -r tests/sdks/python/requirements.txt --upgrade',
'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor python:3.8-alpine pip install -r tests/sdks/python/requirements.txt --upgrade',
];
protected string $command =
'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor --env PYTHONPATH=tests/sdks/python/vendor python:3.8-alpine python tests/sdks/python/test.py';
Expand Down
2 changes: 1 addition & 1 deletion tests/Python39Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Python39Test extends Base
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.9 pip install -r tests/sdks/python/requirements.txt --upgrade',
'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor python:3.9-alpine pip install -r tests/sdks/python/requirements.txt --upgrade',
];
protected string $command =
'docker run --rm -v $(pwd):/app -w /app --env PIP_TARGET=tests/sdks/python/vendor --env PYTHONPATH=tests/sdks/python/vendor python:3.9-alpine python tests/sdks/python/test.py';
Expand Down

0 comments on commit d35c5af

Please sign in to comment.