From a4a8c0641fd2894dd7ecce65289e517c013993e7 Mon Sep 17 00:00:00 2001 From: AdamOrmondroyd Date: Tue, 5 Dec 2023 13:21:02 +0000 Subject: [PATCH 1/5] add empty string after -i for macOS sed --- bin/bump_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bump_version.py b/bin/bump_version.py index d5a0671d..a173e805 100755 --- a/bin/bump_version.py +++ b/bin/bump_version.py @@ -32,7 +32,7 @@ new_version = version.parse(f"{major}.{minor}.{micro}") for f in [vfile, README]: - run("sed", "-i", f"s/{current_version}/{new_version}/g", f) + run("sed", "-i", "", f"s/{current_version}/{new_version}/g", f) run("git", "add", vfile, README) run("git", "commit", "-m", f"bump version to {new_version}") From 3f50e275a87b3f227b8b5c1584379640b7f3a0fa Mon Sep 17 00:00:00 2001 From: AdamOrmondroyd Date: Tue, 5 Dec 2023 13:21:18 +0000 Subject: [PATCH 2/5] bump version to 2.6.1 --- README.rst | 2 +- anesthetic/_version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 0df6459f..3dbbb958 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ anesthetic: nested sampling post-processing =========================================== :Authors: Will Handley and Lukas Hergt -:Version: 2.6.0 +:Version: 2.6.1 :Homepage: https://github.com/handley-lab/anesthetic :Documentation: http://anesthetic.readthedocs.io/ diff --git a/anesthetic/_version.py b/anesthetic/_version.py index f0e5e1ea..574f4077 100644 --- a/anesthetic/_version.py +++ b/anesthetic/_version.py @@ -1 +1 @@ -__version__ = '2.6.0' +__version__ = '2.6.1' From aa26c1da822ba6dad65a18c9002699672c79a65d Mon Sep 17 00:00:00 2001 From: AdamOrmondroyd Date: Tue, 5 Dec 2023 13:22:06 +0000 Subject: [PATCH 3/5] take opportunity to put spaces around operators --- bin/bump_version.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/bump_version.py b/bin/bump_version.py index a173e805..7bcbaca7 100755 --- a/bin/bump_version.py +++ b/bin/bump_version.py @@ -20,14 +20,14 @@ micro = current_version.micro if update_type == "micro": - micro+=1 + micro += 1 elif update_type == "minor": - minor+=1 - micro=0 + minor += 1 + micro = 0 elif update_type == "major": - major+=1 - minor=0 - micro=0 + major += 1 + minor = 0 + micro = 0 new_version = version.parse(f"{major}.{minor}.{micro}") From c3e1aed3e7d59cd246c86a71b53a7fccfe41c1df Mon Sep 17 00:00:00 2001 From: AdamOrmondroyd Date: Tue, 5 Dec 2023 14:43:14 +0000 Subject: [PATCH 4/5] check platform --- bin/bump_version.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/bump_version.py b/bin/bump_version.py index 7bcbaca7..b6f1f233 100755 --- a/bin/bump_version.py +++ b/bin/bump_version.py @@ -32,7 +32,10 @@ new_version = version.parse(f"{major}.{minor}.{micro}") for f in [vfile, README]: - run("sed", "-i", "", f"s/{current_version}/{new_version}/g", f) + if sys.platform == "darwin": # macOS sed requires empty string for backup + run("sed", "-i", "", f"s/{current_version}/{new_version}/g", f) + else: + run("sed", "-i", f"s/{current_version}/{new_version}/g", f) run("git", "add", vfile, README) run("git", "commit", "-m", f"bump version to {new_version}") From 3c82a11816bacc81eed123f69626fe30715c2b45 Mon Sep 17 00:00:00 2001 From: Will Handley Date: Fri, 1 Mar 2024 23:55:50 +0000 Subject: [PATCH 5/5] bump version to 2.7.2 --- README.rst | 2 +- anesthetic/_version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 98838668..5194d77f 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ anesthetic: nested sampling post-processing =========================================== :Authors: Will Handley and Lukas Hergt -:Version: 2.7.1 +:Version: 2.7.2 :Homepage: https://github.com/handley-lab/anesthetic :Documentation: http://anesthetic.readthedocs.io/ diff --git a/anesthetic/_version.py b/anesthetic/_version.py index e90ba7fa..63bdf07f 100644 --- a/anesthetic/_version.py +++ b/anesthetic/_version.py @@ -1 +1 @@ -__version__ = '2.7.1' +__version__ = '2.7.2'