Skip to content

Commit 09cfcaf

Browse files
committed
[deps] Fixed deps and tests
1 parent 5470a5d commit 09cfcaf

10 files changed

Lines changed: 97 additions & 37 deletions

File tree

pyatlan_v9/client/aio/asset.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@
5757
)
5858
from pyatlan.client.constants import BULK_UPDATE, DELETE_ENTITIES_BY_GUIDS
5959
from pyatlan.errors import ErrorCode, NotFoundError, PermissionError
60+
from pyatlan.model.aio import AsyncIndexSearchResults, AsyncLineageListResults
61+
from pyatlan.model.fields.atlan_fields import AtlanField
62+
from pyatlan.utils import unflatten_custom_metadata_for_entity
6063
from pyatlan_v9.client.asset import (
6164
_handle_v9_glossary_anchor,
6265
_is_glossary_category,
6366
_matches_asset_type,
6467
_process_find_response_v9,
6568
)
66-
from pyatlan.model.aio import AsyncIndexSearchResults, AsyncLineageListResults
67-
from pyatlan.model.fields.atlan_fields import AtlanField
68-
from pyatlan.utils import unflatten_custom_metadata_for_entity
6969
from pyatlan_v9.model.aggregation import Aggregations
7070
from pyatlan_v9.model.aio.core import AsyncAtlanRequest
7171
from pyatlan_v9.model.assets import (

pyatlan_v9/client/asset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
# ---------------------------------------------------------------------------
3838
from pyatlan.client.asset import ( # noqa: F401
3939
AssetIdentity,
40-
Batch as _LegacyBatch,
4140
CategoryHierarchy,
4241
CustomMetadataHandling,
4342
FailedBatch,
4443
IndexSearchResults,
4544
LineageListResults,
4645
SearchResults,
4746
)
47+
from pyatlan.client.asset import Batch as _LegacyBatch
4848
from pyatlan.client.common import (
4949
ApiCaller,
5050
DeleteByGuid,

pyatlan_v9/model/assets/schema.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,10 @@ def _schema__from_nested_bytes(data: bytes, serde: Serde) -> Schema:
486486
# ---------------------------------------------------------------------------
487487
# Schema field descriptors (inherited from SQL in legacy, set explicitly here)
488488
# ---------------------------------------------------------------------------
489-
from pyatlan.model.fields.atlan_fields import KeywordField, KeywordTextField # noqa: E402
489+
from pyatlan.model.fields.atlan_fields import ( # noqa: E402
490+
KeywordField,
491+
KeywordTextField,
492+
)
490493

491494
Schema.DATABASE_NAME = KeywordTextField(
492495
"databaseName", "databaseName.keyword", "databaseName"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies = [
3737
"PyYAML~=6.0.3",
3838
"httpx~=0.28.1",
3939
"httpx-retries~=0.4.5",
40-
"authlib~=1.6.6",
40+
"authlib~=1.6.9",
4141
"msgspec~=0.20.0",
4242
]
4343

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ annotated-types==0.7.0 ; python_full_version < '3.14' and platform_python_implem
55
# via pydantic
66
anyio==4.10.0 ; python_full_version < '3.14' and platform_python_implementation == 'CPython'
77
# via httpx
8-
authlib==1.6.6 ; python_full_version < '3.14' and platform_python_implementation == 'CPython'
8+
authlib==1.6.9 ; python_full_version < '3.14' and platform_python_implementation == 'CPython'
99
# via pyatlan
1010
backports-asyncio-runner==1.2.0 ; python_full_version < '3.11' and platform_python_implementation == 'CPython'
1111
# via pytest-asyncio
@@ -100,6 +100,8 @@ more-itertools==10.7.0 ; python_full_version < '3.14' and platform_machine != 'p
100100
# via
101101
# jaraco-classes
102102
# jaraco-functools
103+
msgspec==0.20.0 ; python_full_version < '3.14' and platform_python_implementation == 'CPython'
104+
# via pyatlan
103105
multidict==6.6.4 ; python_full_version < '3.14' and platform_python_implementation == 'CPython'
104106
# via yarl
105107
mypy==1.18.2 ; python_full_version < '3.14' and platform_python_implementation == 'CPython'

tests_v9/integration/aio/test_asset_batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import pytest
66
import pytest_asyncio
77

8-
from pyatlan_v9.client.aio.batch import AsyncBatch
98
from pyatlan_v9.client.aio.atlan import AsyncAtlanClient
9+
from pyatlan_v9.client.aio.batch import AsyncBatch
1010
from pyatlan_v9.model.assets import (
1111
Asset,
1212
Connection,

tests_v9/unit/aio/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
import pytest
1111
from httpx import Headers
1212

13-
from pyatlan_v9.client.aio.batch import AsyncBatch
1413
from pyatlan.client.common import Search
1514
from pyatlan.client.common.asset import LOGGER as SHARED_LOGGER
1615
from pyatlan.model.aio.asset import AsyncIndexSearchResults
1716
from pyatlan.utils import get_python_version
1817
from pyatlan_v9.client.aio.asset import V9AsyncAssetClient as AsyncAssetClient
1918
from pyatlan_v9.client.aio.atlan import AsyncAtlanClient
19+
from pyatlan_v9.client.aio.batch import AsyncBatch
2020
from pyatlan_v9.client.aio.group import V9AsyncGroupClient as AsyncGroupClient
2121
from pyatlan_v9.client.aio.search_log import (
2222
V9AsyncSearchLogClient as AsyncSearchLogClient,

tests_v9/unit/constants.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
# Copyright 2024 Atlan Pte. Ltd.
33

44
# Non-validation constants from the legacy test suite.
5+
from pyatlan_v9.model.assets import AtlasGlossary
6+
from pyatlan_v9.model.enums import AtlanWorkflowPhase
7+
from pyatlan_v9.model.workflow import (
8+
ScheduleQueriesSearchRequest,
9+
WorkflowMetadata,
10+
WorkflowResponse,
11+
WorkflowSpec,
12+
)
513
from tests.unit.constants import ( # noqa: F401, F403
614
APPLICABLE_AI_ASSET_TYPES,
715
APPLICABLE_ASSET_TYPES,
@@ -18,15 +26,6 @@
1826
)
1927
from tests.unit.model.constants import * # noqa: F401, F403
2028

21-
from pyatlan_v9.model.assets import AtlasGlossary
22-
from pyatlan_v9.model.enums import AtlanWorkflowPhase
23-
from pyatlan_v9.model.workflow import (
24-
ScheduleQueriesSearchRequest,
25-
WorkflowMetadata,
26-
WorkflowResponse,
27-
WorkflowSpec,
28-
)
29-
3029
TEST_ASSET_CLIENT_METHODS = {
3130
"find_personas_by_name": [
3231
([[123], ["attributes"]], "name\n str type expected"),

tests_v9/unit/test_client.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,11 @@
8080
TEST_ROLE_CLIENT_METHODS,
8181
TEST_SL_CLIENT_METHODS,
8282
)
83-
from tests_v9.unit.constants import (
84-
TEST_ASSET_CLIENT_METHODS as _V9_ASSET_METHODS,
85-
)
86-
from tests_v9.unit.constants import (
87-
TEST_GROUP_CLIENT_METHODS as _V9_GROUP_METHODS,
88-
)
89-
from tests_v9.unit.constants import (
90-
TEST_TOKEN_CLIENT_METHODS as _V9_TOKEN_METHODS,
91-
)
92-
from tests_v9.unit.constants import (
93-
TEST_TYPEDEF_CLIENT_METHODS as _V9_TYPEDEF_METHODS,
94-
)
95-
from tests_v9.unit.constants import (
96-
TEST_USER_CLIENT_METHODS as _V9_USER_METHODS,
97-
)
83+
from tests_v9.unit.constants import TEST_ASSET_CLIENT_METHODS as _V9_ASSET_METHODS
84+
from tests_v9.unit.constants import TEST_GROUP_CLIENT_METHODS as _V9_GROUP_METHODS
85+
from tests_v9.unit.constants import TEST_TOKEN_CLIENT_METHODS as _V9_TOKEN_METHODS
86+
from tests_v9.unit.constants import TEST_TYPEDEF_CLIENT_METHODS as _V9_TYPEDEF_METHODS
87+
from tests_v9.unit.constants import TEST_USER_CLIENT_METHODS as _V9_USER_METHODS
9888

9989
# v9 uses pyatlan search DSL internally; " " name validation raises WithName not FindXByName
10090
_V9_WHITESPACE_NAME_MSG = "1 validation error for WithName\nvalue\n ensure this value has at least 1 characters"

0 commit comments

Comments
 (0)