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

poetry check does not detect missing authors property #4303

Closed
3 tasks done
pdecat opened this issue Jul 22, 2021 · 1 comment · Fixed by python-poetry/poetry-core#437
Closed
3 tasks done

poetry check does not detect missing authors property #4303

pdecat opened this issue Jul 22, 2021 · 1 comment · Fixed by python-poetry/poetry-core#437
Labels
area/cli Related to the command line kind/bug Something isn't working as expected

Comments

@pdecat
Copy link

pdecat commented Jul 22, 2021

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Ubuntu 21.04
  • Poetry version: 1.1.7
  • Link of a Gist with the contents of your pyproject.toml file: Very basic, see below

Issue

# poetry -V
Poetry version 1.1.7

# poetry init --name test --description desc -n

This command will guide you through creating your pyproject.toml config.


You can specify a package in the following forms:
  - A single name (requests)
  - A name and a constraint (requests@^2.23.0)
  - A git url (git+https://github.com/python-poetry/poetry.git)
  - A git url with a revision (git+https://github.com/python-poetry/poetry.git#develop)
  - A file path (../my-package/my-package.whl)
  - A directory (../my-package/)
  - A url (https://example.com/packages/my-package-0.1.0.tar.gz)


# sed -i /authors/d pyproject.toml

# cat pyproject.toml
[tool.poetry]
name = "test"
version = "0.1.0"
description = "desc"

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

[tool.poetry.dev-dependencies]

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

# poetry check
All set!

# poetry add dummy

  NonExistentKey

  'Key "authors" does not exist.'

  at ~/.local/pipx/venvs/poetry/lib/python3.9/site-packages/tomlkit/container.py:576 in __getitem__
      572│             key = Key(key)
      573│
      574│         idx = self._map.get(key, None)
      575│         if idx is None:
    → 576│             raise NonExistentKey(key)
      577│
      578│         if isinstance(idx, tuple):
      579│             # The item we are getting is an out of order table
      580│             # so we need a proxy to retrieve the proper objects
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/cli Related to the command line kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants