Skip to content

Commit

Permalink
Drop python 3.7 support (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
bulatbulat48 committed Aug 29, 2023
1 parent f8c39ef commit fe05a20
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: "3.7"
- python-version: "3.8"
toxenv: "min"
- python-version: "3.7"
- python-version: "3.8"
toxenv: "pinned-scrapy-2x7"
- python-version: "3.7"
- python-version: "3.8"
toxenv: "pinned-scrapy-2x8"
- python-version: "3.7"
- python-version: "3.8"
toxenv: "asyncio-min"
- python-version: "3.8"
- python-version: "3.9"
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Installation
pip install scrapy-poet
Requires **Python 3.7+** and **Scrapy >= 2.6.0**.
Requires **Python 3.8+** and **Scrapy >= 2.6.0**.

Usage in a Scrapy Project
=========================
Expand Down
2 changes: 1 addition & 1 deletion docs/intro/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Installation
Installing scrapy-poet
======================

``scrapy-poet`` is a Scrapy extension that runs on Python 3.7 and above.
``scrapy-poet`` is a Scrapy extension that runs on Python 3.8 and above.

If you’re already familiar with installation of Python packages, you can install
``scrapy-poet`` and its dependencies from PyPI with:
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"Operating System :: OS Independent",
"Framework :: Scrapy",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ class OtherEurDollarRate(Injectable):

@attr.s(auto_attribs=True)
class PricePO(ItemPage, ResponseShortcutsMixin):
response: Html
response: Html # type: ignore[assignment]

def to_item(self):
return dict(price=float(self.css(".price::text").get()), currency="€")
Expand Down
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[tox]
envlist = min,py37,py38,py39,py310,py311,asyncio,asyncio-min,mypy,docs
envlist = min,py38,py39,py310,py311,asyncio,asyncio-min,mypy,docs

[testenv]
deps =
pytest
pytest-cov
pytest-twisted
Twisted<=22.10.0

commands =
py.test \
Expand All @@ -24,7 +25,7 @@ deps =
web-poet==0.7.0

[testenv:min]
basepython = python3.7
basepython = python3.8
deps =
{[pinned]deps}
scrapy==2.6.0
Expand All @@ -38,15 +39,15 @@ deps =
# Before ``scrapy.http.request.NO_CALLBACK`` was introduced.
# See: https://github.com/scrapinghub/scrapy-poet/issues/48
[testenv:pinned-scrapy-2x7]
basepython=python3.7
basepython=python3.8
deps =
{[pinned]deps}
scrapy==2.7.0

# After ``scrapy.http.request.NO_CALLBACK`` was introduced.
# See: https://github.com/scrapinghub/scrapy-poet/issues/118
[testenv:pinned-scrapy-2x8]
basepython=python3.7
basepython=python3.8
deps =
{[pinned]deps}
scrapy==2.8.0
Expand All @@ -60,7 +61,7 @@ deps =
{[pinned]deps}

[testenv:asyncio-min]
basepython = python3.7
basepython = python3.8
setenv =
{[testenv:asyncio]setenv}
commands =
Expand Down

0 comments on commit fe05a20

Please sign in to comment.