-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Register entry point hooks for things like pytest/click etc. #1641
Comments
Based on the documentation, I think you can do it like this: [tool.poetry.plugins.pytest11]
cool_plugin = "pytest_cool_plugin" or [tool.poetry.plugins]
pytest11 = { cool_plugin = "pytest_cool_plugin" } Related: #1300 and #1454 (poetry to support setuptools-like "plugins" entry-points), #693 (poetry to support plugins for itself), #658 (documentation on the difference between the two). I don't know why the first two issues are not closed since plugins entry-points seem to be implemented. EDIT: #1454 is about extras in scripts and plugins sections. Not related. |
ah cheers, I'll give that a shot
…On Thu, 28 Nov 2019, 13:52 Timothée Mazzucotelli, ***@***.***> wrote:
Based on the documentation, I think you can do it like this:
[tool.poetry.plugins.pytest11]cool_plugin = "pytest_cool_plugin"
Related: #1300 <#1300> and #1454
<#1454> (poetry to support
setuptools-like "plugins" entry-points), #693
<#693> (poetry to support
plugins for itself), #658 <#658>
(documentation on the difference between the two). I don't know why the
first two issues are not closed since plugins entry-points seem to be
implemented.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1641>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABIHQFCJ4WMBI7DCSAIYSKLQV7EJJANCNFSM4JSIFTZQ>
.
|
My plugin works as expected. Thanks for the guidance. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Feature Request
I don't know if I am missing the documentation (wouldn't be my first time)
I have found the details on how to create entry_points.console_script. I'm now looking to tie into other entry points hooks (specifically pytest this time).
I am looking for the poetry equivalent of the following setup.py code.
If I am just missing something please direct me to the docs, or if this is a dupe to the tracked issue so I can follow it.
The text was updated successfully, but these errors were encountered: