nepher-cli 0.2.0__tar.gz → 0.2.1__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.
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/PKG-INFO +1 -1
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/pyproject.toml +1 -1
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/envhub.py +6 -2
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/.gitignore +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/README.md +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/__init__.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/__main__.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/cli.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/__init__.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/account.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/hackathon.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/simstore.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/tournament.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/config.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/core/__init__.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/core/credentials.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/core/http.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/envhub/__init__.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/envhub/cache.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/envhub/config.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/py.typed +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/tournament/__init__.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/tournament/agent_check.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/tournament/api.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/tournament/packer.py +0 -0
- {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/tournament/wallet.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nepher-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: npcli — unified Nepher command-line interface for accounts, hackathons, EnvHub, tournaments, and SimStore
|
|
5
5
|
Project-URL: Homepage, https://github.com/nepher-ai/nepher-cli
|
|
6
6
|
Author: Nepher
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "nepher-cli"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.1"
|
|
8
8
|
description = "npcli — unified Nepher command-line interface for accounts, hackathons, EnvHub, tournaments, and SimStore"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -247,10 +247,14 @@ def envhub_upload(path: str, category: str, benchmark: bool, force: bool, thumbn
|
|
|
247
247
|
data_fields["force"] = "true"
|
|
248
248
|
|
|
249
249
|
with open(upload_path, "rb") as f:
|
|
250
|
-
files: dict[str, Any] = {"
|
|
250
|
+
files: dict[str, Any] = {"bundle": (upload_path.name, f, "application/zip")}
|
|
251
251
|
if thumbnail:
|
|
252
252
|
thumb_path = Path(thumbnail)
|
|
253
|
-
|
|
253
|
+
suffix = thumb_path.suffix.lower()
|
|
254
|
+
content_type = "image/png" if suffix == ".png" else ("image/webp" if suffix == ".webp" else "image/jpeg")
|
|
255
|
+
files["thumbnail"] = (thumb_path.name, open(thumbnail, "rb"), content_type)
|
|
256
|
+
|
|
257
|
+
data_fields["duplicate_policy"] = "reject"
|
|
254
258
|
|
|
255
259
|
try:
|
|
256
260
|
r = httpx.post(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|