apify 3.0.4b2__py3-none-any.whl → 3.0.4b4__py3-none-any.whl

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.

Potentially problematic release.


This version of apify might be problematic. Click here for more details.

apify/_actor.py CHANGED
@@ -1,7 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import asyncio
4
- import os
5
4
  import sys
6
5
  from contextlib import suppress
7
6
  from datetime import datetime, timedelta, timezone
@@ -1288,16 +1287,11 @@ class _ActorType:
1288
1287
  raise RuntimeError('The Actor was not initialized!')
1289
1288
 
1290
1289
  def _get_default_exit_process(self) -> bool:
1291
- """Return False for IPython, Pytest, and Scrapy environments, True otherwise."""
1290
+ """Return False for IPython and Scrapy environments, True otherwise."""
1292
1291
  if is_running_in_ipython():
1293
1292
  self.log.debug('Running in IPython, setting default `exit_process` to False.')
1294
1293
  return False
1295
1294
 
1296
- # Check if running in Pytest by detecting the relevant environment variable.
1297
- if os.getenv('PYTEST_CURRENT_TEST'):
1298
- self.log.debug('Running in Pytest, setting default `exit_process` to False.')
1299
- return False
1300
-
1301
1295
  # Check if running in Scrapy by attempting to import it.
1302
1296
  with suppress(ImportError):
1303
1297
  import scrapy # noqa: F401 PLC0415
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apify
3
- Version: 3.0.4b2
3
+ Version: 3.0.4b4
4
4
  Summary: Apify SDK for Python
5
5
  Project-URL: Apify Homepage, https://apify.com
6
6
  Project-URL: Changelog, https://docs.apify.com/sdk/python/docs/changelog
@@ -228,7 +228,7 @@ Requires-Python: >=3.10
228
228
  Requires-Dist: apify-client<3.0.0,>=2.2.0
229
229
  Requires-Dist: apify-shared<3.0.0,>=2.0.0
230
230
  Requires-Dist: cachetools>=5.5.0
231
- Requires-Dist: crawlee<2.0.0,>=1.0.2
231
+ Requires-Dist: crawlee<2.0.0,>=1.0.4
232
232
  Requires-Dist: cryptography>=42.0.0
233
233
  Requires-Dist: impit>=0.6.1
234
234
  Requires-Dist: lazy-object-proxy>=1.11.0
@@ -1,5 +1,5 @@
1
1
  apify/__init__.py,sha256=HpgKg2FZWJuSPfDygzJ62psylhw4NN4tKFnoYUIhcd4,838
2
- apify/_actor.py,sha256=eJzlRicWkVuO-151ikjJnRMRl-UgJ2QKg6wahtoc2Rc,57252
2
+ apify/_actor.py,sha256=e4u_mhEfwraLITO0f9fRFAKhTFY8CqiA64Julyx3UWE,56987
3
3
  apify/_charging.py,sha256=baFGDGq6rREzzPx7QT_M4N3XmKR2BIJNv5DpeQAGZbU,15174
4
4
  apify/_configuration.py,sha256=IJqFAeBCUdhiWEUzHUbLNNhoNR2sS5USMP6kCNNbWt4,16028
5
5
  apify/_consts.py,sha256=CjhyEJ4Mi0lcIrzfqz8dN7nPJWGjCeBrrXQy1PZ6zRI,440
@@ -51,7 +51,7 @@ apify/storage_clients/_smart_apify/__init__.py,sha256=614B2AaWY-dx6RQ6mod7VVR8gF
51
51
  apify/storage_clients/_smart_apify/_storage_client.py,sha256=ZNNY4Qm9Cx_UFqBaforT28gC4hhOnCcKWpUYCIvzj48,5218
52
52
  apify/storages/__init__.py,sha256=-9tEYJVabVs_eRVhUehxN58GH0UG8OfuGjGwuDieP2M,122
53
53
  apify/storages/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
- apify-3.0.4b2.dist-info/METADATA,sha256=EiaxEouRAYWKgAQ555T-XbAU6A61ygZNPesbj3OhZ0o,22582
55
- apify-3.0.4b2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
56
- apify-3.0.4b2.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
57
- apify-3.0.4b2.dist-info/RECORD,,
54
+ apify-3.0.4b4.dist-info/METADATA,sha256=kh8Silr-mXFIaoWexg4lDyddQy4poKsKUiIzlfV1o1A,22582
55
+ apify-3.0.4b4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
56
+ apify-3.0.4b4.dist-info/licenses/LICENSE,sha256=AsFjHssKjj4LGd2ZCqXn6FBzMqcWdjQre1byPPSypVw,11355
57
+ apify-3.0.4b4.dist-info/RECORD,,