File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1
- =================================
2
- HubStorage service client library
3
- =================================
1
+ ==============================================
2
+ [DEPRECATED] HubStorage service client library
3
+ ==============================================
4
+
5
+ [WARNING] This package is deprecated, please use `python-scrapinghub `_ (>=1.9.0) instead.
4
6
5
7
.. image :: https://badge.fury.io/py/hubstorage.png
6
8
:target: http://badge.fury.io/py/hubstorage
@@ -256,4 +258,4 @@ To retrieve fingerprints for a given slot:
256
258
.. _Scrapinghub API : http://doc.scrapinghub.com/api.html
257
259
.. _Collections : http://doc.scrapinghub.com/api/collections.html
258
260
.. _Frontier : http://doc.scrapinghub.com/api/frontier.html
259
-
261
+ .. _ python-scrapinghub : https://github.com/scrapinghub/python-scrapinghub
Original file line number Diff line number Diff line change 5
5
6
6
from .client import HubstorageClient , __version__
7
7
from .batchuploader import ValueTooLarge
8
+ import warnings
9
+
10
+
11
+ class HubstorageDeprecationWarning (Warning ):
12
+ """Warning subclass for the library, since the default
13
+ DeprecationWarning is silenced on Python 2.7+
14
+ """
15
+ pass
16
+
17
+
18
+ DEPRECATION_MSG = (
19
+ "python-hubstorage is deprecated, please use python-scrapinghub >= 1.9.0" +
20
+ " instead (https://pypi.python.org/pypi/scrapinghub)."
21
+ )
22
+
23
+ warnings .warn (DEPRECATION_MSG , HubstorageDeprecationWarning , stacklevel = 2 )
You can’t perform that action at this time.
0 commit comments