Skip to content

Commit 48cdf1f

Browse files
authored
Use dynamic versioning and bump version (#320)
⚠️ Must be merged after #319 and other related PRs. *Issue #, if available:* *Description of changes:* Exports `chronos.__version__` and uses it dynamically in `pyproject.toml`. Bumps version to 2.0.0. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 3d08338 commit 48cdf1f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "chronos-forecasting"
3-
version = "1.5.3"
3+
dynamic = ["version"]
44
authors = [
55
{ name = "Abdul Fatir Ansari", email = "ansarnd@amazon.com" },
66
{ name = "Lorenzo Stella", email = "stellalo@amazon.com" },
@@ -36,6 +36,9 @@ build-backend = "hatchling.build"
3636
[tool.hatch.build.targets.wheel]
3737
packages = ["src/chronos"]
3838

39+
[tool.hatch.version]
40+
path = "src/chronos/__about__.py"
41+
3942
[project.optional-dependencies]
4043
test = ["pytest~=8.0", "numpy>=1.21,<3", "fev>=0.6.1", "pandas>=2.0,<2.4"]
4144
typecheck = ["mypy~=1.9"]

src/chronos/__about__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "2.0.0rc1"

src/chronos/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
from .__about__ import __version__
45
from .base import BaseChronosPipeline, ForecastType
56
from .chronos import (
67
ChronosConfig,
@@ -13,6 +14,7 @@
1314
from .chronos_bolt import ChronosBoltConfig, ChronosBoltPipeline
1415

1516
__all__ = [
17+
"__version__",
1618
"BaseChronosPipeline",
1719
"ForecastType",
1820
"ChronosConfig",

0 commit comments

Comments
 (0)