Skip to content

Commit

Permalink
Make optional deps really optional (#1738)
Browse files Browse the repository at this point in the history
This assigns groups to netifaces and android_backup dependencies so that
they shouldn't be required for building the package (e.g. by installing
the git checkout using pip). `PKG-INFO` looks now like this for these deps:
```
Requires-Dist: android_backup (>=0,<1); extra == "backup_extraction"
Requires-Dist: netifaces (>=0,<1); extra == "updater"
```
  • Loading branch information
rytilahti committed Feb 16, 2023
1 parent bc79c26 commit c8a3f4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ PyYAML = ">=5,<7"

[tool.poetry.extras]
docs = ["sphinx", "sphinx_click", "sphinxcontrib-apidoc", "sphinx_rtd_theme", "myst-parser"]
updater = ["netifaces"]
backup_extract = ["android_backup"]

[tool.poetry.dev-dependencies]
pytest = ">=6.2.5"
Expand Down

0 comments on commit c8a3f4b

Please sign in to comment.