buildutil

package
v3.40.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPseudoVersion

func IsPseudoVersion(v string) bool

IsPseudoVersion reports whether v is a go modules pseudo-version. nolint: lll https://github.com/golang/go/blob/9f40f9f4d3e9e5a08cfd1df5af23a6f61d67d408/src/cmd/go/internal/modfetch/pseudo.go#L118

func PyPiVersionFromNpmVersion

func PyPiVersionFromNpmVersion(s string) (string, error)

PyPiVersionFromNpmVersion returns a PEP-440 compliant version for a given semver version. This method does not support all possible semver strings, but instead just supports versions that we generate for our node packages.

NOTE: We do not include git information in the generated version (even within the local part, which PEP440 would allow) because we publish dev packages to PyPI, which does not allow local parts. Instead, we only add a local part when the build is dirty (which has the nice side effect of preventing us from publishing a build from dirty bits).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL