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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: krista_common_proto_schema
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: Shared Protocol Buffer definitions.
5
5
  Home-page: https://github.com/your-org/krista-common-proto-schema
6
6
  Author: Krista
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: krista-common-proto-schema
3
- Version: 1.0.2
3
+ Version: 1.0.4
4
4
  Summary: Shared Protocol Buffer definitions.
5
5
  Home-page: https://github.com/your-org/krista-common-proto-schema
6
6
  Author: Krista
@@ -1,5 +1,4 @@
1
1
  setup.py
2
- krista_common_proto_schema/__init__.py
3
2
  krista_common_proto_schema.egg-info/PKG-INFO
4
3
  krista_common_proto_schema.egg-info/SOURCES.txt
5
4
  krista_common_proto_schema.egg-info/dependency_links.txt
@@ -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=["krista_common_proto_schema"],
148
- package_dir={"krista_common_proto_schema": "krista_common_proto_schema"},
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