Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: "3.8"
env:
TOXENV: "msgpack"
- python-version: "3.8"
env:
TOXENV: "json"
- python-version: "3.9"
env:
TOXENV: "msgpack"
Expand All @@ -43,14 +37,21 @@ jobs:
- python-version: "3.12"
env:
TOXENV: "json"

- python-version: "pypy3.10-v7.3.13"
- python-version: "3.13"
env:
TOXENV: "msgpack"
- python-version: "pypy3.10-v7.3.13"
- python-version: "3.13"
env:
TOXENV: "json"

# https://github.com/kevin1024/vcrpy/issues/885
# - python-version: "pypy3.11-v7.3.20"
# env:
# TOXENV: "msgpack"
# - python-version: "pypy3.11-v7.3.20"
# env:
# TOXENV: "json"

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ docs/_build
pytestdebug.log
.idea
coverage.xml
.python-version
9 changes: 2 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,8 @@ Client interface for Scrapinghub API
.. image:: https://codecov.io/gh/scrapinghub/python-scrapinghub/branch/master/graph/badge.svg
:target: https://app.codecov.io/gh/scrapinghub/python-scrapinghub

The ``scrapinghub`` is a Python library for communicating with the `Scrapinghub API`_.


Requirements
============

* Python 2.7 or Python 3.5+
The ``scrapinghub`` is a Python 3.9+ library for communicating with the
`Scrapinghub API`_.


Installation
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Quickstart
Requirements
------------

* Python 2.7 or above
* Python 3.8+


Installation
Expand Down
3 changes: 0 additions & 3 deletions requirements-base.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements-docs.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements-pypy.txt

This file was deleted.

5 changes: 0 additions & 5 deletions requirements-test.txt

This file was deleted.

2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@
package_data={'scrapinghub': ['VERSION']},
install_requires=['requests>=1.0', 'retrying>=1.3.3', 'six>=1.10.0'],
extras_require={'msgpack': mpack_required},
python_requires='>=3.8',
python_requires='>=3.9',
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP',
Expand Down
2 changes: 2 additions & 0 deletions tests/requirements-msgpack.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
msgpack>=1.0.0; implementation_name != 'pypy'
msgpack-pypy>=0.0.2; implementation_name == 'pypy'
5 changes: 5 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mock
vcrpy
pytest
pytest-cov
responses
9 changes: 4 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
# and then run "tox" from this directory.

[tox]
envlist = py{py3,38,39,310,311,312}-{json,msgpack}
# pypy3 excluded due to https://github.com/kevin1024/vcrpy/issues/885
envlist = py{39,310,311,312}-{json,msgpack}

[testenv]
deps =
-r{toxinidir}/requirements-base.txt
-r{toxinidir}/requirements-test.txt
msgpack: -r{toxinidir}/requirements.txt
pypy-msgpack: -r{toxinidir}/requirements-pypy.txt
-r tests/requirements.txt
msgpack: -r tests/requirements-msgpack.txt
commands = py.test --cov=scrapinghub --cov-report=xml {posargs: scrapinghub tests}

[testenv:docs]
Expand Down