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.
Files changed (26) hide show
  1. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/PKG-INFO +1 -1
  2. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/pyproject.toml +1 -1
  3. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/envhub.py +6 -2
  4. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/.gitignore +0 -0
  5. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/README.md +0 -0
  6. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/__init__.py +0 -0
  7. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/__main__.py +0 -0
  8. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/cli.py +0 -0
  9. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/__init__.py +0 -0
  10. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/account.py +0 -0
  11. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/hackathon.py +0 -0
  12. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/simstore.py +0 -0
  13. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/commands/tournament.py +0 -0
  14. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/config.py +0 -0
  15. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/core/__init__.py +0 -0
  16. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/core/credentials.py +0 -0
  17. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/core/http.py +0 -0
  18. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/envhub/__init__.py +0 -0
  19. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/envhub/cache.py +0 -0
  20. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/envhub/config.py +0 -0
  21. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/py.typed +0 -0
  22. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/tournament/__init__.py +0 -0
  23. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/tournament/agent_check.py +0 -0
  24. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/tournament/api.py +0 -0
  25. {nepher_cli-0.2.0 → nepher_cli-0.2.1}/src/nepher_cli/tournament/packer.py +0 -0
  26. {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.0
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.0"
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] = {"file": (upload_path.name, f, "application/zip")}
250
+ files: dict[str, Any] = {"bundle": (upload_path.name, f, "application/zip")}
251
251
  if thumbnail:
252
252
  thumb_path = Path(thumbnail)
253
- files["thumbnail"] = (thumb_path.name, open(thumbnail, "rb"), "image/jpeg")
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