Skip to content

Build artifacts omit period from .dev segment (1.2.0b1) #5534

Description

@mtkennerly
  • 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).
  • OS version and name: Windows 11
  • Poetry version: 1.2.0b1
  • pyproject.toml (just change the version to 1.11.1.dev1)

Issue

On 1.1.13, when the project version contains .devN, the build artifacts correctly contain a dot before dev:

$ grep -m 1 'version =' pyproject.toml
version = "1.11.1.dev1"

$ pip list | grep poetry
poetry                            1.1.13
poetry-core                       1.0.8

$ poetry version --short
1.11.1.dev1

$ poetry build
Building dunamai (1.11.1.dev1)
  - Building sdist
  - Built dunamai-1.11.1.dev1.tar.gz
  - Building wheel
  - Built dunamai-1.11.1.dev1-py3-none-any.whl

However, on 1.2.0b1, the dot is omitted, which violates PEP 440:

$ pip list | grep poetry
poetry                            1.2.0b1
poetry-core                       1.1.0a7

$ poetry version --short
1.11.1.dev1

$ poetry build
Building dunamai (1.11.1.dev1)
  - Building sdist
  - Built dunamai-1.11.1dev1.tar.gz
  - Building wheel
  - Built dunamai-1.11.1dev1-py3-none-any.whl

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions