Skip to content

Commit cafd7f2

Browse files
authored
Rename version.py files to version/__init__.py (open-telemetry#4099)
* Rename version.py files to version/__init__.py Fixes open-telemetry#4097 * Use a better variable name
1 parent f15821f commit cafd7f2

File tree

34 files changed

+44
-24
lines changed

34 files changed

+44
-24
lines changed

.github/workflows/prepare-release-branch.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343

44+
- name: Install toml
45+
run: pip install toml
46+
4447
- name: Create release branch
4548
env:
4649
PRERELEASE_VERSION: ${{ github.event.inputs.prerelease_version }}
@@ -105,6 +108,9 @@ jobs:
105108
steps:
106109
- uses: actions/checkout@v4
107110

111+
- name: Install toml
112+
run: pip install toml
113+
108114
- name: Set environment variables
109115
env:
110116
PRERELEASE_VERSION: ${{ github.event.inputs.prerelease_version }}

docs/examples/error_handler/error_handler_0/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies = [
3232
error_handler_0 = "error_handler_0:ErrorHandler0"
3333

3434
[tool.hatch.version]
35-
path = "src/error_handler_0/version.py"
35+
path = "src/error_handler_0/version/__init__.py"
3636

3737
[tool.hatch.build.targets.sdist]
3838
include = [

docs/examples/error_handler/error_handler_1/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dependencies = [
3232
error_handler_1 = "error_handler_1:ErrorHandler1"
3333

3434
[tool.hatch.version]
35-
path = "src/error_handler_1/version.py"
35+
path = "src/error_handler_1/version/__init__.py"
3636

3737
[tool.hatch.build.targets.sdist]
3838
include = [

exporter/opentelemetry-exporter-opencensus/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ opencensus = "opentelemetry.exporter.opencensus.trace_exporter:OpenCensusSpanExp
4343
Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-opencensus"
4444

4545
[tool.hatch.version]
46-
path = "src/opentelemetry/exporter/opencensus/version.py"
46+
path = "src/opentelemetry/exporter/opencensus/version/__init__.py"
4747

4848
[tool.hatch.build.targets.sdist]
4949
include = [

exporter/opentelemetry-exporter-otlp-proto-common/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies = [
3434
Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp-proto-common"
3535

3636
[tool.hatch.version]
37-
path = "src/opentelemetry/exporter/otlp/proto/common/version.py"
37+
path = "src/opentelemetry/exporter/otlp/proto/common/version/__init__.py"
3838

3939
[tool.hatch.build.targets.sdist]
4040
include = [

exporter/opentelemetry-exporter-otlp-proto-grpc/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ otlp_proto_grpc = "opentelemetry.exporter.otlp.proto.grpc.trace_exporter:OTLPSpa
4949
Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp-proto-grpc"
5050

5151
[tool.hatch.version]
52-
path = "src/opentelemetry/exporter/otlp/proto/grpc/version.py"
52+
path = "src/opentelemetry/exporter/otlp/proto/grpc/version/__init__.py"
5353

5454
[tool.hatch.build.targets.sdist]
5555
include = [

0 commit comments

Comments
 (0)