diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 07f7d8d4b..7983433ed 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ -`Unreleased `_ +`Unreleased `_ ------------------------------------------------------------------------------- +`v1.4.0 `_ +----------------------------------------------------------------------------- + +This release includes some significant modernisation and maintenance, +as well as new features and performance enhancements. + - Requirements - Python 3.8, 3.9 is no longer supported diff --git a/CITATION.cff b/CITATION.cff index 373171fed..0ebf37255 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -33,7 +33,7 @@ authors: given-names: "Jacob S." title: "Euphonic" doi: 10.5286/SOFTWARE/EUPHONIC -version: 1.3.2 +version: 1.4.0 date-released: 2024-01-30 license: GPL-3.0-only repository-code: https://github.com/pace-neutrons/Euphonic diff --git a/build_utils/release.py b/build_utils/release.py index 8558477a8..530f09450 100644 --- a/build_utils/release.py +++ b/build_utils/release.py @@ -23,9 +23,9 @@ def release_github(test=True): with open('CITATION.cff') as f: citation = yaml.safe_load(f) - euphonic_ver = 'v' + __version__ + euphonic_ver = __version__ version_dict = {} - version_dict['CHANGELOG.rst'] = re.findall('\n`(v\d+\.\d+\.\S+)\s', + version_dict['CHANGELOG.rst'] = re.findall(r'\n`(v\d+\.\d+\.\S+)\s', changelog)[0] version_dict['CITATION.cff'] = 'v' + citation['version'] for ver_name, ver in version_dict.items(): @@ -35,7 +35,7 @@ def release_github(test=True): f'euphonic.__version__: {euphonic_ver} {ver_name}: ' f'{ver}')) - desc = re.search('`v\d+\.\d+\.\S+.*?^-+\n(.*?)^`v', changelog, + desc = re.search(r'`v\d+\.\d+\.\S+.*?^-+\n(.*?)^`v', changelog, re.DOTALL | re.MULTILINE).groups()[0].strip() payload = { "tag_name": euphonic_ver, diff --git a/euphonic/version.py b/euphonic/version.py index 446842908..c1a634494 100644 --- a/euphonic/version.py +++ b/euphonic/version.py @@ -1 +1 @@ -__version__ = "v1.3.1a1" +__version__ = "v1.4.0"