python-migrations / PythonDataset /train /scrapinghub-entrypoint-scrapy-task-instances.jsonl.all
12Parker's picture
Upload 96 files
5980447 verified
{"repo": "scrapinghub/scrapinghub-entrypoint-scrapy", "pull_number": 32, "instance_id": "scrapinghub__scrapinghub-entrypoint-scrapy-32", "issue_numbers": "", "base_commit": "4ef6065965af773ca7993cb964082a4079e0c35c", "patch": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -9,7 +9,7 @@\n packages=find_packages(),\n install_requires=[\n 'Scrapy>=1.0',\n- 'hubstorage>=0.23.2',\n+ 'scrapinghub>=1.9.0',\n ],\n entry_points={\n 'console_scripts': [\ndiff --git a/sh_scrapy/hsref.py b/sh_scrapy/hsref.py\n--- a/sh_scrapy/hsref.py\n+++ b/sh_scrapy/hsref.py\n@@ -44,7 +44,7 @@ def jobid(self):\n \n @property\n def client(self):\n- from hubstorage.client import HubstorageClient\n+ from scrapinghub import HubstorageClient\n if self._client is None:\n user_agent = os.environ.get('SHUB_HS_USER_AGENT')\n self._client = HubstorageClient(endpoint=self.endpoint,\n", "test_patch": "diff --git a/tests/test_hsref.py b/tests/test_hsref.py\n--- a/tests/test_hsref.py\n+++ b/tests/test_hsref.py\n@@ -30,7 +30,7 @@ def hsref():\n @pytest.fixture\n def hsc_class(monkeypatch):\n hsc_class = mock.Mock()\n- monkeypatch.setattr('hubstorage.client.HubstorageClient', hsc_class)\n+ monkeypatch.setattr('scrapinghub.HubstorageClient', hsc_class)\n return hsc_class\n \n \n", "problem_statement": "", "hints_text": "", "created_at": "2016-12-05T15:52:22Z"}