mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
preparing patch release
This commit is contained in:
parent
28e7560c23
commit
0460ab8bd6
@ -1,6 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.9)
|
cmake_minimum_required(VERSION 3.9)
|
||||||
|
|
||||||
project(fast_float VERSION 6.1.1 LANGUAGES CXX)
|
project(fast_float VERSION 6.1.2 LANGUAGES CXX)
|
||||||
set(FASTFLOAT_CXX_STANDARD 11 CACHE STRING "the C++ standard to use for fastfloat")
|
set(FASTFLOAT_CXX_STANDARD 11 CACHE STRING "the C++ standard to use for fastfloat")
|
||||||
set(CMAKE_CXX_STANDARD ${FASTFLOAT_CXX_STANDARD})
|
set(CMAKE_CXX_STANDARD ${FASTFLOAT_CXX_STANDARD})
|
||||||
option(FASTFLOAT_TEST "Enable tests" OFF)
|
option(FASTFLOAT_TEST "Enable tests" OFF)
|
||||||
|
|||||||
@ -379,7 +379,7 @@ the command line help.
|
|||||||
|
|
||||||
You may directly download automatically generated single-header files:
|
You may directly download automatically generated single-header files:
|
||||||
|
|
||||||
https://github.com/fastfloat/fast_float/releases/download/v6.1.1/fast_float.h
|
https://github.com/fastfloat/fast_float/releases/download/v6.1.2/fast_float.h
|
||||||
|
|
||||||
## RFC 7159
|
## RFC 7159
|
||||||
|
|
||||||
|
|||||||
@ -16,7 +16,7 @@ def colored(r, g, b, text):
|
|||||||
return "\033[38;2;{};{};{}m{} \033[38;2;255;255;255m".format(r, g, b, text)
|
return "\033[38;2;{};{};{}m{} \033[38;2;255;255;255m".format(r, g, b, text)
|
||||||
|
|
||||||
def extractnumbers(s):
|
def extractnumbers(s):
|
||||||
return tuple(map(int,re.findall("(\d+)\.(\d+)\.(\d+)",str(s))[0]))
|
return tuple(map(int,re.findall(r"(\d+)\.(\d+)\.(\d+)",str(s))[0]))
|
||||||
|
|
||||||
def toversionstring(major, minor, rev):
|
def toversionstring(major, minor, rev):
|
||||||
return str(major)+"."+str(minor)+"."+str(rev)
|
return str(major)+"."+str(minor)+"."+str(rev)
|
||||||
@ -90,7 +90,7 @@ cmakefile = maindir + os.sep + "CMakeLists.txt"
|
|||||||
|
|
||||||
|
|
||||||
for line in fileinput.input(cmakefile, inplace=1, backup='.bak'):
|
for line in fileinput.input(cmakefile, inplace=1, backup='.bak'):
|
||||||
line = re.sub('project\(fast_float VERSION \d+\.\d+\.\d+ LANGUAGES CXX\)','project(fast_float VERSION '+newmajorversionstring+'.'+mewminorversionstring+'.'+newrevversionstring+" LANGUAGES CXX)", line.rstrip())
|
line = re.sub(r'project\(fast_float VERSION \d+\.\d+\.\d+ LANGUAGES CXX\)','project(fast_float VERSION '+newmajorversionstring+'.'+mewminorversionstring+'.'+newrevversionstring+" LANGUAGES CXX)", line.rstrip())
|
||||||
print(line)
|
print(line)
|
||||||
|
|
||||||
print("modified "+cmakefile+", a backup was made")
|
print("modified "+cmakefile+", a backup was made")
|
||||||
@ -100,7 +100,7 @@ readmefile = maindir + os.sep + "README.md"
|
|||||||
|
|
||||||
|
|
||||||
for line in fileinput.input(readmefile, inplace=1, backup='.bak'):
|
for line in fileinput.input(readmefile, inplace=1, backup='.bak'):
|
||||||
line = re.sub('https://github.com/fastfloat/fast_float/releases/download/v(\d+\.\d+\.\d+)/fast_float.h','https://github.com/fastfloat/fast_float/releases/download/v'+newmajorversionstring+'.'+mewminorversionstring+'.'+newrevversionstring+'/fast_float.h', line.rstrip())
|
line = re.sub(r'https://github.com/fastfloat/fast_float/releases/download/v(\d+\.\d+\.\d+)/fast_float.h','https://github.com/fastfloat/fast_float/releases/download/v'+newmajorversionstring+'.'+mewminorversionstring+'.'+newrevversionstring+'/fast_float.h', line.rstrip())
|
||||||
print(line)
|
print(line)
|
||||||
|
|
||||||
print("modified "+readmefile+", a backup was made")
|
print("modified "+readmefile+", a backup was made")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user