python-poetry

Create a new version of application to publish using poetry


I have an application in Python for which maintaining versions using Poetry.

Right now when I run below command it shows the current version of app:

poetry version
ami-utility 0.1.1-alpha.0

I had already published this version to repo and have made many changes in app after that release. But now when I am running poetry build it is again creating the same version:

poetry build
Building ami-utility (0.1.1-alpha.0)
   - Building sdist
   - Built ami-utility-0.1.1-a0.tar.gz
   - Building wheel
   - Built ami-utility-0.1.1-a0-py3-none-any-whl

but now I want to create a new version . How to create and publish the new version?


Solution

  • it worked with below command

    poetry version 0.1.2
    

    and then publish again.