Skip to content

Commit 68c9adb

Browse files
authored
Merge pull request #789 from appwrite/fix-python-modules
Fix python modules
2 parents ee68012 + c3dc51b commit 68c9adb

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

src/SDK/Language/Python.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ public function getFiles(): array
185185
'destination' => '{{ spec.title | caseSnake}}/encoders/value_class_encoder.py',
186186
'template' => 'python/package/encoders/value_class_encoder.py.twig',
187187
],
188+
[
189+
'scope' => 'default',
190+
'destination' => '{{ spec.title | caseSnake}}/encoders/__init__.py',
191+
'template' => 'python/package/encoders/__init__.py.twig',
192+
],
188193
[
189194
'scope' => 'service',
190195
'destination' => '{{ spec.title | caseSnake}}/services/{{service.name | caseSnake}}.py',
@@ -205,6 +210,11 @@ public function getFiles(): array
205210
'destination' => '{{ spec.title | caseSnake}}/enums/{{ enum.name | caseSnake }}.py',
206211
'template' => 'python/package/enums/enum.py.twig',
207212
],
213+
[
214+
'scope' => 'default',
215+
'destination' => '{{ spec.title | caseSnake}}/enums/__init__.py',
216+
'template' => 'python/package/enums/__init__.py.twig',
217+
],
208218
];
209219
}
210220

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

templates/python/setup.py.twig

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ setuptools.setup(
1919
maintainer_email = '{{spec.contactEmail}}',
2020
url = '{{spec.contactURL}}',
2121
download_url='https://github.com/{{sdk.gitUserName}}/{{sdk.gitRepoName}}/archive/{{sdk.version}}.tar.gz',
22-
# keywords = ['SOME', 'MEANINGFULL', 'KEYWORDS'],
2322
install_requires=[
24-
'requests',
25-
],
23+
'requests',
24+
],
2625
classifiers=[
2726
'Development Status :: 5 - Production/Stable',
2827
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)