stone 3.3.6__tar.gz → 3.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stone-3.3.6/stone.egg-info → stone-3.3.7}/PKG-INFO +2 -1
- {stone-3.3.6 → stone-3.3.7}/ez_setup.py +1 -1
- {stone-3.3.6 → stone-3.3.7}/setup.py +1 -1
- {stone-3.3.6 → stone-3.3.7}/stone/backends/obj_c_types.py +2 -2
- {stone-3.3.6 → stone-3.3.7}/stone/frontend/ir_generator.py +2 -0
- {stone-3.3.6 → stone-3.3.7}/stone/ir/api.py +2 -2
- {stone-3.3.6 → stone-3.3.7/stone.egg-info}/PKG-INFO +2 -1
- {stone-3.3.6 → stone-3.3.7}/stone.egg-info/requires.txt +1 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_backend.py +2 -2
- {stone-3.3.6 → stone-3.3.7}/LICENSE +0 -0
- {stone-3.3.6 → stone-3.3.7}/MANIFEST.in +0 -0
- {stone-3.3.6 → stone-3.3.7}/README.rst +0 -0
- {stone-3.3.6 → stone-3.3.7}/setup.cfg +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/__init__.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backend.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/__init__.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/helpers.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/js_client.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/js_helpers.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/js_types.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/obj_c.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/obj_c_client.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/obj_c_helpers.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/python_client.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/python_helpers.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/python_rsrc/__init__.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/python_rsrc/stone_base.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/python_rsrc/stone_serializers.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/python_rsrc/stone_validators.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/python_type_mapping.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/python_type_stubs.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/python_types.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/swift.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/swift_client.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/swift_helpers.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/swift_types.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/tsd_client.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/tsd_helpers.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/backends/tsd_types.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/cli.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/cli_helpers.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/compiler.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/frontend/__init__.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/frontend/ast.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/frontend/exception.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/frontend/frontend.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/frontend/lexer.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/frontend/parser.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/ir/__init__.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/ir/data_types.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/py.typed +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone/typing_hacks.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone.egg-info/SOURCES.txt +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone.egg-info/dependency_links.txt +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone.egg-info/entry_points.txt +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone.egg-info/not-zip-safe +0 -0
- {stone-3.3.6 → stone-3.3.7}/stone.egg-info/top_level.txt +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/requirements.txt +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_cli.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_js_client.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_python_client.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_python_gen.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_python_type_stubs.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_python_types.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_stone.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_stone_internal.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_stone_route_whitelist.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_tsd_client.py +0 -0
- {stone-3.3.6 → stone-3.3.7}/test/test_tsd_types.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stone
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.7
|
|
4
4
|
Summary: Stone is an interface description language (IDL) for APIs.
|
|
5
5
|
Home-page: https://github.com/dropbox/stone
|
|
6
6
|
Author: Ken Elkabany
|
|
@@ -21,6 +21,7 @@ Description-Content-Type: text/x-rst
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: ply>=3.4
|
|
23
23
|
Requires-Dist: six>=1.12.0
|
|
24
|
+
Requires-Dist: packaging>=21.0
|
|
24
25
|
|
|
25
26
|
.. image:: https://cfl.dropboxstatic.com/static/images/sdk/stone_banner.png
|
|
26
27
|
:target: https://github.com/dropbox/stone
|
|
@@ -1006,7 +1006,7 @@ class ObjCTypesBackend(ObjCBaseBackend):
|
|
|
1006
1006
|
self.emit(
|
|
1007
1007
|
'jsonDict[@".tag"] = @"{}";'.format(fmt_var(tag)))
|
|
1008
1008
|
self.emit()
|
|
1009
|
-
self.emit('return
|
|
1009
|
+
self.emit('return jsonDict;')
|
|
1010
1010
|
self.emit()
|
|
1011
1011
|
|
|
1012
1012
|
def _generate_struct_deserializer(self, struct):
|
|
@@ -1152,7 +1152,7 @@ class ObjCTypesBackend(ObjCBaseBackend):
|
|
|
1152
1152
|
)
|
|
1153
1153
|
|
|
1154
1154
|
self.emit()
|
|
1155
|
-
self.emit('return
|
|
1155
|
+
self.emit('return jsonDict;')
|
|
1156
1156
|
|
|
1157
1157
|
self.emit()
|
|
1158
1158
|
|
|
@@ -826,6 +826,8 @@ class IRGenerator:
|
|
|
826
826
|
|
|
827
827
|
# collect data types from subtypes recursively
|
|
828
828
|
if is_struct_type(data_type) or is_union_type(data_type):
|
|
829
|
+
if data_type.parent_type:
|
|
830
|
+
annotations.update(recurse(data_type.parent_type))
|
|
829
831
|
for field in data_type.fields:
|
|
830
832
|
annotations.update(recurse(field.data_type))
|
|
831
833
|
# annotations can be defined directly on fields
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from collections import OrderedDict
|
|
2
2
|
# See <https://github.com/PyCQA/pylint/issues/73>
|
|
3
|
-
from
|
|
3
|
+
from packaging.version import Version
|
|
4
4
|
|
|
5
5
|
from .data_types import (
|
|
6
6
|
doc_unwrap,
|
|
@@ -34,7 +34,7 @@ class Api:
|
|
|
34
34
|
"""
|
|
35
35
|
def __init__(self, version):
|
|
36
36
|
# type: (str) -> None
|
|
37
|
-
self.version =
|
|
37
|
+
self.version = Version(version)
|
|
38
38
|
self.namespaces = OrderedDict() # type: NamespaceDict
|
|
39
39
|
self.route_schema = None # type: typing.Optional[Struct]
|
|
40
40
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stone
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.7
|
|
4
4
|
Summary: Stone is an interface description language (IDL) for APIs.
|
|
5
5
|
Home-page: https://github.com/dropbox/stone
|
|
6
6
|
Author: Ken Elkabany
|
|
@@ -21,6 +21,7 @@ Description-Content-Type: text/x-rst
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: ply>=3.4
|
|
23
23
|
Requires-Dist: six>=1.12.0
|
|
24
|
+
Requires-Dist: packaging>=21.0
|
|
24
25
|
|
|
25
26
|
.. image:: https://cfl.dropboxstatic.com/static/images/sdk/stone_banner.png
|
|
26
27
|
:target: https://github.com/dropbox/stone
|
|
@@ -282,7 +282,7 @@ int sq(int x) <
|
|
|
282
282
|
self.assertIsInstance(string_type, String)
|
|
283
283
|
|
|
284
284
|
def test_preserve_aliases_from_api(self):
|
|
285
|
-
api = Api(version=
|
|
285
|
+
api = Api(version="0.1b1")
|
|
286
286
|
# Ensure imports come after 'preserve_alias' lexiographicaly
|
|
287
287
|
# to catch namespace ordering bugs
|
|
288
288
|
api.ensure_namespace('preserve_alias')
|
|
@@ -390,7 +390,7 @@ int sq(int x) <
|
|
|
390
390
|
self.assertIsInstance(field.data_type, Alias)
|
|
391
391
|
|
|
392
392
|
def test_no_preserve_aliases_from_api(self):
|
|
393
|
-
api = Api(version=
|
|
393
|
+
api = Api(version="0.1b1")
|
|
394
394
|
# Ensure imports come after 'preserve_alias' lexiographicaly
|
|
395
395
|
# to catch namespace ordering bugs
|
|
396
396
|
api.ensure_namespace('preserve_alias')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|