Skip to content
Closed
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ dependencies = [
"click>=8.1",
"rich>=13.0",
"pyyaml>=6.0",
"revenueholdings-license>=0.1.0",
]

[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
]
license = ["revenueholdings-license>=0.1.0"]

[project.scripts]
deploydiff = "deploydiff.cli:main"
Expand Down
8 changes: 6 additions & 2 deletions src/deploydiff/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
@click.version_option(package_name="deploydiff")
def main():
"""DeployDiff - Preview infrastructure changes with cost impact and rollback."""
from revenueholdings_license import require_license
require_license("deploydiff")
try:
from revenueholdings_license import require_license
require_license("deploydiff")
except ImportError:
import warnings
warnings.warn("revenueholdings-license not installed; license checks skipped", stacklevel=2)
pass


Expand Down
Loading