sentinel-python-client 2.0.0__tar.gz → 2.0.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 (44) hide show
  1. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/.github/workflows/release.yml +6 -0
  2. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/PKG-INFO +1 -1
  3. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/pyproject.toml +1 -1
  4. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/models/license.py +1 -2
  5. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/conftest.py +0 -1
  6. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_models.py +1 -2
  7. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/.githooks/pre-commit +0 -0
  8. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/.github/workflows/ci.yml +0 -0
  9. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/.gitignore +0 -0
  10. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/LICENSE +0 -0
  11. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/README.md +0 -0
  12. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/__init__.py +0 -0
  13. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/_async_client.py +0 -0
  14. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/_client.py +0 -0
  15. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/_exceptions.py +0 -0
  16. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/_http.py +0 -0
  17. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/_replay.py +0 -0
  18. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/_signature.py +0 -0
  19. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/models/__init__.py +0 -0
  20. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/models/page.py +0 -0
  21. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/models/requests.py +0 -0
  22. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/models/validation.py +0 -0
  23. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/services/__init__.py +0 -0
  24. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/services/_async_license.py +0 -0
  25. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/services/_async_operations.py +0 -0
  26. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/services/_license.py +0 -0
  27. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/services/_operations.py +0 -0
  28. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/util/__init__.py +0 -0
  29. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/util/fingerprint.py +0 -0
  30. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/src/sentinel/util/public_ip.py +0 -0
  31. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_async_license_service.py +0 -0
  32. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_async_operations.py +0 -0
  33. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_client.py +0 -0
  34. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_exceptions.py +0 -0
  35. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_fingerprint.py +0 -0
  36. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_http.py +0 -0
  37. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_license_service.py +0 -0
  38. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_operations.py +0 -0
  39. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_page.py +0 -0
  40. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_public_ip.py +0 -0
  41. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_replay.py +0 -0
  42. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_request_models.py +0 -0
  43. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_signature.py +0 -0
  44. {sentinel_python_client-2.0.0 → sentinel_python_client-2.0.2}/tests/test_validation_models.py +0 -0
@@ -12,6 +12,12 @@ jobs:
12
12
  - uses: actions/setup-python@v5
13
13
  with:
14
14
  python-version: "3.12"
15
+ - name: Set version from tag
16
+ run: sed -i "s/^version = .*/version = \"${GITHUB_REF_NAME#v}\"/" pyproject.toml
17
+ - name: Install dev dependencies
18
+ run: pip install -e ".[dev]"
19
+ - name: Test
20
+ run: pytest -v
15
21
  - run: pip install build
16
22
  - run: python -m build
17
23
  - uses: actions/upload-artifact@v4
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentinel-python-client
3
- Version: 2.0.0
3
+ Version: 2.0.2
4
4
  Summary: Official Python client for the Sentinel v2 license validation and management API
5
5
  Author: Demeng
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "sentinel-python-client"
7
- version = "2.0.0"
7
+ version = "2.0.2"
8
8
  description = "Official Python client for the Sentinel v2 license validation and management API"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -22,8 +22,7 @@ class LicenseProduct(_CamelModel):
22
22
 
23
23
 
24
24
  class LicenseTier(_CamelModel):
25
- id: str
26
- name: str | None = None
25
+ name: str
27
26
  entitlements: set[str] = set()
28
27
 
29
28
 
@@ -11,7 +11,6 @@ SAMPLE_LICENSE_JSON = {
11
11
  "logoUrl": "https://example.com/logo.png",
12
12
  },
13
13
  "tier": {
14
- "id": "tier_1",
15
14
  "name": "Premium",
16
15
  "entitlements": ["feature_a", "feature_b"],
17
16
  },
@@ -32,9 +32,8 @@ def test_license_product_nullable_fields():
32
32
 
33
33
 
34
34
  def test_license_tier_from_json():
35
- data = {"id": "tier_1", "name": "Premium", "entitlements": ["a", "b"]}
35
+ data = {"name": "Premium", "entitlements": ["a", "b"]}
36
36
  tier = LicenseTier.model_validate(data)
37
- assert tier.id == "tier_1"
38
37
  assert tier.name == "Premium"
39
38
  assert tier.entitlements == {"a", "b"}
40
39