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
16 changes: 16 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[bumpversion]
current_version = 0.2.2
commit = True
tag = True

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:pureshell/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

[bumpversion:file:docs/conf.py]
search = release = "{current_version}"
replace = release = "{new_version}"
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
project = "pureshell"
copyright = "2025, Dane Jones"
author = "Dane Jones"
release = "0.1.0"
release = "0.2.2" # Synced for bump2version

extensions = [
"sphinx.ext.autodoc",
Expand Down
6 changes: 3 additions & 3 deletions pureshell/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

# __init__.py
# pylint: disable=line-too-long,protected-access

__version__ = "0.2.2" # Synced for bump2version

from typing import Any, Callable, Generic, TypeVar, Union, cast, overload

# ==============================================================================
Expand Down Expand Up @@ -251,6 +254,3 @@ def __init_subclass__(cls, **kwargs: Any) -> None: # Added type hints
f"Methods in StatefulEntity subclasses must be decorated with "
f"@shell_method or @side_effect_method, or be properties."
)


__version__ = "0.2.0"
2 changes: 1 addition & 1 deletion 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 = "pureshell"
version = "0.2.0"
version = "0.2.2"
description = "PureShell is a Python library for the \"Functional Core, Stateful Shell\" architectural pattern. It helps you write business logic as pure functions in Ruleset classes and manage state with StatefulEntity objects. This makes code more testable, maintainable, and understandable. Features include @shell_method for linking logic, @ruleset_provider for default behavior, and dynamic Ruleset injection for runtime flexibility (e.g., strategy pattern, mock testing)."
authors = [
{ name="Dane Jones", email="danerjones@gmail.com" }
Expand Down
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ markdown-it-py # Used to parse the readme to test the code examples

# Required for the game_example
pygame

# Version management
bump2version