unitysvc-data 0.1.0__tar.gz → 0.1.2__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 (33) hide show
  1. {unitysvc_data-0.1.0/src/unitysvc_data.egg-info → unitysvc_data-0.1.2}/PKG-INFO +1 -1
  2. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/pyproject.toml +1 -1
  3. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/_manifest.json +2 -2
  4. unitysvc_data-0.1.2/src/unitysvc_data/_version.py +1 -0
  5. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/s3/code-example/README.md +1 -1
  6. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/s3/description/README.md +1 -1
  7. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/presets.py +7 -3
  8. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2/src/unitysvc_data.egg-info}/PKG-INFO +1 -1
  9. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/tests/test_presets.py +1 -1
  10. unitysvc_data-0.1.0/src/unitysvc_data/_version.py +0 -1
  11. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/LICENSE +0 -0
  12. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/README.md +0 -0
  13. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/setup.cfg +0 -0
  14. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/__init__.py +0 -0
  15. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/cli.py +0 -0
  16. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/api/connectivity/README.md +0 -0
  17. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/api/connectivity/connectivity-v1.sh.j2 +0 -0
  18. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/llm/request-template/README.md +0 -0
  19. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/llm/request-template/request-template-v1.json +0 -0
  20. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/s3/code-example/code-example-v1.py.j2 +0 -0
  21. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/s3/connectivity/README.md +0 -0
  22. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/s3/connectivity/connectivity-v1.py.j2 +0 -0
  23. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/s3/description/description-v1.md +0 -0
  24. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/smtp/connectivity/README.md +0 -0
  25. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/examples/smtp/connectivity/connectivity-v1.sh.j2 +0 -0
  26. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data/py.typed +0 -0
  27. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data.egg-info/SOURCES.txt +0 -0
  28. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data.egg-info/dependency_links.txt +0 -0
  29. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data.egg-info/entry_points.txt +0 -0
  30. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data.egg-info/requires.txt +0 -0
  31. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/src/unitysvc_data.egg-info/top_level.txt +0 -0
  32. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/tests/test_build.py +0 -0
  33. {unitysvc_data-0.1.0 → unitysvc_data-0.1.2}/tests/test_cli.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitysvc-data
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Standard examples and presets for UnitySVC data packages
5
5
  Author-email: Bo Peng <bo.peng@unitysvc.com>
6
6
  Maintainer-email: Bo Peng <bo.peng@unitysvc.com>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "unitysvc-data"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "Standard examples and presets for UnitySVC data packages"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Bo Peng", email = "bo.peng@unitysvc.com" }]
@@ -35,7 +35,7 @@
35
35
  "version": 1
36
36
  },
37
37
  "s3_code_example_v1": {
38
- "category": "usage_example",
38
+ "category": "code_example",
39
39
  "description": "Python example: list objects in an S3 bucket via boto3",
40
40
  "example_file": "s3/code-example/code-example-v1.py.j2",
41
41
  "is_active": true,
@@ -61,7 +61,7 @@
61
61
  "version": 1
62
62
  },
63
63
  "s3_description_v1": {
64
- "category": "description",
64
+ "category": "getting_started",
65
65
  "description": "Customer-facing overview of the S3 gateway service",
66
66
  "example_file": "s3/description/description-v1.md",
67
67
  "is_active": true,
@@ -0,0 +1 @@
1
+ __version__ = "0.1.2"
@@ -1,6 +1,6 @@
1
1
  +++
2
2
  preset_name = "s3_code_example"
3
- category = "usage_example"
3
+ category = "code_example"
4
4
  mime_type = "python"
5
5
  file = "code-example.py.j2"
6
6
  description = "Python example: list objects in an S3 bucket via boto3"
@@ -1,6 +1,6 @@
1
1
  +++
2
2
  preset_name = "s3_description"
3
- category = "description"
3
+ category = "getting_started"
4
4
  mime_type = "markdown"
5
5
  file = "description.md"
6
6
  description = "Customer-facing overview of the S3 gateway service"
@@ -37,8 +37,12 @@ from pathlib import Path
37
37
  from typing import Any
38
38
 
39
39
  # Resolved once at import time. Duplicated with __init__ rather than
40
- # imported to avoid a circular import during package load.
41
- _EXAMPLES_ROOT = _files(__name__).joinpath("examples")
40
+ # imported to avoid a circular import during package load. Use
41
+ # ``__package__`` (the parent package, "unitysvc_data") rather than
42
+ # ``__name__`` (the module, "unitysvc_data.presets") — Python 3.11's
43
+ # ``importlib.resources.files`` rejects module anchors; 3.12+ accepts
44
+ # both, but the package anchor is portable.
45
+ _EXAMPLES_ROOT = _files(__package__).joinpath("examples")
42
46
 
43
47
  __all__ = [
44
48
  "PRESETS",
@@ -58,7 +62,7 @@ OVERRIDABLE: frozenset[str] = frozenset({"description", "is_public", "is_active"
58
62
 
59
63
 
60
64
  def _load_manifest() -> dict[str, Any]:
61
- manifest_bytes = _files(__name__).joinpath("_manifest.json").read_bytes()
65
+ manifest_bytes = _files(__package__).joinpath("_manifest.json").read_bytes()
62
66
  return json.loads(manifest_bytes)
63
67
 
64
68
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unitysvc-data
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Standard examples and presets for UnitySVC data packages
5
5
  Author-email: Bo Peng <bo.peng@unitysvc.com>
6
6
  Maintainer-email: Bo Peng <bo.peng@unitysvc.com>
@@ -135,7 +135,7 @@ def test_doc_preset_sentinel_with_overrides():
135
135
  )
136
136
  assert record["description"] == "Custom desc"
137
137
  assert record["is_public"] is False
138
- assert record["category"] == "usage_example"
138
+ assert record["category"] == "code_example"
139
139
 
140
140
 
141
141
  def test_doc_preset_deep_merges_meta():
@@ -1 +0,0 @@
1
- __version__ = "0.1.0"
File without changes
File without changes
File without changes