-
In E.g. like this:
Is something similar possible with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @maxnoe, the short answer is that currently this is not possible. TOML does not offer any special syntax for that and the specs about Things/hacks that you can do right now to achieve the expected results:
|
Beta Was this translation helpful? Give feedback.
-
@abravalheri I think I found a good solution, it seems it is possible (though I am not sure this is specified somewhere or just an accident) to depend on the package itself in [build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "test_self_dep"
version = "0.1.0"
dependencies = [
"requests",
]
[tool.setuptools.packages.find]
where = ["src"]
[project.optional-dependencies]
docs = [
"sphinx",
]
tests = [
"pytest",
]
all = [
"test_self_dep[docs,tests]"
] If that is indeed intentional, might we add this example to the docs? |
Beta Was this translation helpful? Give feedback.
@abravalheri I think I found a good solution, it seems it is possible (though I am not sure this is specified somewhere or just an accident) to depend on the package itself in
pyproject.toml
like this:If that is indeed intentional, might we add this example to the docs?