Skip to content
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
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "rhapsody-py"
version = "0.1.1"
version = "0.1.2"
description = "Runtime system for executing heterogeneous HPC-AI workflows with dynamic task graphs on high-performance computing infrastructures."
license = { text = "MIT" }
authors = [
Expand Down Expand Up @@ -95,9 +95,9 @@ all = [
]

[project.urls]
Homepage = "https://github.com/stride-research/rhapsody"
Repository = "https://github.com/stride-research/rhapsody"
Issues = "https://github.com/stride-research/rhapsody/issues"
Homepage = "https://radical-cybertools.github.io/rhapsody/landing.html"
Repository = "https://github.com/radical-cybertools/rhapsody"
Issues = "https://github.com/radical-cybertools/rhapsody/issues"

# Entry points for backend discovery
[project.entry-points."rhapsody.backends"]
Expand Down
2 changes: 1 addition & 1 deletion src/rhapsody/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from .backends import get_backend
from .logger import enable_logging

__version__ = "0.1.1"
__version__ = "0.1.2"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability and avoid potential mismatches, it's recommended to have a single source of truth for your package's version. Since the version is defined in pyproject.toml, you can read it dynamically here instead of hardcoding it. This prevents scenarios where the version might be updated in one file but not the other during a release.

You can achieve this using importlib.metadata (available in Python 3.8+, and your project requires >=3.9):

# Add this import at the top of the file
from importlib import metadata

# ...

# Replace the hardcoded version with this
try:
    __version__ = metadata.version("rhapsody-py")
except metadata.PackageNotFoundError:
    # The package is not installed, which can happen in development.
    __version__ = "0.1.2"  # Fallback version

This change will make your version management more robust.


__all__ = [
"__version__",
Expand Down