sum-cli 3.0.0__py3-none-any.whl → 3.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.
@@ -1,127 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: sum-cli
3
- Version: 3.0.0
4
- Summary: SUM Platform CLI: single control plane for site lifecycle management
5
- Author: Mark Ashton
6
- License-Expression: BSD-3-Clause
7
- Project-URL: Homepage, https://github.com/markashton480/sum-platform
8
- Project-URL: Repository, https://github.com/markashton480/sum-platform
9
- Project-URL: Issues, https://github.com/markashton480/sum-platform/issues
10
- Project-URL: Documentation, https://github.com/markashton480/sum-platform/tree/main/docs/dev/cli.md
11
- Keywords: sum,cli,django,wagtail
12
- Classifier: Development Status :: 4 - Beta
13
- Classifier: Environment :: Console
14
- Classifier: Intended Audience :: Developers
15
- Classifier: Programming Language :: Python :: 3
16
- Classifier: Programming Language :: Python :: 3 :: Only
17
- Classifier: Programming Language :: Python :: 3.12
18
- Classifier: Topic :: Software Development :: Build Tools
19
- Classifier: Topic :: Software Development :: Code Generators
20
- Requires-Python: >=3.12
21
- Description-Content-Type: text/markdown
22
- License-File: LICENSE
23
- Requires-Dist: click>=8.1.7
24
- Requires-Dist: pyyaml>=6.0
25
- Provides-Extra: gitea
26
- Requires-Dist: httpx>=0.27.0; extra == "gitea"
27
- Dynamic: license-file
28
-
29
- # SUM CLI (v3)
30
-
31
- [![PyPI](https://img.shields.io/pypi/v/sum-cli.svg)](https://pypi.org/project/sum-cli/)
32
-
33
- The SUM CLI is the single control plane for deploying and managing SUM Platform client sites.
34
-
35
- ## Install
36
-
37
- ```bash
38
- pip install sum-cli
39
- sum-platform --version
40
- ```
41
-
42
- ### With Gitea Support
43
-
44
- If using Gitea instead of GitHub for repository hosting:
45
-
46
- ```bash
47
- pip install sum-cli[gitea]
48
- ```
49
-
50
- ## Quick Usage
51
-
52
- ```bash
53
- # Create a new production site (requires sudo)
54
- sudo sum-platform init acme --theme theme_a
55
-
56
- # Create site with custom content profile
57
- sudo sum-platform init acme --content-path /path/to/profiles/acme
58
-
59
- # Update a deployed site
60
- sum-platform update acme
61
-
62
- # Backup a site
63
- sum-platform backup acme --include-media
64
-
65
- # Promote staging to production
66
- sum-platform promote acme --domain acme.example.com
67
-
68
- # List available themes
69
- sum-platform themes
70
-
71
- # Validate a project setup
72
- sum-platform check acme
73
- ```
74
-
75
- ## Commands
76
-
77
- | Command | Description | Requires Sudo |
78
- |---------|-------------|---------------|
79
- | `init` | Create new site at `/srv/sum/<name>/` | Yes |
80
- | `update` | Pull updates, migrate, restart | No (staging) |
81
- | `backup` | Database and media backup | No |
82
- | `promote` | Deploy staging site to production | No |
83
- | `check` | Validate project setup | No |
84
- | `themes` | List available themes | No |
85
- | `run` | Start development server | No |
86
-
87
- ## Git Provider Support
88
-
89
- The CLI supports both GitHub and Gitea for repository hosting. Configure your provider in `/etc/sum/config.yml`:
90
-
91
- **GitHub (default):**
92
- ```yaml
93
- agency:
94
- name: "Your Agency"
95
- git_provider: "github"
96
- github_org: "your-org"
97
- ```
98
-
99
- **Gitea:**
100
- ```yaml
101
- agency:
102
- name: "Your Agency"
103
- git_provider: "gitea"
104
- gitea_url: "https://gitea.example.com"
105
- gitea_org: "your-org"
106
- gitea_token_env: "GITEA_TOKEN"
107
- ```
108
-
109
- For Gitea, set the `GITEA_TOKEN` environment variable with your API token.
110
-
111
- ## Development Install (monorepo)
112
-
113
- ```bash
114
- pip install -e ./cli
115
- ```
116
-
117
- ## Configuration
118
-
119
- System-wide configuration is read from `/etc/sum/config.yml`. See `config.yml.example` for the full schema.
120
-
121
- ## Documentation
122
-
123
- The full User Guide is bundled with the package at `sum/docs/USER_GUIDE.md`.
124
-
125
- For monorepo development:
126
- - [User Guide](../docs/dev/cli/USER_GUIDE.md) - Full command reference
127
- - [Developer Guide](../docs/dev/cli/DEVELOPER_GUIDE.md) - CLI architecture and contribution guide