Publish proper pre-release PyPI packages
The semantic versions we were using for pre-release PyPI packages wasn't quite right. We had been using local version identifiers, a la +, rather than proper pre-release tags, which means that version specifications like `pulumi==0.11.0` will match `0.11.0+dev.1521506136.g7f043fd.dirty`, in addition to just `0.11.0`. This is clearly not what we want. This change moves us over to proper alpha and release candidate versions, as specified in https://www.python.org/dev/peps/pep-0440/#pre-releases. Namely, any `x.y.z-dev-123456789-abcdef` version will get translated into an alpha `x.y.za12345679-abcdef`, and any `x.y.z-rc1` will get translated into a proper release candidate `x.y.zrc1` version number.
This commit is contained in:
parent
c50899aca3
commit
7162f6ea52
|
@ -1,6 +1,6 @@
|
|||
PROJECT_NAME := Pulumi Python SDK
|
||||
LANGHOST_PKG := github.com/pulumi/pulumi/sdk/python/cmd/pulumi-language-python
|
||||
VERSION := $(shell ../../scripts/get-version | sed "s/v//" | sed "s/-/+/" | sed "s/-/./g")
|
||||
VERSION := $(shell ../../scripts/get-version | sed "s/v//" | sed "s/-dev-/a/" | sed "s/-rc/rc/")
|
||||
|
||||
PYENV := env
|
||||
PYENVBIN := $(PYENV)/bin
|
||||
|
|
Loading…
Reference in a new issue