superset-showtime 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of superset-showtime might be problematic. Click here for more details.
- showtime/__init__.py +21 -0
- showtime/__main__.py +8 -0
- showtime/cli.py +1361 -0
- showtime/commands/__init__.py +1 -0
- showtime/commands/start.py +40 -0
- showtime/core/__init__.py +1 -0
- showtime/core/aws.py +758 -0
- showtime/core/circus.py +285 -0
- showtime/core/config.py +152 -0
- showtime/core/emojis.py +86 -0
- showtime/core/github.py +214 -0
- showtime/data/ecs-task-definition.json +59 -0
- superset_showtime-0.1.0.dist-info/METADATA +391 -0
- superset_showtime-0.1.0.dist-info/RECORD +16 -0
- superset_showtime-0.1.0.dist-info/WHEEL +4 -0
- superset_showtime-0.1.0.dist-info/entry_points.txt +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Showtime CLI commands"""
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""
|
|
2
|
+
🎪 Start show command - Create ephemeral environments
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
from typing import Optional
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@dataclass
|
|
10
|
+
class StartResult:
|
|
11
|
+
"""Result of starting a show"""
|
|
12
|
+
|
|
13
|
+
success: bool
|
|
14
|
+
url: Optional[str] = None
|
|
15
|
+
error: Optional[str] = None
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def start_show(
|
|
19
|
+
pr_number: int, sha: Optional[str] = None, ttl: str = "24h", size: str = "standard"
|
|
20
|
+
) -> StartResult:
|
|
21
|
+
"""
|
|
22
|
+
Start the show! Create ephemeral environment for PR
|
|
23
|
+
|
|
24
|
+
Args:
|
|
25
|
+
pr_number: PR number to create environment for
|
|
26
|
+
sha: Specific commit SHA (default: latest)
|
|
27
|
+
ttl: Time to live (24h, 48h, 1w, close)
|
|
28
|
+
size: Environment size (standard, large)
|
|
29
|
+
|
|
30
|
+
Returns:
|
|
31
|
+
StartResult with success status and details
|
|
32
|
+
"""
|
|
33
|
+
# TODO: Implement environment creation
|
|
34
|
+
# 1. Get latest SHA if not provided
|
|
35
|
+
# 2. Create circus labels
|
|
36
|
+
# 3. Build Docker image
|
|
37
|
+
# 4. Deploy to ECS
|
|
38
|
+
# 5. Update labels with running state
|
|
39
|
+
|
|
40
|
+
return StartResult(success=False, error="Not yet implemented")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Core Showtime functionality"""
|