question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Version is not changed in pyproject.toml

See original GitHub issue
  • 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).

Issue

Steps to reproduce:

  1. Add source section in pyproject.toml
  2. Patch package version executing command poetry version patch

Expected behavior: version in pyproject.toml was updated. Actual behavior: version in pyproject.toml was not updated.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
sdispatercommented, Feb 28, 2020

This has been fixed in tomlkit (see https://github.com/sdispater/tomlkit/pull/68).

I will make a new release of tomlkit today along with a new release of Poetry.

0reactions
estyxxcommented, Feb 28, 2020

I think the problem is somewhere inside these lines, sometimes the version is not updated correctly in the file content (that is a tomlkit.toml_document.TOMLDocument object). But I didn’t understand why…

In my case, this is my configuration where poetry can’t update the version correctly. I have the isort configuration inside, if I remove it, the poetry is able to update correctly the version in pyproject.toml file…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Version is not changed in pyproject.toml · Issue #1696 - GitHub
I am on the latest Poetry version. I have searched the issues of this repo and believe that this is not a duplicate....
Read more >
Poetry pyproject.toml not updating after running 'poetry add ...
I have a django project, with a single virtual env by poetry. At the root of the project is a pyproject.toml and poetry.lock...
Read more >
Frequently Asked Questions - PyScaffold 4.3.1 documentation
Remove the [tool.setuptools_scm] section of pyproject.toml . ... Semantic Versioning and will not change in a backwards incompatible way between releases.
Read more >
Configuration — python-semantic-release 7.32.2 documentation
pyproject.toml file in a [tool.semantic_release] section. -D option, like so: ... Whether or not to commit changes when bumping version.
Read more >
Configuring setuptools using pyproject.toml files
pip may allow editable install only with pyproject.toml and setup.cfg . However, this behavior may not be consistent over various pip versions and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found