mirror of
https://github.com/fmtlib/fmt.git
synced 2024-09-04 05:59:13 +00:00
Bump version and add version validation
This commit is contained in:
parent
e50c8b6bd8
commit
503e183b9e
@ -23,7 +23,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// The fmt library version in the form major * 10000 + minor * 100 + patch.
|
// The fmt library version in the form major * 10000 + minor * 100 + patch.
|
||||||
#define FMT_VERSION 110000
|
#define FMT_VERSION 110001
|
||||||
|
|
||||||
// Detect compiler versions.
|
// Detect compiler versions.
|
||||||
#if defined(__clang__) && !defined(__ibmxl__)
|
#if defined(__clang__) && !defined(__ibmxl__)
|
||||||
@ -262,7 +262,7 @@
|
|||||||
#ifndef FMT_BEGIN_NAMESPACE
|
#ifndef FMT_BEGIN_NAMESPACE
|
||||||
# define FMT_BEGIN_NAMESPACE \
|
# define FMT_BEGIN_NAMESPACE \
|
||||||
namespace fmt { \
|
namespace fmt { \
|
||||||
inline namespace v10 {
|
inline namespace v11 {
|
||||||
# define FMT_END_NAMESPACE \
|
# define FMT_END_NAMESPACE \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
@ -144,6 +144,16 @@ def release(args):
|
|||||||
if first_section[0] == '\n':
|
if first_section[0] == '\n':
|
||||||
first_section.pop(0)
|
first_section.pop(0)
|
||||||
|
|
||||||
|
ns_version = None
|
||||||
|
for line in fileinput.input(os.path.join(fmt_repo.dir, 'base.h')):
|
||||||
|
m = re.match(r'inline namespace v(.*)', line)
|
||||||
|
if m:
|
||||||
|
ns_version = m.group(1)
|
||||||
|
break
|
||||||
|
major_version = version.split('.')[0]
|
||||||
|
if not ns_version or ns_version != major_version:
|
||||||
|
raise Exception(f'Version mismatch {ns_version} != {major_version}')
|
||||||
|
|
||||||
# Workaround GitHub-flavored Markdown treating newlines as <br>.
|
# Workaround GitHub-flavored Markdown treating newlines as <br>.
|
||||||
changes = ''
|
changes = ''
|
||||||
code_block = False
|
code_block = False
|
||||||
|
Loading…
Reference in New Issue
Block a user