Skip to content
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

entry_points.txt not generated for entry point #3793

Closed
volkerjaenisch opened this issue Mar 16, 2021 · 4 comments
Closed

entry_points.txt not generated for entry point #3793

volkerjaenisch opened this issue Mar 16, 2021 · 4 comments
Labels
area/build-system Related to PEP 517 packaging (see poetry-core) kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@volkerjaenisch
Copy link

  • [x ] I am on the latest Poetry version.
  • [x ] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x ] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

To reproduce:

$ poetry --version
Poetry version 1.1.5
$ poetry new noplugin
$ cd noplugin
$ poetry install

$ poetry shell

(noplugins-crV9IH3A-py3.7) volker@debian10:~/noplugins$ ls -al /home/volker/.cache/pypoetry/virtualenvs/noplugins-crV9IH3A-py3.7/lib/python3.7/site-packages/noplugins-0.1.0.dist-info
insgesamt 20
drwxr-xr-x  2 volker volker 4096 Mär 16 23:23 .
drwxr-xr-x 32 volker volker 4096 Mär 16 23:23 ..
-rw-r--r--  1 volker volker    6 Mär 16 23:23 INSTALLER
-rw-r--r--  1 volker volker  337 Mär 16 23:23 METADATA
-rw-r--r--  1 volker volker  658 Mär 16 23:23 RECORD

so far so good.

Then change the pyproject.toml file to

[tool.poetry]
name = "noplugin"
version = "0.1.0"
description = ""
authors = ["volker <volker.jaenisch@inqbus.de>"]

[tool.poetry.dependencies]
python = "^3.7"

[tool.poetry.dev-dependencies]
pytest = "^5.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.plugins."noplugin_group"]
no_plugin = "noplugin.nopluginlib:NoPlugin"

and did

$ poetry update
Expected behavior:
A file 'entry_points.txt' should be created in the sitepackages dir of the module

Observed behavior:
No file 'entry_points.txt' is created in the sitepackages dir of the module

I checked this on my dev system. Then to make sure that I do not have any glitches I fired up a brand new debian buster VM - same behavior.

Any help appreciated, probably I did something wrong or stupid.

Cheers,

Volker

@volkerjaenisch volkerjaenisch added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Mar 16, 2021
@jocho-here
Copy link

Have you tried matching your tool.poetry.name with your source directory you are trying to refer to? Is noplugin folder in the root of project? So if the name of the project is noplugin, noplugin/noplugin/nopluginlib should be a valid directory, I think.

@finswimmer finswimmer added the area/build-system Related to PEP 517 packaging (see poetry-core) label Dec 30, 2021
@finswimmer
Copy link
Member

The metadata of the current project is only updated on poetry install. A poetry update updates the dependencies of the project within the given ranges.

So whenever you change metadata (scripts and plugins belong to them) run poetry install afterwards.

@finswimmer finswimmer closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2022
@neersighted
Copy link
Member

Related: #6639

Copy link

github-actions bot commented Mar 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/build-system Related to PEP 517 packaging (see poetry-core) kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants