Bump version to 1.1.0
This commit is contained in:
4
Makefile
4
Makefile
@@ -25,7 +25,7 @@ clean:
|
|||||||
# Build the wheel package
|
# Build the wheel package
|
||||||
build: clean
|
build: clean
|
||||||
@echo "Building wheel package..."
|
@echo "Building wheel package..."
|
||||||
python -m build
|
python3 -m build
|
||||||
@echo "Build complete. Artifacts in dist/"
|
@echo "Build complete. Artifacts in dist/"
|
||||||
|
|
||||||
# Install package in development mode
|
# Install package in development mode
|
||||||
@@ -43,4 +43,4 @@ dev: clean build
|
|||||||
@echo "Installing newly built package..."
|
@echo "Installing newly built package..."
|
||||||
pip uninstall kumacli -y 2>/dev/null || true
|
pip uninstall kumacli -y 2>/dev/null || true
|
||||||
pip install dist/kumacli-*.whl
|
pip install dist/kumacli-*.whl
|
||||||
@echo "Development installation complete."
|
@echo "Development installation complete."
|
||||||
|
6
setup.py
6
setup.py
@@ -7,7 +7,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="kumacli",
|
name="kumacli",
|
||||||
version="1.0.0",
|
version="1.1.0",
|
||||||
author="Uptime Kuma CLI",
|
author="Uptime Kuma CLI",
|
||||||
description="A command-line interface for Uptime Kuma",
|
description="A command-line interface for Uptime Kuma",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
@@ -36,7 +36,7 @@ setup(
|
|||||||
],
|
],
|
||||||
entry_points={
|
entry_points={
|
||||||
"console_scripts": [
|
"console_scripts": [
|
||||||
"kumacli=kumacli.__main__:main",
|
"kumacli=kumacli.kumacli:main",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
keywords="uptime kuma monitoring cli",
|
keywords="uptime kuma monitoring cli",
|
||||||
@@ -44,4 +44,4 @@ setup(
|
|||||||
"Bug Reports": "https://github.com/yourusername/kumacli/issues",
|
"Bug Reports": "https://github.com/yourusername/kumacli/issues",
|
||||||
"Source": "https://github.com/yourusername/kumacli",
|
"Source": "https://github.com/yourusername/kumacli",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@@ -6,6 +6,6 @@ __version__ = "1.0.0"
|
|||||||
__author__ = "KumaCLI Team"
|
__author__ = "KumaCLI Team"
|
||||||
__email__ = "info@kumacli.com"
|
__email__ = "info@kumacli.com"
|
||||||
|
|
||||||
from kumacli.__main__ import main
|
from kumacli.kumacli import main
|
||||||
|
|
||||||
__all__ = ["main"]
|
__all__ = ["main"]
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from kumacli.client import KumaClient
|
from ..client import KumaClient
|
||||||
|
|
||||||
|
|
||||||
class MaintenanceCommands:
|
class MaintenanceCommands:
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from kumacli.client import KumaClient
|
from ..client import KumaClient
|
||||||
|
|
||||||
|
|
||||||
class MonitorCommands:
|
class MonitorCommands:
|
||||||
|
@@ -5,9 +5,20 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from kumacli.client import KumaClient
|
# Handle both direct execution and package import
|
||||||
from kumacli.cmd.monitor import setup_monitor_parser, handle_monitor_command
|
try:
|
||||||
from kumacli.cmd.maintenance import setup_maintenance_parser, handle_maintenance_command
|
from .client import KumaClient
|
||||||
|
from .cmd.monitor import setup_monitor_parser, handle_monitor_command
|
||||||
|
from .cmd.maintenance import setup_maintenance_parser, handle_maintenance_command
|
||||||
|
except ImportError:
|
||||||
|
# Running directly, add parent directory to path
|
||||||
|
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
from kumacli.client import KumaClient
|
||||||
|
from kumacli.cmd.monitor import setup_monitor_parser, handle_monitor_command
|
||||||
|
from kumacli.cmd.maintenance import (
|
||||||
|
setup_maintenance_parser,
|
||||||
|
handle_maintenance_command,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
Reference in New Issue
Block a user