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

make test fails: Poetry configuration is invalid: Additional properties are not allowed ('group' was unexpected) #43

Closed
cbm755 opened this issue Feb 27, 2023 · 2 comments
Milestone

Comments

@cbm755
Copy link
Collaborator

cbm755 commented Feb 27, 2023

I'm on Fedora. I did:

  • dnf install poetry (never used this before, I know its probably better, etc etc but I'm slow to adopt new things)
  • dnf install pre-commit.
  • pip install pylama

When I try make test, I get:

poetry run python3 -m unittest

  RuntimeError

  The Poetry configuration is invalid:
    - Additional properties are not allowed ('group' was unexpected)
  

  at /usr/lib/python3.11/site-packages/poetry/core/factory.py:43 in create_poetry
       39│             message = ""
       40│             for error in check_result["errors"]:
       41│                 message += "  - {}\n".format(error)
       42│ 
    →  43│             raise RuntimeError("The Poetry configuration is invalid:\n" + message)
       44│ 
       45│         # Load package
       46│         name = local_config["name"]
       47│         version = local_config["version"]
make: *** [Makefile:11: test] Error 1
@cbm755 cbm755 changed the title make test fails on main branch: The Poetry configuration is invalid make test fails: Poetry configuration is invalid: Additional properties are not allowed ('group' was unexpected) Feb 27, 2023
@cbm755
Copy link
Collaborator Author

cbm755 commented Feb 27, 2023

I uninstalled my distro-provided poetry and did pip install poetry, which got me:

$ poetry --version
Poetry (version 1.3.2)

Now make test works:

$ make test
poetry run python3 -m unittest
.....................
----------------------------------------------------------------------
Ran 21 tests in 1.979s

OK

Is is possible to declare a minimum value of poetry?

@johannesjh
Copy link
Owner

Hi, glad you got it working! By the way, the recommended way to install poetry uses their install script or pipx instead of pip because this will keep the packages needed by poetry separate from the packages of your system user.

Is it possible to declare a minimum version of poetry?

Unfortunately no, I don't think so, judging from a quick search online, see: How to enforce a minimum python poetry version and the linked ticket poetry #3316

@johannesjh johannesjh added this to the v0.2 milestone Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants