question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do we specify paste entrypoints

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Question

How can I replicate the non-script / paste entrypoints? Specifically, for a pyramid project, I’ve got:

    entry_points={
        'paste.app_factory': [
            'main = someproject:main',
        ],

Is there a way to do this in poetry?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
funkyfuturecommented, Oct 9, 2019

i wonder whether an entrypoints section in the docs for the pyproject.toml that points to the plugins and scripts sections would be helpful to avoid such confusions. i’m always looking for it in the sidebar, but have to search the whole page to find what i’m looking for.

1reaction
abncommented, Aug 18, 2019

@viraptor this is done via the plugin section.

[tool.poetry.plugins."paste.app_factory"]
main = "someproject:main"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Entry points specification - Python Packaging User Guide
Entry points are a mechanism for an installed distribution to advertise components it provides to be discovered and used by other code. For...
Read more >
Explain Python entry points? - setuptools - Stack Overflow
Entry points are useful for allowing one package do use plugins that are in another package. For instance, Ian Bicking's Paste project uses ......
Read more >
Dockerfile reference - Docker Documentation
An ENTRYPOINT allows you to configure a container that will run as an executable. ... Command line arguments to docker run <image> will...
Read more >
Python Apps the Right Way: entry points and scripts
I'm attempting to use your method here to create an entrypoint to __main__.py but my multiprocessing code is in the main() method. Is...
Read more >
Enum CopyPasteType | Apps Script - Google Developers
Property Type Description PASTE_NORMAL Enum Paste values, formulas, formats and merges. PASTE_FORMAT Enum Paste the format only. PASTE_FORMULA Enum Paste the formulas only.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found