-
Hello, currently experimenting packaging sphinx projects including the resulting "objects.inv" files in packages and the rest of a documentation next to my actual python libs. So to have the results of the sphinx "build/" included in my package, next to the sources. Now to my question: # toml example
[tool.poetry]
name = "my-documentation"
version = "22.2.2"
description = "Some doumentation"
authors = ["Your Name <[email protected]>"]
readme = "README.md"
packages = [
{ include = "*" },
]
I tried following the documentation on includes and excludes, but then my wheel looks like the following, resulting that on the package consuming side, the build directory is just added to my venv and not inside my package contents in a flat structure. poetry_sphinx_example-0.1.0-py3-none-any git:(main) ✗ tree
.
├── build
│ ├── _sources
│ │ └── index.rst.txt
│ ├── _static
│ │ ├── alabaster.css
│ │ ├── basic.css
│ │ ├── custom.css
│ │ ├── doctools.js
│ │ ├── documentation_options.js
│ │ ├── file.png
│ │ ├── github-banner.svg
│ │ ├── language_data.js
│ │ ├── minus.png
│ │ ├── plus.png
│ │ ├── pygments.css
│ │ ├── searchtools.js
│ │ └── sphinx_highlight.js
│ ├── genindex.html
│ ├── index.html
│ ├── objects.inv
│ ├── search.html
│ └── searchindex.js
├── poetry-sphinx-example
│ └── source
│ ├── conf.py
│ └── index.rst
└── poetry_sphinx_example-0.1.0.dist-info
├── LICENSE
├── METADATA
├── RECORD
└── WHEEL Is there any hint as to how to solve this, or even better examples? Or shall i just use another directory name? Regards! EDIT: Quickly setup a example repository with the current workaround i have: https://github.com/cpolzer/poetry-sphinx-example I have to:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In case you only want to include in your sdist, something like
might work. If I remember correctly, |
Beta Was this translation helpful? Give feedback.
On a second glance, I see your example:
Unfortunately,
to
is only supported inpackages
and not ininclude
. I think you have already found the best workaround.