dsh-cloud 0.2.0__tar.gz

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.
@@ -0,0 +1,264 @@
1
+ DSH Cloud Community License
2
+ Version 1.0, 21 August 2026
3
+
4
+ Copyright 2026 AgentsDance AI (Beijing AgentsDance AI Technology Co., Ltd.)
5
+
6
+ 1. Definitions
7
+
8
+ "Licensor" means AgentsDance AI (Beijing AgentsDance AI Technology Co., Ltd.).
9
+
10
+ "Work" has the meaning assigned by the Apache License 2.0 terms incorporated
11
+ below.
12
+
13
+ "Tenant" means an independent third-party customer or legal organization whose
14
+ accounts, workspaces, data, or configuration are logically separated from
15
+ another such customer. Employees, departments, and controlled affiliates of one
16
+ legal organization are one Tenant.
17
+
18
+ "Managed Multi-Tenant Service" means operating the Work or a Derivative Work so
19
+ that two or more Tenants receive the functionality as a hosted or managed
20
+ service.
21
+
22
+ "Official Frontend" means the web, desktop, mobile, and mini-program user
23
+ interfaces distributed in this repository, but excludes API-only integrations
24
+ that do not use them.
25
+
26
+ 2. General Grant
27
+
28
+ Except for Sections 3 and 4 below, the permissions, conditions, patent grant,
29
+ attribution requirements, disclaimers, and limitations in Apache License 2.0
30
+ apply.
31
+
32
+ 3. Managed Multi-Tenant Service Restriction
33
+
34
+ You may not operate a Managed Multi-Tenant Service without a separate written
35
+ commercial license from the Licensor. A dedicated deployment operated for one
36
+ customer and an application that merely calls a separately operated server are
37
+ not a Managed Multi-Tenant Service.
38
+
39
+ 4. Official Frontend Brand Preservation
40
+
41
+ When distributing or operating an Official Frontend, You may not remove or
42
+ alter the DSH Cloud name, logo, copyright notice, or license link without a
43
+ separate written commercial license from the Licensor.
44
+
45
+ 5. Commercial Licenses
46
+
47
+ The Licensor may grant written terms that waive or replace Sections 3 or 4 for
48
+ the licensee. Commercial licensing inquiries may be sent to
49
+ support@agentsdance.ai.
50
+
51
+ 6. Contributions
52
+
53
+ Unless explicitly stated otherwise, intentionally submitted Contributions are
54
+ provided under this License. DCO sign-off is not a copyright assignment or an
55
+ implied grant to relicense a Contribution under different terms.
56
+
57
+ 7. Relationship to Apache License 2.0
58
+
59
+ This is a custom source-available license. It is not the Apache License and is
60
+ not represented as OSI-approved. If a conflict exists, Sections 1 through 7 of
61
+ this License control.
62
+
63
+ Appendix A — Apache License 2.0 Terms
64
+
65
+ Apache License
66
+ Version 2.0, January 2004
67
+ http://www.apache.org/licenses/
68
+
69
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
70
+
71
+ 1. Definitions.
72
+
73
+ "License" shall mean the terms and conditions for use, reproduction,
74
+ and distribution as defined by Sections 1 through 9 of this document.
75
+
76
+ "Licensor" shall mean the copyright owner or entity authorized by
77
+ the copyright owner that is granting the License.
78
+
79
+ "Legal Entity" shall mean the union of the acting entity and all
80
+ other entities that control, are controlled by, or are under common
81
+ control with that entity. For the purposes of this definition,
82
+ "control" means (i) the power, direct or indirect, to cause the
83
+ direction or management of such entity, whether by contract or
84
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
85
+ outstanding shares, or (iii) beneficial ownership of such entity.
86
+
87
+ "You" (or "Your") shall mean an individual or Legal Entity
88
+ exercising permissions granted by this License.
89
+
90
+ "Source" form shall mean the preferred form for making modifications,
91
+ including but not limited to software source code, documentation
92
+ source, and configuration files.
93
+
94
+ "Object" form shall mean any form resulting from mechanical
95
+ transformation or translation of a Source form, including but
96
+ not limited to compiled object code, generated documentation,
97
+ and conversions to other media types.
98
+
99
+ "Work" shall mean the work of authorship, whether in Source or
100
+ Object form, made available under the License, as indicated by a
101
+ copyright notice that is included in or attached to the work
102
+ (an example is provided in the Appendix below).
103
+
104
+ "Derivative Works" shall mean any work, whether in Source or Object
105
+ form, that is based on (or derived from) the Work and for which the
106
+ editorial revisions, annotations, elaborations, or other modifications
107
+ represent, as a whole, an original work of authorship. For the purposes
108
+ of this License, Derivative Works shall not include works that remain
109
+ separable from, or merely link (or bind by name) to the interfaces of,
110
+ the Work and Derivative Works thereof.
111
+
112
+ "Contribution" shall mean any work of authorship, including
113
+ the original version of the Work and any modifications or additions
114
+ to that Work or Derivative Works thereof, that is intentionally
115
+ submitted to Licensor for inclusion in the Work by the copyright owner
116
+ or by an individual or Legal Entity authorized to submit on behalf of
117
+ the copyright owner. For the purposes of this definition, "submitted"
118
+ means any form of electronic, verbal, or written communication sent
119
+ to the Licensor or its representatives, including but not limited to
120
+ communication on electronic mailing lists, source code control systems,
121
+ and issue tracking systems that are managed by, or on behalf of, the
122
+ Licensor for the purpose of discussing and improving the Work, but
123
+ excluding communication that is conspicuously marked or otherwise
124
+ designated in writing by the copyright owner as "Not a Contribution."
125
+
126
+ "Contributor" shall mean Licensor and any individual or Legal Entity
127
+ on behalf of whom a Contribution has been received by Licensor and
128
+ subsequently incorporated within the Work.
129
+
130
+ 2. Grant of Copyright License. Subject to the terms and conditions of
131
+ this License, each Contributor hereby grants to You a perpetual,
132
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
133
+ copyright license to reproduce, prepare Derivative Works of,
134
+ publicly display, publicly perform, sublicense, and distribute the
135
+ Work and such Derivative Works in Source or Object form.
136
+
137
+ 3. Grant of Patent License. Subject to the terms and conditions of
138
+ this License, each Contributor hereby grants to You a perpetual,
139
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
140
+ (except as stated in this section) patent license to make, have made,
141
+ use, offer to sell, sell, import, and otherwise transfer the Work,
142
+ where such license applies only to those patent claims licensable
143
+ by such Contributor that are necessarily infringed by their
144
+ Contribution(s) alone or by combination of their Contribution(s)
145
+ with the Work to which such Contribution(s) was submitted. If You
146
+ institute patent litigation against any entity (including a
147
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
148
+ or a Contribution incorporated within the Work constitutes direct
149
+ or contributory patent infringement, then any patent licenses
150
+ granted to You under this License for that Work shall terminate
151
+ as of the date such litigation is filed.
152
+
153
+ 4. Redistribution. You may reproduce and distribute copies of the
154
+ Work or Derivative Works thereof in any medium, with or without
155
+ modifications, and in Source or Object form, provided that You
156
+ meet the following conditions:
157
+
158
+ (a) You must give any other recipients of the Work or
159
+ Derivative Works a copy of this License; and
160
+
161
+ (b) You must cause any modified files to carry prominent notices
162
+ stating that You changed the files; and
163
+
164
+ (c) You must retain, in the Source form of any Derivative Works
165
+ that You distribute, all copyright, patent, trademark, and
166
+ attribution notices from the Source form of the Work,
167
+ excluding those notices that do not pertain to any part of
168
+ the Derivative Works; and
169
+
170
+ (d) If the Work includes a "NOTICE" text file as part of its
171
+ distribution, then any Derivative Works that You distribute must
172
+ include a readable copy of the attribution notices contained
173
+ within such NOTICE file, excluding those notices that do not
174
+ pertain to any part of the Derivative Works, in at least one
175
+ of the following places: within a NOTICE text file distributed
176
+ as part of the Derivative Works; within the Source form or
177
+ documentation, if provided along with the Derivative Works; or,
178
+ within a display generated by the Derivative Works, if and
179
+ wherever such third-party notices normally appear. The contents
180
+ of the NOTICE file are for informational purposes only and
181
+ do not modify the License. You may add Your own attribution
182
+ notices within Derivative Works that You distribute, alongside
183
+ or as an addendum to the NOTICE text from the Work, provided
184
+ that such additional attribution notices cannot be construed
185
+ as modifying the License.
186
+
187
+ You may add Your own copyright statement to Your modifications and
188
+ may provide additional or different license terms and conditions
189
+ for use, reproduction, or distribution of Your modifications, or
190
+ for any such Derivative Works as a whole, provided Your use,
191
+ reproduction, and distribution of the Work otherwise complies with
192
+ the conditions stated in this License.
193
+
194
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
195
+ any Contribution intentionally submitted for inclusion in the Work
196
+ by You to the Licensor shall be under the terms and conditions of
197
+ this License, without any additional terms or conditions.
198
+ Notwithstanding the above, nothing herein shall supersede or modify
199
+ the terms of any separate license agreement you may have executed
200
+ with Licensor regarding such Contributions.
201
+
202
+ 6. Trademarks. This License does not grant permission to use the trade
203
+ names, trademarks, service marks, or product names of the Licensor,
204
+ except as required for reasonable and customary use in describing the
205
+ origin of the Work and reproducing the content of the NOTICE file.
206
+
207
+ 7. Disclaimer of Warranty. Unless required by applicable law or
208
+ agreed to in writing, Licensor provides the Work (and each
209
+ Contributor provides its Contributions) on an "AS IS" BASIS,
210
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
211
+ implied, including, without limitation, any warranties or conditions
212
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
213
+ PARTICULAR PURPOSE. You are solely responsible for determining the
214
+ appropriateness of using or redistributing the Work and assume any
215
+ risks associated with Your exercise of permissions under this License.
216
+
217
+ 8. Limitation of Liability. In no event and under no legal theory,
218
+ whether in tort (including negligence), contract, or otherwise,
219
+ unless required by applicable law (such as deliberate and grossly
220
+ negligent acts) or agreed to in writing, shall any Contributor be
221
+ liable to You for damages, including any direct, indirect, special,
222
+ incidental, or consequential damages of any character arising as a
223
+ result of this License or out of the use or inability to use the
224
+ Work (including but not limited to damages for loss of goodwill,
225
+ work stoppage, computer failure or malfunction, or any and all
226
+ other commercial damages or losses), even if such Contributor
227
+ has been advised of the possibility of such damages.
228
+
229
+ 9. Accepting Warranty or Additional Liability. While redistributing
230
+ the Work or Derivative Works thereof, You may choose to offer,
231
+ and charge a fee for, acceptance of support, warranty, indemnity,
232
+ or other liability obligations and/or rights consistent with this
233
+ License. However, in accepting such obligations, You may act only
234
+ on Your own behalf and on Your sole responsibility, not on behalf
235
+ of any other Contributor, and only if You agree to indemnify,
236
+ defend, and hold each Contributor harmless for any liability
237
+ incurred by, or claims asserted against, such Contributor by reason
238
+ of your accepting any such warranty or additional liability.
239
+
240
+ END OF TERMS AND CONDITIONS
241
+ APPENDIX: How to apply the Apache License to your work.
242
+
243
+ To apply the Apache License to your work, attach the following
244
+ boilerplate notice, with the fields enclosed by brackets "[]"
245
+ replaced with your own identifying information. (Don't include
246
+ the brackets!) The text should be enclosed in the appropriate
247
+ comment syntax for the file format. We also recommend that a
248
+ file or class name and description of purpose be included on the
249
+ same "printed page" as the copyright notice for easier
250
+ identification within third-party archives.
251
+
252
+ Copyright [yyyy] [name of copyright owner]
253
+
254
+ Licensed under the Apache License, Version 2.0 (the "License");
255
+ you may not use this file except in compliance with the License.
256
+ You may obtain a copy of the License at
257
+
258
+ http://www.apache.org/licenses/LICENSE-2.0
259
+
260
+ Unless required by applicable law or agreed to in writing, software
261
+ distributed under the License is distributed on an "AS IS" BASIS,
262
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
263
+ See the License for the specific language governing permissions and
264
+ limitations under the License.
@@ -0,0 +1,27 @@
1
+ Metadata-Version: 2.4
2
+ Name: dsh-cloud
3
+ Version: 0.2.0
4
+ Summary: Safe self-host installer and lifecycle CLI for DSH Cloud Community Edition
5
+ Requires-Python: >=3.11
6
+ License-Expression: LicenseRef-DSH-Cloud-Community-1.0
7
+ License-File: LICENSE
8
+ Description-Content-Type: text/markdown; charset=UTF-8
9
+ Author: AgentsDance AI
10
+ Project-URL: Documentation, https://github.com/AgentsDanceAI/deepseek-harness-cloud/blob/main/docs/install.md
11
+ Project-URL: Homepage, https://github.com/AgentsDanceAI/deepseek-harness-cloud
12
+ Project-URL: Issues, https://github.com/AgentsDanceAI/deepseek-harness-cloud/issues
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Environment :: Console
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: System :: Installation/Setup
19
+
20
+ # `dsh-cloud`
21
+
22
+ English | [简体中文](README.zh-CN.md)
23
+
24
+ Standard-library-only installer and lifecycle CLI for DSH Cloud Community
25
+ Edition. Run `dsh-cloud --help`; trial deployments bind to `127.0.0.1` by
26
+ default. The release staging script embeds the canonical Compose templates,
27
+ configuration, and release manifest in the wheel and source distribution.
@@ -0,0 +1,8 @@
1
+ # `dsh-cloud`
2
+
3
+ English | [简体中文](README.zh-CN.md)
4
+
5
+ Standard-library-only installer and lifecycle CLI for DSH Cloud Community
6
+ Edition. Run `dsh-cloud --help`; trial deployments bind to `127.0.0.1` by
7
+ default. The release staging script embeds the canonical Compose templates,
8
+ configuration, and release manifest in the wheel and source distribution.
@@ -0,0 +1,246 @@
1
+ """Tiny PEP 517 backend for the dependency-free installer package.
2
+
3
+ Keeping the backend in-tree makes `uv build` work offline. It intentionally
4
+ supports only the pure-Python wheel and sdist shapes this package needs.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import base64
10
+ import csv
11
+ import gzip
12
+ import hashlib
13
+ import io
14
+ import os
15
+ import tarfile
16
+ import time
17
+ import zipfile
18
+ from pathlib import Path
19
+
20
+ import tomllib
21
+
22
+ ROOT = Path(__file__).resolve().parent
23
+ ZIP_MIN_EPOCH = 315532800 # 1980-01-01, the earliest timestamp supported by ZIP.
24
+ ZIP_MAX_EPOCH = 4354819199 # 2107-12-31 23:59:59.
25
+
26
+
27
+ def _project() -> dict:
28
+ return tomllib.loads((ROOT / "pyproject.toml").read_text(encoding="utf-8"))[
29
+ "project"
30
+ ]
31
+
32
+
33
+ def _dist_info() -> tuple[str, str, str]:
34
+ project = _project()
35
+ version = project["version"]
36
+ normalized = project["name"].replace("-", "_")
37
+ return normalized, version, f"{normalized}-{version}.dist-info"
38
+
39
+
40
+ def _metadata() -> bytes:
41
+ project = _project()
42
+ lines = [
43
+ "Metadata-Version: 2.4",
44
+ f"Name: {project['name']}",
45
+ f"Version: {project['version']}",
46
+ f"Summary: {project['description']}",
47
+ f"Requires-Python: {project['requires-python']}",
48
+ "License-Expression: LicenseRef-DSH-Cloud-Community-1.0",
49
+ "License-File: LICENSE",
50
+ "Description-Content-Type: text/markdown; charset=UTF-8",
51
+ ]
52
+ for author in project.get("authors", []):
53
+ if author.get("name"):
54
+ lines.append(f"Author: {author['name']}")
55
+ for name, url in sorted(project.get("urls", {}).items()):
56
+ lines.append(f"Project-URL: {name}, {url}")
57
+ for classifier in project.get("classifiers", []):
58
+ lines.append(f"Classifier: {classifier}")
59
+ return ("\n".join(lines) + "\n\n").encode() + (ROOT / "README.md").read_bytes()
60
+
61
+
62
+ def _source_date_epoch() -> int:
63
+ raw = os.environ.get("SOURCE_DATE_EPOCH", "0")
64
+ try:
65
+ epoch = int(raw)
66
+ except ValueError as error:
67
+ raise ValueError("SOURCE_DATE_EPOCH must be an integer") from error
68
+ if epoch < 0:
69
+ raise ValueError("SOURCE_DATE_EPOCH must not be negative")
70
+ return epoch
71
+
72
+
73
+ def _zip_info(name: str) -> zipfile.ZipInfo:
74
+ epoch = min(max(_source_date_epoch(), ZIP_MIN_EPOCH), ZIP_MAX_EPOCH)
75
+ info = zipfile.ZipInfo(name, time.gmtime(epoch)[:6])
76
+ info.compress_type = zipfile.ZIP_DEFLATED
77
+ info.create_system = 3
78
+ info.external_attr = 0o100644 << 16
79
+ return info
80
+
81
+
82
+ def _tar_info(name: str, value: bytes) -> tarfile.TarInfo:
83
+ info = tarfile.TarInfo(name)
84
+ info.size = len(value)
85
+ info.mode = 0o644
86
+ info.uid = 0
87
+ info.gid = 0
88
+ info.uname = ""
89
+ info.gname = ""
90
+ info.mtime = _source_date_epoch()
91
+ return info
92
+
93
+
94
+ def _license_bytes() -> bytes:
95
+ """Read the license from either a staged package or the repository root."""
96
+ candidates = (ROOT / "LICENSE", ROOT.parents[1] / "LICENSE")
97
+ for candidate in candidates:
98
+ if candidate.is_file():
99
+ return candidate.read_bytes()
100
+ raise FileNotFoundError("LICENSE is required to build dsh-cloud")
101
+
102
+
103
+ def _wheel_files() -> dict[str, bytes]:
104
+ _normalized, _version, dist_info = _dist_info()
105
+ files: dict[str, bytes] = {}
106
+ package = ROOT / "src/dsh_cloud_cli"
107
+ for path in sorted(package.rglob("*")):
108
+ if path.is_file() and "__pycache__" not in path.parts and path.suffix != ".pyc":
109
+ files[path.relative_to(ROOT / "src").as_posix()] = path.read_bytes()
110
+ files[f"{dist_info}/METADATA"] = _metadata()
111
+ files[f"{dist_info}/WHEEL"] = (
112
+ b"Wheel-Version: 1.0\nGenerator: dsh-cloud-build-backend\nRoot-Is-Purelib: true\nTag: py3-none-any\n"
113
+ )
114
+ files[f"{dist_info}/entry_points.txt"] = (
115
+ b"[console_scripts]\ndsh-cloud = dsh_cloud_cli.__main__:main\n"
116
+ )
117
+ files[f"{dist_info}/licenses/LICENSE"] = _license_bytes()
118
+ return files
119
+
120
+
121
+ def _record(files: dict[str, bytes], record_path: str) -> bytes:
122
+ output = io.StringIO(newline="")
123
+ writer = csv.writer(output, lineterminator="\n")
124
+ for name, value in sorted(files.items()):
125
+ digest = (
126
+ base64.urlsafe_b64encode(hashlib.sha256(value).digest())
127
+ .rstrip(b"=")
128
+ .decode()
129
+ )
130
+ writer.writerow((name, f"sha256={digest}", len(value)))
131
+ writer.writerow((record_path, "", ""))
132
+ return output.getvalue().encode()
133
+
134
+
135
+ def get_requires_for_build_wheel(config_settings=None) -> list[str]:
136
+ return []
137
+
138
+
139
+ def get_requires_for_build_sdist(config_settings=None) -> list[str]:
140
+ return []
141
+
142
+
143
+ def get_requires_for_build_editable(config_settings=None) -> list[str]:
144
+ return []
145
+
146
+
147
+ def _write_wheel(wheel_directory, files: dict[str, bytes]) -> str:
148
+ normalized, version, dist_info = _dist_info()
149
+ filename = f"{normalized}-{version}-py3-none-any.whl"
150
+ destination = Path(wheel_directory)
151
+ destination.mkdir(parents=True, exist_ok=True)
152
+ record_path = f"{dist_info}/RECORD"
153
+ files[record_path] = _record(files, record_path)
154
+ with zipfile.ZipFile(
155
+ destination / filename,
156
+ "w",
157
+ compression=zipfile.ZIP_DEFLATED,
158
+ compresslevel=9,
159
+ ) as archive:
160
+ for name, value in sorted(files.items()):
161
+ archive.writestr(_zip_info(name), value)
162
+ return filename
163
+
164
+
165
+ def build_wheel(wheel_directory, config_settings=None, metadata_directory=None) -> str:
166
+ return _write_wheel(wheel_directory, _wheel_files())
167
+
168
+
169
+ def build_editable(
170
+ wheel_directory, config_settings=None, metadata_directory=None
171
+ ) -> str:
172
+ """Build the ephemeral PEP 660 wheel used by `uv run --project`.
173
+
174
+ The `.pth` points Python at this checkout's `src/`; dist metadata and the
175
+ console-script entry point remain ordinary wheel records.
176
+ """
177
+ normalized, _version, dist_info = _dist_info()
178
+ files = {
179
+ f"{dist_info}/METADATA": _metadata(),
180
+ f"{dist_info}/WHEEL": b"Wheel-Version: 1.0\nGenerator: dsh-cloud-build-backend\nRoot-Is-Purelib: true\nTag: py3-none-any\n",
181
+ f"{dist_info}/entry_points.txt": b"[console_scripts]\ndsh-cloud = dsh_cloud_cli.__main__:main\n",
182
+ f"{dist_info}/licenses/LICENSE": _license_bytes(),
183
+ f"_{normalized}_editable.pth": f"{(ROOT / 'src').resolve()}\n".encode(),
184
+ }
185
+ return _write_wheel(wheel_directory, files)
186
+
187
+
188
+ def _prepare_metadata(metadata_directory) -> str:
189
+ _normalized, _version, dist_info = _dist_info()
190
+ destination = Path(metadata_directory) / dist_info
191
+ destination.mkdir(parents=True, exist_ok=True)
192
+ (destination / "METADATA").write_bytes(_metadata())
193
+ (destination / "WHEEL").write_text(
194
+ "Wheel-Version: 1.0\nGenerator: dsh-cloud-build-backend\nRoot-Is-Purelib: true\nTag: py3-none-any\n",
195
+ encoding="utf-8",
196
+ )
197
+ (destination / "entry_points.txt").write_text(
198
+ "[console_scripts]\ndsh-cloud = dsh_cloud_cli.__main__:main\n",
199
+ encoding="utf-8",
200
+ )
201
+ licenses = destination / "licenses"
202
+ licenses.mkdir(exist_ok=True)
203
+ (licenses / "LICENSE").write_bytes(_license_bytes())
204
+ return dist_info
205
+
206
+
207
+ def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None) -> str:
208
+ return _prepare_metadata(metadata_directory)
209
+
210
+
211
+ def prepare_metadata_for_build_editable(
212
+ metadata_directory, config_settings=None
213
+ ) -> str:
214
+ return _prepare_metadata(metadata_directory)
215
+
216
+
217
+ def build_sdist(sdist_directory, config_settings=None) -> str:
218
+ normalized, version, _dist_info_name = _dist_info()
219
+ filename = f"{normalized}-{version}.tar.gz"
220
+ prefix = f"{normalized}-{version}"
221
+ destination = Path(sdist_directory)
222
+ destination.mkdir(parents=True, exist_ok=True)
223
+ included = [ROOT / "pyproject.toml", ROOT / "README.md", ROOT / "build_backend.py"]
224
+ included.extend(
225
+ path
226
+ for path in sorted((ROOT / "src").rglob("*"))
227
+ if path.is_file() and "__pycache__" not in path.parts
228
+ )
229
+ members = {
230
+ f"{prefix}/{path.relative_to(ROOT).as_posix()}": path.read_bytes()
231
+ for path in included
232
+ }
233
+ members[f"{prefix}/LICENSE"] = _license_bytes()
234
+ members[f"{prefix}/PKG-INFO"] = _metadata()
235
+ with (
236
+ (destination / filename).open("wb") as output,
237
+ gzip.GzipFile(
238
+ filename="", mode="wb", fileobj=output, mtime=_source_date_epoch()
239
+ ) as compressed,
240
+ tarfile.open(
241
+ fileobj=compressed, mode="w", format=tarfile.PAX_FORMAT
242
+ ) as archive,
243
+ ):
244
+ for name, value in sorted(members.items()):
245
+ archive.addfile(_tar_info(name, value), io.BytesIO(value))
246
+ return filename
@@ -0,0 +1,33 @@
1
+ [build-system]
2
+ requires = []
3
+ build-backend = "build_backend"
4
+ backend-path = ["."]
5
+
6
+ [project]
7
+ name = "dsh-cloud"
8
+ version = "0.2.0"
9
+ description = "Safe self-host installer and lifecycle CLI for DSH Cloud Community Edition"
10
+ requires-python = ">=3.11"
11
+ dependencies = []
12
+ license = {text = "LicenseRef-DSH-Cloud-Community-1.0"}
13
+ readme = "README.md"
14
+
15
+ authors = [
16
+ {name = "AgentsDance AI"}
17
+ ]
18
+ classifiers = [
19
+ "Development Status :: 4 - Beta",
20
+ "Environment :: Console",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.11",
23
+ "Programming Language :: Python :: 3.12",
24
+ "Topic :: System :: Installation/Setup"
25
+ ]
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/AgentsDanceAI/deepseek-harness-cloud"
29
+ Documentation = "https://github.com/AgentsDanceAI/deepseek-harness-cloud/blob/main/docs/install.md"
30
+ Issues = "https://github.com/AgentsDanceAI/deepseek-harness-cloud/issues"
31
+
32
+ [project.scripts]
33
+ dsh-cloud = "dsh_cloud_cli.__main__:main"
@@ -0,0 +1 @@
1
+ """DSH Cloud Community installer CLI."""
@@ -0,0 +1,5 @@
1
+ from .cli import main
2
+
3
+
4
+ if __name__ == "__main__":
5
+ raise SystemExit(main())