Skip to content

Commit

Permalink
Specify griptape >= 0.21.1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgiordano committed Dec 11, 2023
1 parent 5c7ca94 commit d76f051
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions griptape/cli/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from attr import define, field
from cookiecutter.main import cookiecutter

from griptape.cli.core.utils.constants import GRIPTAPE_VERSION


@define
class App:
Expand All @@ -25,13 +27,14 @@ def generate(self, directory: str = ".") -> None:

if not self.griptape_version:
if self.package_manager == "pip":
self.griptape_version = ""
self.griptape_version = f">={GRIPTAPE_VERSION}"
else:
self.griptape_version = '"*"'
self.griptape_version = f'"^{GRIPTAPE_VERSION}"'
else:
self.griptape_version = f"{self.griptape_version}"
if self.package_manager == "pip":
self.griptape_version = f"=={self.griptape_version}"
else:
self.griptape_version = f'"{self.griptape_version}"'

cookiecutter(
template,
Expand Down
2 changes: 2 additions & 0 deletions griptape/cli/core/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
DEFAULT_ENDPOINT_URL = os.environ.get(
"GRIPTAPE_CLOUD_ENDPOINT_URL", "https://api.cloud.griptape.ai"
)

GRIPTAPE_VERSION = "0.21.1"

0 comments on commit d76f051

Please sign in to comment.