-
Notifications
You must be signed in to change notification settings - Fork 60
Drop versions earlier than Python 3.7 and update requirements #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
651b9b8
62440db
e990e8f
9e50b71
b11f458
de996f6
e0c6d67
c8d130e
b6d527d
52ab061
fa3005a
41c45be
690a86e
32bc649
9a5e8cb
739d12f
8102f69
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
[bumpversion] | ||
current_version = 2.3.1 | ||
current_version = 3.0.0 | ||
commit = True | ||
tag = True | ||
tag_name = {new_version} | ||
|
||
[bumpversion:file:scrapinghub/VERSION] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
[pytest] | ||
addopts = --doctest-glob='scrapinghub/*.py' | ||
addopts = | ||
--doctest-glob='scrapinghub/*.py' | ||
--ignore=tests/client/test_items.py | ||
--ignore=tests/client/test_job.py | ||
--ignore=tests/client/test_logs.py | ||
--ignore=tests/client/test_requests.py | ||
--ignore=tests/client/test_samples.py | ||
--ignore=tests/client/test_spiders.py | ||
--ignore=tests/hubstorage/test_retry.py | ||
apalala marked this conversation as resolved.
Show resolved
Hide resolved
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-r requirements.txt | ||
sphinx>=1.5.3 | ||
sphinx_rtd_theme>=0.2.4 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,57 @@ | ||
-r requirements.txt | ||
# | ||
# This file is autogenerated by pip-compile with python 3.10 | ||
# To update, run: | ||
# | ||
# pip-compile requirements-docs.in | ||
# | ||
alabaster==0.7.12 | ||
# via sphinx | ||
babel==2.9.1 | ||
# via sphinx | ||
certifi==2021.5.30 | ||
# via | ||
# -r requirements.txt | ||
# requests | ||
charset-normalizer==2.0.4 | ||
# via | ||
# -r requirements.txt | ||
# requests | ||
docutils==0.17.1 | ||
# via sphinx | ||
idna==3.2 | ||
# via | ||
# -r requirements.txt | ||
# requests | ||
imagesize==1.2.0 | ||
# via sphinx | ||
jinja2==3.0.2 | ||
# via sphinx | ||
markupsafe==2.0.1 | ||
# via jinja2 | ||
msgpack==1.0.2 | ||
# via -r requirements.txt | ||
pygments==2.10.0 | ||
# via sphinx | ||
pytz==2021.3 | ||
# via babel | ||
requests==2.26.0 | ||
# via | ||
# -r requirements.txt | ||
# sphinx | ||
retrying==1.3.3 | ||
# via -r requirements.txt | ||
six==1.16.0 | ||
# via | ||
# -r requirements.txt | ||
# retrying | ||
# sphinx | ||
snowballstemmer==2.1.0 | ||
# via sphinx | ||
sphinx==1.5.3 | ||
sphinx_rtd_theme==0.2.4 | ||
# via -r requirements-docs.in | ||
sphinx-rtd-theme==0.2.4 | ||
# via -r requirements-docs.in | ||
urllib3==1.26.6 | ||
# via | ||
# -r requirements.txt | ||
# requests |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-r requirements.txt | ||
mock>=4.0.3 | ||
vcrpy>=4.1.1 | ||
pytest==6.2.5 | ||
pytest-cov>=3.0.0 | ||
responses>=0.14.0 | ||
tox>=3.24.4 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,100 @@ | ||
mock | ||
vcrpy==1.10.3 | ||
# FIXME remove the constraint after resolving | ||
# https://github.com/pytest-dev/pytest/issues/2966 | ||
pytest<3.3.0 | ||
pytest-cov<2.6.0 | ||
pytest-catchlog | ||
responses==0.10.6 | ||
# | ||
# This file is autogenerated by pip-compile with python 3.10 | ||
# To update, run: | ||
# | ||
# pip-compile requirements-test.in | ||
# | ||
attrs==21.2.0 | ||
# via pytest | ||
backports.entry-points-selectable==1.1.0 | ||
# via virtualenv | ||
certifi==2021.5.30 | ||
# via | ||
# -r requirements.txt | ||
# requests | ||
charset-normalizer==2.0.4 | ||
# via | ||
# -r requirements.txt | ||
# requests | ||
coverage[toml]==6.0.2 | ||
# via pytest-cov | ||
distlib==0.3.3 | ||
# via virtualenv | ||
filelock==3.3.1 | ||
# via | ||
# tox | ||
# virtualenv | ||
idna==3.2 | ||
# via | ||
# -r requirements.txt | ||
# requests | ||
# yarl | ||
iniconfig==1.1.1 | ||
# via pytest | ||
mock==4.0.3 | ||
# via -r requirements-test.in | ||
msgpack==1.0.2 | ||
# via -r requirements.txt | ||
multidict==5.2.0 | ||
# via yarl | ||
packaging==21.0 | ||
# via | ||
# pytest | ||
# tox | ||
platformdirs==2.4.0 | ||
# via virtualenv | ||
pluggy==1.0.0 | ||
# via | ||
# pytest | ||
# tox | ||
py==1.10.0 | ||
# via | ||
# pytest | ||
# tox | ||
pyparsing==2.4.7 | ||
# via packaging | ||
pytest==6.2.5 | ||
# via | ||
# -r requirements-test.in | ||
# pytest-cov | ||
pytest-cov==3.0.0 | ||
# via -r requirements-test.in | ||
pyyaml==6.0 | ||
# via vcrpy | ||
requests==2.26.0 | ||
# via | ||
# -r requirements.txt | ||
# responses | ||
responses==0.14.0 | ||
# via -r requirements-test.in | ||
retrying==1.3.3 | ||
# via -r requirements.txt | ||
six==1.16.0 | ||
# via | ||
# -r requirements.txt | ||
# responses | ||
# retrying | ||
# tox | ||
# vcrpy | ||
# virtualenv | ||
toml==0.10.2 | ||
# via | ||
# pytest | ||
# tox | ||
tomli==1.2.1 | ||
# via coverage | ||
tox==3.24.4 | ||
# via -r requirements-test.in | ||
urllib3==1.26.6 | ||
# via | ||
# -r requirements.txt | ||
# requests | ||
# responses | ||
vcrpy==4.1.1 | ||
# via -r requirements-test.in | ||
virtualenv==20.9.0 | ||
# via tox | ||
wrapt==1.13.2 | ||
# via vcrpy | ||
yarl==1.7.0 | ||
# via vcrpy |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
-r requirements-base.txt | ||
msgpack>=1.0.0 | ||
# | ||
# This file is autogenerated by pip-compile with python 3.10 | ||
# To update, run: | ||
# | ||
# pip-compile setup.py | ||
# | ||
certifi==2021.5.30 | ||
# via requests | ||
charset-normalizer==2.0.4 | ||
# via requests | ||
idna==3.2 | ||
# via requests | ||
msgpack==1.0.2 | ||
# via scrapinghub (setup.py) | ||
requests==2.26.0 | ||
# via scrapinghub (setup.py) | ||
retrying==1.3.3 | ||
# via scrapinghub (setup.py) | ||
six==1.16.0 | ||
# via | ||
# retrying | ||
# scrapinghub (setup.py) | ||
urllib3==1.26.6 | ||
# via requests | ||
apalala marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.3.1 | ||
3.0.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
from __future__ import absolute_import | ||
import collections | ||
import collections.abc | ||
|
||
from six import string_types | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we remove this as part of this pull request, or will we handle the post-Python-2 cleanup separately? |
||
|
||
|
@@ -130,9 +131,9 @@ class Collection(object): | |
>>> for elem in foo_store.iter(count=1)): | ||
... print(elem) | ||
[{'_key': '002d050ee3ff6192dcbecc4e4b4457d7', 'value': '1447221694537'}] | ||
|
||
- get generator over item keys:: | ||
|
||
>>> keys = foo_store.iter(nodata=True, meta=["_key"])) | ||
>>> next(keys) | ||
{'_key': '002d050ee3ff6192dcbecc4e4b4457d7'} | ||
|
@@ -185,7 +186,7 @@ def delete(self, keys): | |
The method returns ``None`` (original method returns an empty generator). | ||
""" | ||
if (not isinstance(keys, string_types) and | ||
not isinstance(keys, collections.Iterable)): | ||
not isinstance(keys, collections.abc.Iterable)): | ||
raise ValueError("You should provide string key or iterable " | ||
"object providing string keys") | ||
self._origin.delete(keys) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -177,6 +177,7 @@ def test_summary_countstart(hsproject): | |
[o['key'] for o in s2['summary'][-6:-3]]) | ||
|
||
|
||
@pytest.mark.skip(reason='Servers not running') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you elaborate? What do we need to do to get these tests working? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To run those tests we need a devbox. Kumo has one or more of those, so they can help with the testing (access to an internal dev machine?) when the time is right. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that having tests that require a live box means that we couldn't run the tests in Github actions. |
||
def test_summaries_and_state_changes(hsproject, hsspiderid): | ||
jobq = hsproject.jobq | ||
j1 = jobq.push(TEST_SPIDER_NAME) | ||
|
@@ -269,6 +270,7 @@ def test_list_with_startts_endts(hsproject): | |
assert _keys(jobs) == _keys([j3, j2]) | ||
|
||
|
||
@pytest.mark.skip(reason='Servers not running') | ||
def test_spider_updates(hsproject, hsspiderid): | ||
jobq = hsproject.jobq | ||
spiderkey = '%s/%s' % (TEST_PROJECT_ID, hsspiderid) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to keep version bumping out of pull requests. The
version2bump
command already handles this change, and also tags the release, so to useversion2bump
the person handling the next release would actually need to undo this change locally before running the command, otherwiseversin2bump major
would set the version to 4.0.0 instead of 3.0.0.