Skip to content

Move version.py to _src #1193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 19, 2025
Merged
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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies = [
dynamic = ["version"]

[tool.setuptools.dynamic]
version = {attr = "torax.version.TORAX_VERSION"}
version = {attr = "torax._src.version.TORAX_VERSION"}

[project.scripts]
run_torax = "torax.run_simulation_main:run"
Expand Down
2 changes: 1 addition & 1 deletion torax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# pylint: disable=g-importing-member

from torax import version
from torax._src import version
from torax._src.config.config_loader import build_torax_config_from_file
from torax._src.config.config_loader import import_module
from torax._src.interpolated_param import InterpolatedVarSingleAxis
Expand Down
2 changes: 1 addition & 1 deletion torax/_src/torax_pydantic/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import logging
from typing import Any, Mapping
import pydantic
from torax import version
from torax._src import version
from torax._src.config import numerics as numerics_lib
from torax._src.config import plasma_composition as plasma_composition_lib
from torax._src.config import profile_conditions as profile_conditions_lib
Expand Down
2 changes: 1 addition & 1 deletion torax/_src/torax_pydantic/tests/model_config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from absl.testing import absltest
from absl.testing import parameterized
import chex
from torax import version
from torax._src import version
from torax._src.config import config_loader
from torax._src.torax_pydantic import model_config
from torax._src.torax_pydantic import torax_pydantic
Expand Down
File renamed without changes.