Skip to content

Commit

Permalink
Packaging: add example requirements file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jun 27, 2024
1 parent caac90e commit 99ac046
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 24 deletions.
22 changes: 6 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
requires = ["hatchling", "hatch-fancy-pypi-readme", "hatch-requirements-txt"]
build-backend = "hatchling.build"

[project]
name = "inky"
dynamic = ["version", "readme"]
dynamic = ["version", "readme", "optional-dependencies"]
description = "Inky pHAT Driver"
license = {file = "LICENSE"}
requires-python = ">= 3.7"
Expand Down Expand Up @@ -42,19 +42,8 @@ dependencies = [
"gpiodevice>=0.0.3"
]

[project.optional-dependencies]
example-depends = [
"pillow",
"requests",
"geocoder",
"beautifulsoup4",
"font-fredoka-one",
"font-source-serif-pro",
"font-hanken-grotesk",
"font-intuitive"
]
rpi-gpio-output = ['RPi.GPIO']
rpi = ['RPi.GPIO']
[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies]
example-depends = ["requirements-examples.txt"]

[project.urls]
GitHub = "https://www.github.com/pimoroni/inky"
Expand All @@ -68,7 +57,8 @@ include = [
"inky",
"README.md",
"CHANGELOG.md",
"LICENSE"
"LICENSE",
"requirements-examples.txt"
]

[tool.hatch.build.targets.sdist]
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ isort
twine
hatch
hatch-fancy-pypi-readme
hatch-requirements-txt
tox
pdoc
12 changes: 12 additions & 0 deletions requirements-examples.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pillow
requests
beautifulsoup4
fonts
font-source-sans-pro
font-source-serif-pro
font-fredoka-one
font-hanken-grotesk
font-intuitive
geocoder
seaborn
wikiquotes
9 changes: 1 addition & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,5 @@ commands =
ruff check .
codespell .
deps =
check-manifest
ruff
codespell
isort
twine
build
hatch
hatch-fancy-pypi-readme
-r{toxinidir}/requirements-dev.txt

0 comments on commit 99ac046

Please sign in to comment.