Release 0.18.2 (#1300)

This commit is contained in:
Wolf Vollprecht 2021-11-24 16:50:24 +01:00 committed by GitHub
parent ebeed01960
commit 6aa8448bd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 76 additions and 44 deletions

View File

@ -1,3 +1,14 @@
2021.11.24
==========
Releases: libmamba 0.18.2, libmambapy 0.18.2, mamba 0.18.2, micromamba 0.18.2
Bug fixes
- [mamba, libmamba] Fix use of a read-only cache (@adriendelsalle) #1294
- [mamba, libmamba] Fix dangling LockFiles (@adriendelsalle) #1290
- [micromamba] Fix CMake config for micromamba fully statically linked on Windows (@adriendelsalle) #1297
- [micromamba, libmamba] Fix shell activation regression (@adriendelsalle) #1289
2021.11.19 2021.11.19
========== ==========

View File

@ -1,3 +1,12 @@
libmamba 0.18.2 (November 24, 2021)
===================================
Bug fixes
- Fix use of a read-only cache (@adriendelsalle) #1294
- Fix dangling LockFiles (@adriendelsalle) #1290
- Fix shell activation regression (@adriendelsalle) #1289
0.18.1 (November 19, 2021) 0.18.1 (November 19, 2021)
========================== ==========================

View File

@ -12,16 +12,22 @@
#define LIBMAMBA_VERSION_MAJOR 0 #define LIBMAMBA_VERSION_MAJOR 0
#define LIBMAMBA_VERSION_MINOR 18 #define LIBMAMBA_VERSION_MINOR 18
#define LIBMAMBA_VERSION_PATCH 1 #define LIBMAMBA_VERSION_PATCH 2
// Binary version // Binary version
#define LIBMAMBA_BINARY_CURRENT 1 #define LIBMAMBA_BINARY_CURRENT 1
#define LIBMAMBA_BINARY_REVISION 0 #define LIBMAMBA_BINARY_REVISION 0
#define LIBMAMBA_BINARY_AGE 0 #define LIBMAMBA_BINARY_AGE 0
#define __LIBMAMBA_STRINGIZE_IMPL(s) #s
#define __LIBMAMBA_STRINGIZE(s) __LIBMAMBA_STRINGIZE_IMPL(s)
#define LIBMAMBA_VERSION \ #define LIBMAMBA_VERSION \
(LIBMAMBA_VERSION_MAJOR * 10000 + LIBMAMBA_VERSION_MINOR * 100 + LIBMAMBA_VERSION_PATCH) (LIBMAMBA_VERSION_MAJOR * 10000 + LIBMAMBA_VERSION_MINOR * 100 + LIBMAMBA_VERSION_PATCH)
#define LIBMAMBA_VERSION_STRING "0.18.1" #define LIBMAMBA_VERSION_STRING \
__LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_MAJOR) \
"." __LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_MINOR) "." __LIBMAMBA_STRINGIZE( \
LIBMAMBA_VERSION_PATCH)
namespace mamba namespace mamba
{ {

View File

@ -10,9 +10,9 @@
#include <array> #include <array>
#include <string> #include <string>
#define LIBMAMBA_VERSION_MAJOR 0 #define LIBMAMBA_VERSION_MAJOR {{ version_major }}
#define LIBMAMBA_VERSION_MINOR 19 #define LIBMAMBA_VERSION_MINOR {{ version_minor }}
#define LIBMAMBA_VERSION_PATCH 0 #define LIBMAMBA_VERSION_PATCH {{ version_patch }}
// Binary version // Binary version
#define LIBMAMBA_BINARY_CURRENT 1 #define LIBMAMBA_BINARY_CURRENT 1
@ -20,13 +20,14 @@
#define LIBMAMBA_BINARY_AGE 0 #define LIBMAMBA_BINARY_AGE 0
#define __LIBMAMBA_STRINGIZE_IMPL(s) #s #define __LIBMAMBA_STRINGIZE_IMPL(s) #s
#define __LIBMAMBA_STRINGIZE(s) STRINGIZE_IMPL(s) #define __LIBMAMBA_STRINGIZE(s) __LIBMAMBA_STRINGIZE_IMPL(s)
#define LIBMAMBA_VERSION \ #define LIBMAMBA_VERSION \
(LIBMAMBA_VERSION_MAJOR * 10000 + LIBMAMBA_VERSION_MINOR * 100 + LIBMAMBA_VERSION_PATCH) (LIBMAMBA_VERSION_MAJOR * 10000 + LIBMAMBA_VERSION_MINOR * 100 + LIBMAMBA_VERSION_PATCH)
#define LIBMAMBA_VERSION_STRING __LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_MAJOR) "." \ #define LIBMAMBA_VERSION_STRING \
__LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_MINOR) "." \ __LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_MAJOR) \
__LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_PATCH) "." __LIBMAMBA_STRINGIZE(LIBMAMBA_VERSION_MINOR) "." __LIBMAMBA_STRINGIZE( \
LIBMAMBA_VERSION_PATCH)
namespace mamba namespace mamba
{ {

View File

@ -1,3 +1,7 @@
libmambapy 0.18.2 (November 24, 2021)
=====================================
0.18.1 (November 19, 2021) 0.18.1 (November 19, 2021)
========================== ==========================

View File

@ -1,2 +1,2 @@
version_info = (0, 18, 1) version_info = (0, 18, 2)
__version__ = ".".join(map(str, version_info)) __version__ = ".".join(map(str, version_info))

View File

@ -1,3 +1,11 @@
mamba 0.18.2 (November 24, 2021)
================================
Bug fixes
- Fix use of a read-only cache (@adriendelsalle) #1294
- Fix dangling LockFiles (@adriendelsalle) #1290
0.18.1 (November 19, 2021) 0.18.1 (November 19, 2021)
========================== ==========================

View File

@ -1,2 +1,2 @@
version_info = (0, 18, 1) version_info = (0, 18, 2)
__version__ = ".".join(map(str, version_info)) __version__ = ".".join(map(str, version_info))

View File

@ -1,3 +1,11 @@
micromamba 0.18.2 (November 24, 2021)
=====================================
Bug fixes
- Fix CMake config for micromamba fully statically linked on Windows (@adriendelsalle) #1297
- Fix shell activation regression (@adriendelsalle) #1289
0.18.1 (November 19, 2021) 0.18.1 (November 19, 2021)
========================== ==========================

View File

@ -12,16 +12,21 @@
#define UMAMBA_VERSION_MAJOR 0 #define UMAMBA_VERSION_MAJOR 0
#define UMAMBA_VERSION_MINOR 18 #define UMAMBA_VERSION_MINOR 18
#define UMAMBA_VERSION_PATCH 1 #define UMAMBA_VERSION_PATCH 2
// Binary version // Binary version
#define UMAMBA_BINARY_CURRENT 1 #define UMAMBA_BINARY_CURRENT 1
#define UMAMBA_BINARY_REVISION 0 #define UMAMBA_BINARY_REVISION 0
#define UMAMBA_BINARY_AGE 0 #define UMAMBA_BINARY_AGE 0
#define __UMAMBA_STRINGIZE_IMPL(s) #s
#define __UMAMBA_STRINGIZE(s) __UMAMBA_STRINGIZE_IMPL(s)
#define UMAMBA_VERSION \ #define UMAMBA_VERSION \
(UMAMBA_VERSION_MAJOR * 10000 + UMAMBA_VERSION_MINOR * 100 + UMAMBA_VERSION_PATCH) (UMAMBA_VERSION_MAJOR * 10000 + UMAMBA_VERSION_MINOR * 100 + UMAMBA_VERSION_PATCH)
#define UMAMBA_VERSION_STRING "0.18.1" #define UMAMBA_VERSION_STRING \
__UMAMBA_STRINGIZE(UMAMBA_VERSION_MAJOR) \
"." __UMAMBA_STRINGIZE(UMAMBA_VERSION_MINOR) "." __UMAMBA_STRINGIZE(UMAMBA_VERSION_PATCH)
namespace umamba namespace umamba
{ {

View File

@ -20,13 +20,13 @@
#define UMAMBA_BINARY_AGE 0 #define UMAMBA_BINARY_AGE 0
#define __UMAMBA_STRINGIZE_IMPL(s) #s #define __UMAMBA_STRINGIZE_IMPL(s) #s
#define __UMAMBA_STRINGIZE(s) STRINGIZE_IMPL(s) #define __UMAMBA_STRINGIZE(s) __UMAMBA_STRINGIZE_IMPL(s)
#define UMAMBA_VERSION \ #define UMAMBA_VERSION \
(UMAMBA_VERSION_MAJOR * 10000 + UMAMBA_VERSION_MINOR * 100 + UMAMBA_VERSION_PATCH) (UMAMBA_VERSION_MAJOR * 10000 + UMAMBA_VERSION_MINOR * 100 + UMAMBA_VERSION_PATCH)
#define UMAMBA_VERSION_STRING __UMAMBA_STRINGIZE(UMAMBA_VERSION_MAJOR) "." \ #define UMAMBA_VERSION_STRING \
__UMAMBA_STRINGIZE(UMAMBA_VERSION_MINOR) "." \ __UMAMBA_STRINGIZE(UMAMBA_VERSION_MAJOR) \
__UMAMBA_STRINGIZE(UMAMBA_VERSION_PATCH) "." __UMAMBA_STRINGIZE(UMAMBA_VERSION_MINOR) "." __UMAMBA_STRINGIZE(UMAMBA_VERSION_PATCH)
namespace umamba namespace umamba
{ {

View File

@ -5,27 +5,6 @@ import re
template = {"version": None, "changes": []} template = {"version": None, "changes": []}
def append_element(selector, element, releases, islist, result):
element = element.strip()
def def_el(a, x):
if not a:
return
if islist:
x = f"- {x}"
result[a]["changes"].append(x)
selector = selector.strip()
s = [x.strip() for x in selector.split(",")]
if "all" in s:
for r in releases:
def_el(r, element)
else:
for el in s:
def_el(el, element)
templates = { templates = {
"libmamba": "libmamba/include/mamba/version.hpp.tmpl", "libmamba": "libmamba/include/mamba/version.hpp.tmpl",
"micromamba": "micromamba/src/version.hpp.tmpl", "micromamba": "micromamba/src/version.hpp.tmpl",
@ -75,6 +54,7 @@ def apply_changelog(name, version, changes):
def commands(changes): def commands(changes):
print("pre-commit run --all")
print("git diff") print("git diff")
commit_msg = ", ".join([f"{x} {changes[x]['version']}" for x in changes]) commit_msg = ", ".join([f"{x} {changes[x]['version']}" for x in changes])
@ -128,6 +108,7 @@ def populate_changes(name, sections, changes):
if applies(i.applies_to): if applies(i.applies_to):
el["changes"].append(f"- {i.text.strip()}") el["changes"].append(f"- {i.text.strip()}")
def main(): def main():
changes = {} changes = {}
with open("CHANGELOG.md", "r") as fi: with open("CHANGELOG.md", "r") as fi:
@ -172,14 +153,13 @@ def main():
if m := re.search(brackets_re, c): if m := re.search(brackets_re, c):
if in_section: if in_section:
sections[-1].applies_to(m.groups(1)[0]) sections[-1].applies_to = [x.strip() for x in m.groups(1)[0].split(",")]
else: else:
sections[-1].items.append(Item()) sections[-1].items.append(Item())
sections[-1].items[-1].text = c[m.end() :].strip() sections[-1].items[-1].text = c[m.end() :].strip()
sections[-1].items[-1].applies_to = m.groups(1)[0] sections[-1].items[-1].applies_to = [
x.strip() for x in m.groups(1)[0].split(",")
# if len(change_el): ]
# append_element(groups, change_el, release_names, islist, changes)
else: else:
if c.startswith(" "): if c.startswith(" "):
@ -191,7 +171,7 @@ def main():
if not in_section: if not in_section:
sections[-1].items.append(Item()) sections[-1].items.append(Item())
sections[-1].items[-1].text = c.strip() sections[-1].items[-1].text = c.strip()
sections[-1].items[-1].applies_to = "all" sections[-1].items[-1].applies_to = ["all"]
for c in changes: for c in changes:
populate_changes(c, sections, changes) populate_changes(c, sections, changes)