How to install package from git repository with non python file(e.g jinja2 template files) #9411
Replies: 4 comments 1 reply
-
If the file is in the wheel at |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I have confirmed that installing from the wheel file by copying the |
Beta Was this translation helpful? Give feedback.
-
I've found my library project missing the [build-system] section. [build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api" I've confirmed that my template directory is inside site-packages. |
Beta Was this translation helpful? Give feedback.
-
Hello!
I am using Poetry to manage dependencies in my project and I'm trying to include a Jinja2 template file from a private repository. Despite configuring my
pyproject.toml
and confirming the inclusion of the template file in the build, I'm encountering an issue where the template cannot be found when the package is installed.Here's how I have set up my
pyproject.toml
:I have confirmed that the
bar.jinja2
file is indeed included in the local build usingpoetry build
. However, after installing the package in another project with the following dependency specification:Jinja2 raises a "template not found" error, and I cannot find the
template
directory in the path.venv/lib/python3.12/site-packages/my_utils_py
.Could anyone advise on how to properly include a template file in a package managed by Poetry? Thank you in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions