You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: fix Linux deps and improve contribution setup instructions
- Replace obsolete libjpeg8-dev with libjpeg-dev (virtual metapackage,
works on both Debian and Ubuntu); clarify that -dev headers are only
needed when building Pillow from source, not for normal development
- Rewrite contribution setup to use `hatch shell` (consistent with other
openZIM repos like ted, warc2zim, youtube); clarify that all commands
must be run from the local clone root; add note on what pre-commit install does
Closes#152, Closes#153
Copy file name to clipboardExpand all lines: README.md
+33-16Lines changed: 33 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,33 +33,32 @@ See documentation at [Read the Docs](https://python-scraperlib.readthedocs.io/)
33
33
34
34
# Dependencies
35
35
36
-
- libmagic
37
-
- wget
38
-
- libzim (auto-installed, not available on Windows)
39
-
- Pillow
40
-
- FFmpeg
41
-
- gifsicle (>=1.92)
42
-
- libcairo (if you use the image manipulation, this is used for svg conversion)
36
+
Most dependencies are installed automatically via PyPI. The following system packages may be required depending on which features you use:
37
+
38
+
-**libmagic** — required for file type detection (used in most scrapers)
39
+
-**wget** — required only for `zimscraperlib.download` functions
40
+
-**FFmpeg** — required only for video processing functions
41
+
-**gifsicle** (>=1.92) — required only for GIF optimization
42
+
-**libcairo** — required only for SVG-to-PNG conversion
43
+
-**libzim** — auto-installed via PyPI, not available on Windows
44
+
-**Pillow** — auto-installed via PyPI; pre-built wheels are used by default and no system image libraries are needed. Only if you need to build Pillow from source should you install additional system libraries — see [Pillow's build documentation](https://pillow.readthedocs.io/en/latest/installation/building-from-source.html) for details.
@@ -68,11 +67,29 @@ This project adheres to openZIM's [Contribution Guidelines](https://github.com/o
68
67
69
68
This project has implemented openZIM's [Python bootstrap, conventions and policies](https://github.com/openzim/_python-bootstrap/docs/Policy.md)**v1.0.2**.
70
69
70
+
All instructions below must be run from the root of your local clone of this repository.
71
+
72
+
If you do not already have it on your system, install [hatch](https://hatch.pypa.io/latest/install/):
73
+
71
74
```shell
72
75
pip install hatch
73
-
pip install ".[dev]"
76
+
```
77
+
78
+
Start a hatch shell — this will install all dependencies including dev in an isolated virtual environment:
79
+
80
+
```shell
81
+
hatch shell
82
+
```
83
+
84
+
Set up the pre-commit Git hook (runs linters automatically before each commit):
0 commit comments