krista-common-proto-schema 1.0.2__tar.gz → 1.0.4__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.
Potentially problematic release.
This version of krista-common-proto-schema might be problematic. Click here for more details.
- {krista_common_proto_schema-1.0.2 → krista_common_proto_schema-1.0.4}/PKG-INFO +1 -1
- {krista_common_proto_schema-1.0.2 → krista_common_proto_schema-1.0.4}/krista_common_proto_schema.egg-info/PKG-INFO +1 -1
- {krista_common_proto_schema-1.0.2 → krista_common_proto_schema-1.0.4}/krista_common_proto_schema.egg-info/SOURCES.txt +0 -1
- krista_common_proto_schema-1.0.4/krista_common_proto_schema.egg-info/top_level.txt +1 -0
- {krista_common_proto_schema-1.0.2 → krista_common_proto_schema-1.0.4}/setup.py +15 -5
- krista_common_proto_schema-1.0.2/krista_common_proto_schema/__init__.py +0 -20
- krista_common_proto_schema-1.0.2/krista_common_proto_schema.egg-info/top_level.txt +0 -1
- {krista_common_proto_schema-1.0.2 → krista_common_proto_schema-1.0.4}/krista_common_proto_schema.egg-info/dependency_links.txt +0 -0
- {krista_common_proto_schema-1.0.2 → krista_common_proto_schema-1.0.4}/krista_common_proto_schema.egg-info/requires.txt +0 -0
- {krista_common_proto_schema-1.0.2 → krista_common_proto_schema-1.0.4}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -121,10 +121,19 @@ __all__ = ["user_pb2", "message_pb2"]
|
|
|
121
121
|
print(f" ❌ Error: {e.stderr}")
|
|
122
122
|
raise
|
|
123
123
|
|
|
124
|
+
# Create __init__.py files in all subdirectories to make them packages
|
|
125
|
+
print("\n📦 Creating __init__.py files in subdirectories...")
|
|
126
|
+
for subdir in output_dir.rglob("*"):
|
|
127
|
+
if subdir.is_dir() and subdir != output_dir:
|
|
128
|
+
init_file = subdir / "__init__.py"
|
|
129
|
+
if not init_file.exists():
|
|
130
|
+
init_file.write_text('"""Auto-generated package file."""\n')
|
|
131
|
+
print(f" ✅ Created {init_file.relative_to(output_dir.parent)}")
|
|
132
|
+
|
|
124
133
|
print("\n" + "=" * 60)
|
|
125
134
|
print("✅ All proto files compiled successfully!")
|
|
126
135
|
print("=" * 60)
|
|
127
|
-
|
|
136
|
+
|
|
128
137
|
# Continue with normal build
|
|
129
138
|
super().run()
|
|
130
139
|
|
|
@@ -143,13 +152,14 @@ setup(
|
|
|
143
152
|
long_description_content_type="text/markdown",
|
|
144
153
|
url="https://github.com/your-org/krista-common-proto-schema",
|
|
145
154
|
|
|
146
|
-
# Package configuration
|
|
147
|
-
packages=
|
|
148
|
-
package_dir={"
|
|
155
|
+
# Package configuration - include all subpackages
|
|
156
|
+
packages=find_packages(where="."),
|
|
157
|
+
package_dir={"": "."},
|
|
149
158
|
|
|
150
|
-
# Include proto files in the package
|
|
159
|
+
# Include proto files and compiled Python files in the package
|
|
151
160
|
package_data={
|
|
152
161
|
"krista_common_proto_schema": ["*.proto"],
|
|
162
|
+
"krista_common_proto_schema.common": ["*.proto"],
|
|
153
163
|
},
|
|
154
164
|
|
|
155
165
|
# Dependencies
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Krista Common Proto Schema Package
|
|
3
|
-
|
|
4
|
-
This package contains compiled Protocol Buffer definitions
|
|
5
|
-
that can be imported directly in Python projects.
|
|
6
|
-
|
|
7
|
-
Usage:
|
|
8
|
-
from krista_common_proto_schema import user_pb2, message_pb2
|
|
9
|
-
|
|
10
|
-
user = user_pb2.User(id=1, name="John")
|
|
11
|
-
message = message_pb2.Message(id=1, sender=user, content="Hello")
|
|
12
|
-
"""
|
|
13
|
-
|
|
14
|
-
__version__ = "1.0.2"
|
|
15
|
-
|
|
16
|
-
# Import compiled proto modules for easy access
|
|
17
|
-
from . import user_pb2
|
|
18
|
-
from . import message_pb2
|
|
19
|
-
|
|
20
|
-
__all__ = ["user_pb2", "message_pb2"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
krista_common_proto_schema
|
|
File without changes
|
|
File without changes
|
|
File without changes
|