Skip to content

README should mention that PyPI doesn't accept local version identifiers #322

@webknjaz

Description

@webknjaz

And maybe suggest some workarounds for that.

Currently I came up with:

  1. Setting env var with no local identifier
    python -c 'import setuptools_scm; print(setuptools_scm.get_version(local_scheme=lambda v: ""))' | read SETUPTOOLS_SCM_PRETEND_VERSION
    which is scary because of setuptools_scm should support custom per-project SETUPTOOLS_SCM_PRETEND_VERSION var #321
  2. substituting setuptools_scm.local_scheme entrypoint with lambda v: ""

Which should probably be done only when uploading the dist because in all other cases it's still nice to have local identifier.

Ref: pypa/twine#430
Ref: pypa/packaging.python.org#578

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions