Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codegen/opentelemetry-codegen-json/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "opentelemetry-codegen-json"
dynamic = ["version"]
version = "0.0.0" # Not published to PyPI
description = "Protobuf plugin to generate JSON serializers and deserializers for OpenTelemetry protobuf messages"
readme = "README.rst"
license = "Apache-2.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
is_int64_type,
to_json_field_name,
)
from opentelemetry.codegen.json.version import __version__ as GENERATOR_VERSION
from opentelemetry.codegen.json.writer import CodeWriter

_logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -1057,9 +1056,7 @@ def generate_code(
Returns:
Dictionary mapping output file paths to generated code
"""
generator = OtlpJsonGenerator(
request, package_transform, version=GENERATOR_VERSION
)
generator = OtlpJsonGenerator(request, package_transform, version="0.0.0")
return generator.generate_all()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from google.protobuf.compiler import plugin_pb2 as plugin

from opentelemetry.codegen.json.generator import generate_plugin_response
from opentelemetry.codegen.json.version import __version__

_logger = logging.getLogger(__name__)

Expand All @@ -35,7 +34,7 @@ def code_generation() -> Iterator[
Context manager for handling the code generation process.
"""
if len(sys.argv) > 1 and sys.argv[1] in ("-V", "--version"):
print("opentelemetry-codegen-json " + __version__)
print("opentelemetry-codegen-json 0.0.0")
sys.exit(0)

data = sys.stdin.buffer.read()
Expand Down

This file was deleted.

Loading
Loading