Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

pyproject.toml from base cookiecutter no longer results in a successful build locally #140

@sierra-moxon

Description

@sierra-moxon

With poetry 1.8.3:

SMoxon@SMoxon-M82 src % cruft create https://github.com/linkml/linkml-project-cookiecutter
  [1/12] project_name (my-awesome-schema): test-sql
  [2/12] github_org (my-org): sierra-moxon
  [3/12] project_description (This is the project description.): none yet
  [4/12] full_name (My Name): Sierra Moxon
  [5/12] email (my-name@my-org.org): smoxon@lbl.gov
  [6/12] Select license
    1 - MIT
    2 - BSD-3
    3 - GNU GPL v3.0
    4 - Apache Software License 2.0
    Choose from [1/2/3/4] (1): 
  [7/12] main_schema_class (Person): Gene
  [8/12] Select create_python_classes
    1 - Yes
    2 - No
    Choose from [1/2] (1): 
  [9/12] Select use_schemasheets
    1 - No
    2 - Yes
    Choose from [1/2] (1): 
  [10/12] google_sheet_id (1wVoaiFg47aT9YWNeRfTZ8tYHN8s8PAuDx5i2HUcDpvQ): 
  [11/12] google_sheet_tabs (personinfo enums): 
  [12/12] github_token_for_pypi_deployment (PYPI_PASSWORD): 
** PROJECT CREATION COMPLETE **

Next steps:
cd test-sql
make setup
SMoxon@SMoxon-M82 src % 
SMoxon@SMoxon-M82 src % 
SMoxon@SMoxon-M82 src % 
SMoxon@SMoxon-M82 src % cd test-sql 
SMoxon@SMoxon-M82 test-sql % make setup
git init
Initialized empty Git repository in /Users/SMoxon/Documents/src/test-sql/.git/
poetry install
Configuration file exists at /Users/SMoxon/Library/Preferences/pypoetry, reusing this directory.

Consider moving TOML configuration files to /Users/SMoxon/Library/Application Support/pypoetry, as support for the legacy directory will be removed in an upcoming release.

The Poetry configuration is invalid:
  - The fields ['authors', 'description', 'name'] are required in package mode.
  - Additional properties are not allowed ('requires-plugins' was unexpected)
  - Additional properties are not allowed ('requires-poetry' was unexpected)

make: *** [install] Error 1
SMoxon@SMoxon-M82 test-sql % poetry --version
Configuration file exists at /Users/SMoxon/Library/Preferences/pypoetry, reusing this directory.

Consider moving TOML configuration files to /Users/SMoxon/Library/Application Support/pypoetry, as support for the legacy directory will be removed in an upcoming release.
Poetry (version 1.8.3)

with poetry-2.0:

SMoxon@SMoxon-M82 test-sql % alias poetry="poetry-2.0"
SMoxon@SMoxon-M82 test-sql % 
SMoxon@SMoxon-M82 test-sql % 
SMoxon@SMoxon-M82 test-sql % 
SMoxon@SMoxon-M82 test-sql % make setup
git init
Reinitialized existing Git repository in /Users/SMoxon/Documents/src/test-sql/.git/
poetry install
Configuration file exists at /Users/SMoxon/Library/Preferences/pypoetry, reusing this directory.

Consider moving TOML configuration files to /Users/SMoxon/Library/Application Support/pypoetry, as support for the legacy directory will be removed in an upcoming release.

The Poetry configuration is invalid:
  - The fields ['authors', 'description', 'name'] are required in package mode.
  - Additional properties are not allowed ('requires-plugins' was unexpected)
  - Additional properties are not allowed ('requires-poetry' was unexpected)

make: *** [install] Error 1
SMoxon@SMoxon-M82 test-sql % poetry check

All set!
SMoxon@SMoxon-M82 test-sql % 

with poetry 2.0, poetry install works:

SMoxon@SMoxon-M82 test-sql % poetry-2.0 install
Creating virtualenv test-sql in /Users/SMoxon/Documents/src/test-sql/.venv
Ensuring that the Poetry plugins required by the project are available...
The following Poetry plugins are required by the project but are not installed in Poetry's environment:
  - poetry-dynamic-versioning (>=1.5.2)
Installing Poetry plugins only for the current project...
Updating dependencies
Resolving dependencies... (5.6s)

Package operations: 4 installs, 0 updates, 0 removals

  - Installing markupsafe (3.0.2)
  - Installing dunamai (1.23.1)
  - Installing jinja2 (3.1.6)
  - Installing poetry-dynamic-versioning (1.8.2)

Writing lock file

Updating dependencies
Resolving dependencies... (20.6s)

Package operations: 191 installs, 0 updates, 0 removals

  - Installing attrs (25.3.0)
  - Installing rpds-py (0.24.0)
  - Installing typing-extensions (4.13.2)
  - Installing referencing (0.36.2)
  - Installing six (1.17.0)
  - Installing jsonschema-specifications (2025.4.1)
  ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions