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
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "stride-load-forecast"
version = "2.0.0"
dynamic = ["version"]
description = "Python tool for assembling annual hourly electricity demand projections suitable for grid planning at the country-level."
readme = "README.md"
requires-python = ">=3.11, <3.14"
Expand Down Expand Up @@ -67,6 +67,9 @@ Source = "https://github.com/dsgrid/stride"
[project.scripts]
stride = "stride.cli.stride:cli"

[tool.hatch.version]
path = "src/stride/__init__.py"

Comment on lines +70 to +72
[tool.hatch.build.targets.wheel]
packages = ["src/stride"]

Expand Down
3 changes: 3 additions & 0 deletions src/stride/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
__version__ = "2.0.0"

from stride.project import Project
from stride.models import (
Comment on lines +1 to 4
ProjectConfig,
Expand All @@ -9,4 +11,5 @@
"Project",
"ProjectConfig",
"Scenario",
"__version__",
)
3 changes: 2 additions & 1 deletion src/stride/cli/stride.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from dsgrid.exceptions import DSGBaseException
from loguru import logger

from stride import Project
from stride import Project, __version__
from stride.config import CACHED_PROJECTS_UPPER_BOUND
from stride.models import CalculatedTableOverride
from stride.project import list_valid_countries, list_valid_model_years, list_valid_weather_years
Expand All @@ -28,6 +28,7 @@


@click.group("stride")
@click.version_option(__version__, "-V", "--version", prog_name="stride")
@click.option(
Comment on lines 30 to 32
"-c",
"--console-level",
Expand Down
Loading