Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

default setting for style of version strings in setup.cfg is not compatible with PyPi  #368

Copy link
Copy link
@AaronReer

Description

@AaronReer
Issue body actions

Hi all,

I recently used versioneer for publishing my library on PyPi. However, the default setting for the version string style is style = pep440, which in my case produced version strings which were not accepted by PyPi yielding the following error:

ERROR    HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/        
         '0.0.3+0.ga7bcbda.dirty' is an invalid value for Version. Error: Can't 
         use PEP 440 local versions.

In the end changing the style parameter to style = pep440-pre solved the issue. I am now wondering if this was a special case for me or not, hence have you ever experienced this before?
If so I would suggest changing the default setting to a format which is compatible with PyPi, since this is a major database for distribution of Python libraries.

Cheers,
Aaron

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.