You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main/_sources/plugins/distributing.rst.txt
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,17 @@ like your plugin) or a package (a folder named like your plugin + ``__init.py__`
23
23
Proper packages installable via pip
24
24
-----------------------------------
25
25
26
-
You can have your users install it via ``pip`` and register it for the `entry point <http://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins>`_ ``octoprint.plugin`` via
27
-
your plugin's ``setup.py``, this way it will be found automatically by OctoPrint upon initialization of the
28
-
plugin subsystem [#f1]_.
26
+
You can have your users install it via ``pip`` and register it for the `entry point <https://packaging.python.org/en/latest/guides/creating-and-discovering-plugins/#using-package-metadata>`_ ``octoprint.plugin`` via
27
+
your plugin's ``pyproject.toml``, this way it will be found automatically by OctoPrint upon initialization of the
Copy file name to clipboardExpand all lines: main/plugins/distributing.html
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -158,11 +158,15 @@
158
158
</section>
159
159
<sectionid="proper-packages-installable-via-pip">
160
160
<spanid="sec-plugins-distribution-pip"></span><h2><aclass="toc-backref" href="#id4" role="doc-backlink">Proper packages installable via pip</a><aclass="headerlink" href="#proper-packages-installable-via-pip" title="Link to this heading"></a></h2>
161
-
<p>You can have your users install it via <codeclass="docutils literal notranslate"><spanclass="pre">pip</span></code> and register it for the <aclass="reference external" href="http://setuptools.readthedocs.io/en/latest/setuptools.html#dynamic-discovery-of-services-and-plugins">entry point</a><codeclass="docutils literal notranslate"><spanclass="pre">octoprint.plugin</span></code> via
162
-
your plugin’s <codeclass="docutils literal notranslate"><spanclass="pre">setup.py</span></code>, this way it will be found automatically by OctoPrint upon initialization of the
<p>You can have your users install it via <codeclass="docutils literal notranslate"><spanclass="pre">pip</span></code> and register it for the <aclass="reference external" href="https://packaging.python.org/en/latest/guides/creating-and-discovering-plugins/#using-package-metadata">entry point</a><codeclass="docutils literal notranslate"><spanclass="pre">octoprint.plugin</span></code> via
162
+
your plugin’s <codeclass="docutils literal notranslate"><spanclass="pre">pyproject.toml</span></code>, this way it will be found automatically by OctoPrint upon initialization of the
<p>For an example of how the directory structure and related files would look like in this case, please take a
165
-
look at the <aclass="reference external" href="https://github.com/OctoPrint/Plugin-Examples/tree/master/helloworld">helloworld example from OctoPrint’s example plugins</a>.</p>
169
+
look at one of OctoPrint’s bundled but externally maintained plugins, e.g. <aclass="reference external" href="https://github.com/OctoPrint/OctoPrint-FileCheck/">OctoPrint-FileCheck</a>.</p>
166
170
<p>This variant is highly recommended for pretty much any plugin besides the most basic ones since it also allows
167
171
requirements management and pretty much any thing else that Python’s setuptools provide to the developer.</p>
0 commit comments