I have a project using Hatch as a build system for pyproject
. My pyproject.toml
looks like this:
[project]
name = "demo"
description = "Demo Project"
version = "0.0.1"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
[project.optional-dependencies]
test = [
"pytest",
"ipython",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool]
[tool.hatch.envs.default]
type = "virtual"
path = "venv"
I prefer using IPython as a REPL instead of just regular Python, since it adds a lot of features and nice-to-haves during development.
I’ve specified the dependency during the test
phase in my optional dependencies, but I can’t seem to find the egg on-disk or a way to execute it.
Is there a way for me to use IPython in a Hatch project like this without making it a project dependency? It’s only relevant during local development.
You need to sign in to view this answers
Leave feedback about this