File tree Expand file tree Collapse file tree 8 files changed +6
-31
lines changed
Expand file tree Collapse file tree 8 files changed +6
-31
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ keywords = [
3636dependencies = [
3737 " apify-client>=2.0.0,<3.0.0" ,
3838 " apify-shared>=2.0.0,<3.0.0" ,
39- " crawlee==1.0.0rc1 " ,
39+ " crawlee @ git+https://github.com/apify/crawlee-python.git@storage-clients-and-configurations " ,
4040 " cachetools>=5.5.0" ,
4141 " cryptography>=42.0.0" ,
4242 # TODO: ensure compatibility with the latest version of lazy-object-proxy
Original file line number Diff line number Diff line change @@ -429,7 +429,6 @@ async def open_dataset(
429429 return await Dataset .open (
430430 id = id ,
431431 name = name ,
432- configuration = self ._configuration ,
433432 storage_client = storage_client ,
434433 )
435434
@@ -463,7 +462,6 @@ async def open_key_value_store(
463462 return await KeyValueStore .open (
464463 id = id ,
465464 name = name ,
466- configuration = self ._configuration ,
467465 storage_client = storage_client ,
468466 )
469467
@@ -500,7 +498,6 @@ async def open_request_queue(
500498 return await RequestQueue .open (
501499 id = id ,
502500 name = name ,
503- configuration = self ._configuration ,
504501 storage_client = storage_client ,
505502 )
506503
Original file line number Diff line number Diff line change @@ -56,7 +56,6 @@ async def open_kvs() -> KeyValueStore:
5656 storage_client = ApifyStorageClient ()
5757 return await KeyValueStore .open (
5858 name = kvs_name ,
59- configuration = configuration ,
6059 storage_client = storage_client ,
6160 )
6261 return await KeyValueStore .open (name = kvs_name )
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ async def open_rq() -> RequestQueue:
5353 if configuration .is_at_home :
5454 storage_client = ApifyStorageClient ()
5555 return await RequestQueue .open (
56- configuration = configuration ,
5756 storage_client = storage_client ,
5857 )
5958 return await RequestQueue .open ()
Original file line number Diff line number Diff line change 11# The test fixture will put the Apify SDK wheel path on the next line
22APIFY_SDK_WHEEL_PLACEHOLDER
33uvicorn [standard ]
4- crawlee [parsel ]== 1.0.0rc1
4+ crawlee [parsel ] @ git+https://github.com/apify/crawlee-python.git@storage-clients-and-configurations
Original file line number Diff line number Diff line change @@ -60,16 +60,8 @@ def _prepare_test_env() -> None:
6060 service_locator ._storage_client = None
6161 service_locator ._storage_instance_manager = None
6262
63- # Reset the retrieval flags.
64- service_locator ._configuration_was_retrieved = False
65- service_locator ._event_manager_was_retrieved = False
66- service_locator ._storage_client_was_retrieved = False
67-
6863 # Verify that the test environment was set up correctly.
6964 assert os .environ .get (ApifyEnvVars .LOCAL_STORAGE_DIR ) == str (tmp_path )
70- assert service_locator ._configuration_was_retrieved is False
71- assert service_locator ._storage_client_was_retrieved is False
72- assert service_locator ._event_manager_was_retrieved is False
7365
7466 return _prepare_test_env
7567
Original file line number Diff line number Diff line change @@ -51,16 +51,8 @@ def _prepare_test_env() -> None:
5151 service_locator ._storage_client = None
5252 service_locator ._storage_instance_manager = None
5353
54- # Reset the retrieval flags.
55- service_locator ._configuration_was_retrieved = False
56- service_locator ._event_manager_was_retrieved = False
57- service_locator ._storage_client_was_retrieved = False
58-
5954 # Verify that the test environment was set up correctly.
6055 assert os .environ .get (ApifyEnvVars .LOCAL_STORAGE_DIR ) == str (tmp_path )
61- assert service_locator ._configuration_was_retrieved is False
62- assert service_locator ._storage_client_was_retrieved is False
63- assert service_locator ._event_manager_was_retrieved is False
6456
6557 return _prepare_test_env
6658
You can’t perform that action at this time.
0 commit comments