Skip to content

docs: fix Linux deps and improve contribution setup instructions#291

Open
its-me-maady wants to merge 1 commit intoopenzim:mainfrom
its-me-maady:fix/readme-setup-and-dependencies
Open

docs: fix Linux deps and improve contribution setup instructions#291
its-me-maady wants to merge 1 commit intoopenzim:mainfrom
its-me-maady:fix/readme-setup-and-dependencies

Conversation

@its-me-maady
Copy link
Copy Markdown

  • 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

- 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 openzim#152, Closes openzim#153
Copy link
Copy Markdown
Collaborator

@benoit74 benoit74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@its-me-maady I want this PR to fix once (and hopefully for all) the list of dependencies.

With your changes, we still have inconsistent things between the list and instructions for macOS, Linux and Alpine.

We need to ensure this is well understood, documented, or fixed.

I also feel like explaining how to install Pillow is beyond the scope of what we can reasonably maintain, so I would prefer we simply consider most users will do the basic install, and then redirect anyone needing to build from source to go to Pillow documentation.

I also like the way Pillow describe which optional dependencies are required for some features: Optionally, install [defusedxml](https://pypi.org/project/defusedxml/) for Pillow to read XMP data, and [olefile](https://pypi.org/project/olefile/) for Pillow to read FPX and MIC images. I think we should strive to have the same kind of wording since dependencies are needed only for few scraperlib features (e.g. wget is used only in few functions).


## Linux

## Linux
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a duplicate section?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Contribution instructions in README.md need work obsolete libjpeg8-dev package referenced in README.md

2 participants