Skip to content

Commit

Permalink
Merge pull request #789 from appwrite/fix-python-modules
Browse files Browse the repository at this point in the history
Fix python modules
  • Loading branch information
abnegate authored Mar 8, 2024
2 parents ee68012 + c3dc51b commit 68c9adb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions src/SDK/Language/Python.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,11 @@ public function getFiles(): array
'destination' => '{{ spec.title | caseSnake}}/encoders/value_class_encoder.py',
'template' => 'python/package/encoders/value_class_encoder.py.twig',
],
[
'scope' => 'default',
'destination' => '{{ spec.title | caseSnake}}/encoders/__init__.py',
'template' => 'python/package/encoders/__init__.py.twig',
],
[
'scope' => 'service',
'destination' => '{{ spec.title | caseSnake}}/services/{{service.name | caseSnake}}.py',
Expand All @@ -205,6 +210,11 @@ public function getFiles(): array
'destination' => '{{ spec.title | caseSnake}}/enums/{{ enum.name | caseSnake }}.py',
'template' => 'python/package/enums/enum.py.twig',
],
[
'scope' => 'default',
'destination' => '{{ spec.title | caseSnake}}/enums/__init__.py',
'template' => 'python/package/enums/__init__.py.twig',
],
];
}

Expand Down
1 change: 1 addition & 0 deletions templates/python/package/encoders/__init__.py.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions templates/python/package/enums/__init__.py.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

5 changes: 2 additions & 3 deletions templates/python/setup.py.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ setuptools.setup(
maintainer_email = '{{spec.contactEmail}}',
url = '{{spec.contactURL}}',
download_url='https://github.com/{{sdk.gitUserName}}/{{sdk.gitRepoName}}/archive/{{sdk.version}}.tar.gz',
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
install_requires=[
'requests',
],
'requests',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
Expand Down

0 comments on commit 68c9adb

Please sign in to comment.