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
14 changes: 4 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ci:
skip:
- pip-compile
- uv-lock
default_language_version:
python: python3.12
repos:
Expand All @@ -9,8 +9,6 @@ repos:
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: file-contents-sorter
files: ^requirements\.in$
# Specific checks and fixes for different file types
- repo: https://github.com/markdownlint/markdownlint
rev: v0.12.0
Expand Down Expand Up @@ -43,7 +41,7 @@ repos:
hooks:
- id: pyupgrade
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0
rev: v0.8.2
hooks:
- id: ruff
args:
Expand All @@ -68,10 +66,6 @@ repos:
- main
# Dependency management
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.4
rev: 0.5.6
hooks:
- id: pip-compile
args:
- requirements.in
- -o
- requirements.txt
- id: uv-lock
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

Cache Scrapy responses with Redis.

This package uses [uv](https://docs.astral.sh/uv/) for project management. To get started, ensure that **uv** is installed on your machine and updated to the `0.5.6` version. Detailed installation instructions for **uv** can be found [here](https://docs.astral.sh/uv/getting-started/installation/).

## Installation

```bash
pip install scrapy-redis-httpcache
uv add scrapy-redis-httpcache
```

## Usage
Expand All @@ -30,9 +32,9 @@ HTTPCACHE_STORAGE = "scrapy_redis_httpcache.RedisCacheStorage"
## Development

```bash
pip install -r requirements.txt
pre-commit install --install-hooks
pre-commit install --hook-type commit-msg
uv sync
uv run pre-commit install --install-hooks
uv run pre-commit install --hook-type=commit-msg
```

## Contributing
Expand Down
24 changes: 17 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "scrapy-redis-httpcache"
version = "1.1.1"
authors = [{ "name" = "Stefano Fusai", "email" = "[email protected]" }]
version = "1.2.0"
description = "Cache Scrapy responses with Redis."
readme = "README.md"
authors = [
{ name = "Stefano Fusai", email = "[email protected]" }
]
maintainers = [
{ name = "Stefano Fusai", email = "[email protected]" }
]
requires-python = ">=3.12"
dependencies = ["redis", "scrapy"]
dependencies = [
"pre-commit==4.0.1",
"redis==5.2.0",
"ruff==0.8.2",
"scrapy==2.12.0",
]

[project.urls]
Homepage = "https://github.com/stefanofusai/scrapy-redis-httpcache"
Repository = "https://github.com/stefanofusai/scrapy-redis-httpcache"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.mypy]
python_version = "3.12"
strict = true
Expand Down
4 changes: 0 additions & 4 deletions requirements.in

This file was deleted.

125 changes: 0 additions & 125 deletions requirements.txt

This file was deleted.

Loading