mottosso / bleeding-rez

Rez - Reproducible software environments for Windows, Linux and MacOS
GNU Lesser General Public License v3.0
72 stars 10 forks source link

Dynamic version #85

Open mottosso opened 5 years ago

mottosso commented 5 years ago

Goal

Reduce overhead when iterating on versions.

Motivation

When working on a small or environment-only package, I often find myself making many versions, often within the span of a minute. Most of the time is spent forgetting to increment the version, remembering that I'd like to keep it (for before/after comparisons), reverting back (manually) and re-installing a package once more.

Implementation

Facilitate a macro for a version.

name = "my_package"
version = "1.0.{latest_plus_one}"

Such that you get a new verison every time you..

rez build --install  # 1.0.0
rez build --install  # 1.0.1
rez build --install  # 1.0.2
...