Skip to content

copier update does not update pyproject.toml  #650

Closed

Description

@lyashevska

Checklist before submitting a bug report

  • I have checked the existing issues and couldn't find an issue about this bug.

Bug details

Describe the bug

I create a minimum version of package, which I then update with 'copier update' and make some changes (e.g. version, email). Because pyproject.toml is listed under _skip_if_exists it is rightfully skipped. As a result, those values are not updated. I do not think this is a desired behaviour.

- "pyproject.toml"

To Reproduce

Steps to reproduce the behavior:

  1. install copier using '...'
  2. run copier copy ...
  3. Select Minimum profile
  4. Run 'copier update'
  5. Change version, email
  6. Observe pyproject.toml file

Error Message

pyproject.toml is not updated after 'copier update'

Expected behavior

We want to update it. I am not aware of other reasons why it should be under _skip_if_exist

Desktop (please complete the following information):

  • Template profile
    • recommended
    • minimum
    • let me choose

Activity

  1. lyashevska commented on Aug 30, 2024

    @lyashevska
    CollaboratorAuthor

    Btw same applies to CITATION.cff and LICENCE. If user changes those, they wont't change.

  2. fdiblen commented on Aug 30, 2024

    @fdiblen
    Member

    this is expected because we skip these files in

    _skip_if_exists:

    Do you suggest updating the settings?

  3. lyashevska commented on Aug 30, 2024

    @lyashevska
    CollaboratorAuthor

    Yes, I suggest removing it from there. It was expected, but undesired. Unless there is another reason to keep it?

  4. self-assigned this
    on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions