plugins' templates directories are not installed #9767
-
Hi ! I try to install my own plugins inside my NetBox venv. I don't use a new venv for each plugin. My setup.py : from setuptools import find_packages, setup
setup(
name='name',
version='1',
description='desc',
install_requires=[],
packages=find_packages(),
include_package_data=True,
zip_safe=False,
) Py : v3.8.0 Anyone experience something similar ? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
I've found someone with the same question but he answered himself so I don't know if it's the best solution : |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
When I execute find_packages at the root of my plugin project, I can observ that it doesn't see the templates dir : >>> from setuptools import find_packages
>>> a = find_packages()
>>> a
['pluginname', 'pluginname.api', 'pluginname.migrations'] |
Beta Was this translation helpful? Give feedback.
-
If I install all the plugins with the editable option (the 'develop' argument) |
Beta Was this translation helpful? Give feedback.
-
I had to use the MANIFEST file just like the answer you suggested earlier. Works well for me. |
Beta Was this translation helpful? Give feedback.
I had to use the MANIFEST file just like the answer you suggested earlier. Works well for me.