simdjson 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.clang-format +5 -0
- data/.gitignore +14 -0
- data/.gitmodules +3 -0
- data/.rubocop.yml +9 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +32 -0
- data/benchmark/apache_builds.json +4421 -0
- data/benchmark/demo.json +15 -0
- data/benchmark/github_events.json +1390 -0
- data/benchmark/run_benchmark.rb +30 -0
- data/ext/simdjson/extconf.rb +22 -0
- data/ext/simdjson/simdjson.cpp +76 -0
- data/ext/simdjson/simdjson.hpp +6 -0
- data/lib/simdjson/version.rb +3 -0
- data/lib/simdjson.rb +2 -0
- data/simdjson.gemspec +35 -0
- data/vendor/.gitkeep +0 -0
- data/vendor/simdjson/AUTHORS +3 -0
- data/vendor/simdjson/CMakeLists.txt +63 -0
- data/vendor/simdjson/CONTRIBUTORS +27 -0
- data/vendor/simdjson/Dockerfile +10 -0
- data/vendor/simdjson/LICENSE +201 -0
- data/vendor/simdjson/Makefile +203 -0
- data/vendor/simdjson/Notes.md +85 -0
- data/vendor/simdjson/README.md +581 -0
- data/vendor/simdjson/amalgamation.sh +158 -0
- data/vendor/simdjson/benchmark/CMakeLists.txt +8 -0
- data/vendor/simdjson/benchmark/benchmark.h +223 -0
- data/vendor/simdjson/benchmark/distinctuseridcompetition.cpp +347 -0
- data/vendor/simdjson/benchmark/linux/linux-perf-events.h +93 -0
- data/vendor/simdjson/benchmark/minifiercompetition.cpp +181 -0
- data/vendor/simdjson/benchmark/parse.cpp +393 -0
- data/vendor/simdjson/benchmark/parseandstatcompetition.cpp +305 -0
- data/vendor/simdjson/benchmark/parsingcompetition.cpp +298 -0
- data/vendor/simdjson/benchmark/statisticalmodel.cpp +208 -0
- data/vendor/simdjson/dependencies/jsoncppdist/json/json-forwards.h +344 -0
- data/vendor/simdjson/dependencies/jsoncppdist/json/json.h +2366 -0
- data/vendor/simdjson/dependencies/jsoncppdist/jsoncpp.cpp +5418 -0
- data/vendor/simdjson/doc/apache_builds.jsonparseandstat.png +0 -0
- data/vendor/simdjson/doc/gbps.png +0 -0
- data/vendor/simdjson/doc/github_events.jsonparseandstat.png +0 -0
- data/vendor/simdjson/doc/twitter.jsonparseandstat.png +0 -0
- data/vendor/simdjson/doc/update-center.jsonparseandstat.png +0 -0
- data/vendor/simdjson/images/halvarflake.png +0 -0
- data/vendor/simdjson/images/logo.png +0 -0
- data/vendor/simdjson/include/simdjson/common_defs.h +102 -0
- data/vendor/simdjson/include/simdjson/isadetection.h +152 -0
- data/vendor/simdjson/include/simdjson/jsoncharutils.h +301 -0
- data/vendor/simdjson/include/simdjson/jsonformatutils.h +202 -0
- data/vendor/simdjson/include/simdjson/jsonioutil.h +32 -0
- data/vendor/simdjson/include/simdjson/jsonminifier.h +30 -0
- data/vendor/simdjson/include/simdjson/jsonparser.h +250 -0
- data/vendor/simdjson/include/simdjson/numberparsing.h +587 -0
- data/vendor/simdjson/include/simdjson/padded_string.h +70 -0
- data/vendor/simdjson/include/simdjson/parsedjson.h +544 -0
- data/vendor/simdjson/include/simdjson/portability.h +172 -0
- data/vendor/simdjson/include/simdjson/simdjson.h +44 -0
- data/vendor/simdjson/include/simdjson/simdjson_version.h +13 -0
- data/vendor/simdjson/include/simdjson/simdprune_tables.h +35074 -0
- data/vendor/simdjson/include/simdjson/simdutf8check_arm64.h +180 -0
- data/vendor/simdjson/include/simdjson/simdutf8check_haswell.h +198 -0
- data/vendor/simdjson/include/simdjson/simdutf8check_westmere.h +169 -0
- data/vendor/simdjson/include/simdjson/stage1_find_marks.h +121 -0
- data/vendor/simdjson/include/simdjson/stage1_find_marks_arm64.h +210 -0
- data/vendor/simdjson/include/simdjson/stage1_find_marks_flatten.h +93 -0
- data/vendor/simdjson/include/simdjson/stage1_find_marks_flatten_haswell.h +95 -0
- data/vendor/simdjson/include/simdjson/stage1_find_marks_haswell.h +210 -0
- data/vendor/simdjson/include/simdjson/stage1_find_marks_macros.h +239 -0
- data/vendor/simdjson/include/simdjson/stage1_find_marks_westmere.h +194 -0
- data/vendor/simdjson/include/simdjson/stage2_build_tape.h +85 -0
- data/vendor/simdjson/include/simdjson/stringparsing.h +105 -0
- data/vendor/simdjson/include/simdjson/stringparsing_arm64.h +56 -0
- data/vendor/simdjson/include/simdjson/stringparsing_haswell.h +43 -0
- data/vendor/simdjson/include/simdjson/stringparsing_macros.h +88 -0
- data/vendor/simdjson/include/simdjson/stringparsing_westmere.h +41 -0
- data/vendor/simdjson/jsonexamples/small/jsoniter_scala/README.md +4 -0
- data/vendor/simdjson/scripts/dumpsimplestats.sh +11 -0
- data/vendor/simdjson/scripts/issue150.sh +14 -0
- data/vendor/simdjson/scripts/javascript/README.md +3 -0
- data/vendor/simdjson/scripts/javascript/generatelargejson.js +19 -0
- data/vendor/simdjson/scripts/minifier.sh +11 -0
- data/vendor/simdjson/scripts/parseandstat.sh +24 -0
- data/vendor/simdjson/scripts/parser.sh +11 -0
- data/vendor/simdjson/scripts/parsingcompdata.sh +26 -0
- data/vendor/simdjson/scripts/plotparse.sh +98 -0
- data/vendor/simdjson/scripts/selectparser.sh +11 -0
- data/vendor/simdjson/scripts/setupfortesting/disablehyperthreading.sh +15 -0
- data/vendor/simdjson/scripts/setupfortesting/powerpolicy.sh +32 -0
- data/vendor/simdjson/scripts/setupfortesting/setupfortesting.sh +6 -0
- data/vendor/simdjson/scripts/setupfortesting/turboboost.sh +51 -0
- data/vendor/simdjson/scripts/testjson2json.sh +99 -0
- data/vendor/simdjson/scripts/transitions/Makefile +10 -0
- data/vendor/simdjson/scripts/transitions/generatetransitions.cpp +20 -0
- data/vendor/simdjson/singleheader/README.md +1 -0
- data/vendor/simdjson/singleheader/amalgamation_demo.cpp +20 -0
- data/vendor/simdjson/singleheader/simdjson.cpp +1652 -0
- data/vendor/simdjson/singleheader/simdjson.h +39692 -0
- data/vendor/simdjson/src/CMakeLists.txt +67 -0
- data/vendor/simdjson/src/jsonioutil.cpp +35 -0
- data/vendor/simdjson/src/jsonminifier.cpp +285 -0
- data/vendor/simdjson/src/jsonparser.cpp +91 -0
- data/vendor/simdjson/src/parsedjson.cpp +323 -0
- data/vendor/simdjson/src/parsedjsoniterator.cpp +272 -0
- data/vendor/simdjson/src/simdjson.cpp +30 -0
- data/vendor/simdjson/src/stage1_find_marks.cpp +41 -0
- data/vendor/simdjson/src/stage2_build_tape.cpp +567 -0
- data/vendor/simdjson/style/clang-format-check.sh +25 -0
- data/vendor/simdjson/style/clang-format.sh +25 -0
- data/vendor/simdjson/style/run-clang-format.py +326 -0
- data/vendor/simdjson/tape.md +134 -0
- data/vendor/simdjson/tests/CMakeLists.txt +25 -0
- data/vendor/simdjson/tests/allparserscheckfile.cpp +192 -0
- data/vendor/simdjson/tests/basictests.cpp +75 -0
- data/vendor/simdjson/tests/jsoncheck.cpp +136 -0
- data/vendor/simdjson/tests/numberparsingcheck.cpp +224 -0
- data/vendor/simdjson/tests/pointercheck.cpp +38 -0
- data/vendor/simdjson/tests/singleheadertest.cpp +22 -0
- data/vendor/simdjson/tests/stringparsingcheck.cpp +408 -0
- data/vendor/simdjson/tools/CMakeLists.txt +3 -0
- data/vendor/simdjson/tools/cmake/FindCTargets.cmake +15 -0
- data/vendor/simdjson/tools/cmake/FindOptions.cmake +52 -0
- data/vendor/simdjson/tools/json2json.cpp +112 -0
- data/vendor/simdjson/tools/jsonpointer.cpp +93 -0
- data/vendor/simdjson/tools/jsonstats.cpp +143 -0
- data/vendor/simdjson/tools/minify.cpp +21 -0
- data/vendor/simdjson/tools/release.py +125 -0
- data/vendor/simdjson/windows/dirent_portable.h +1043 -0
- metadata +273 -0
@@ -0,0 +1,143 @@
|
|
1
|
+
#include <iostream>
|
2
|
+
|
3
|
+
#include "simdjson/jsonioutil.h"
|
4
|
+
#include "simdjson/jsonparser.h"
|
5
|
+
|
6
|
+
size_t count_nonasciibytes(const uint8_t *input, size_t length) {
|
7
|
+
size_t count = 0;
|
8
|
+
for (size_t i = 0; i < length; i++) {
|
9
|
+
count += input[i] >> 7;
|
10
|
+
}
|
11
|
+
return count;
|
12
|
+
}
|
13
|
+
|
14
|
+
size_t count_backslash(const uint8_t *input, size_t length) {
|
15
|
+
size_t count = 0;
|
16
|
+
for (size_t i = 0; i < length; i++) {
|
17
|
+
count += (input[i] == '\\') ? 1 : 0;
|
18
|
+
}
|
19
|
+
return count;
|
20
|
+
}
|
21
|
+
|
22
|
+
struct stat_s {
|
23
|
+
size_t integer_count;
|
24
|
+
size_t float_count;
|
25
|
+
size_t string_count;
|
26
|
+
size_t backslash_count;
|
27
|
+
size_t non_ascii_byte_count;
|
28
|
+
size_t object_count;
|
29
|
+
size_t array_count;
|
30
|
+
size_t null_count;
|
31
|
+
size_t true_count;
|
32
|
+
size_t false_count;
|
33
|
+
size_t byte_count;
|
34
|
+
size_t structural_indexes_count;
|
35
|
+
bool valid;
|
36
|
+
};
|
37
|
+
|
38
|
+
using stat_t = struct stat_s;
|
39
|
+
|
40
|
+
stat_t simdjson_compute_stats(const simdjson::padded_string &p) {
|
41
|
+
stat_t answer;
|
42
|
+
simdjson::ParsedJson pj = simdjson::build_parsed_json(p);
|
43
|
+
answer.valid = pj.is_valid();
|
44
|
+
if (!answer.valid) {
|
45
|
+
std::cerr << pj.get_error_message() << std::endl;
|
46
|
+
return answer;
|
47
|
+
}
|
48
|
+
answer.backslash_count =
|
49
|
+
count_backslash(reinterpret_cast<const uint8_t *>(p.data()), p.size());
|
50
|
+
answer.non_ascii_byte_count = count_nonasciibytes(
|
51
|
+
reinterpret_cast<const uint8_t *>(p.data()), p.size());
|
52
|
+
answer.byte_count = p.size();
|
53
|
+
answer.integer_count = 0;
|
54
|
+
answer.float_count = 0;
|
55
|
+
answer.object_count = 0;
|
56
|
+
answer.array_count = 0;
|
57
|
+
answer.null_count = 0;
|
58
|
+
answer.true_count = 0;
|
59
|
+
answer.false_count = 0;
|
60
|
+
answer.string_count = 0;
|
61
|
+
answer.structural_indexes_count = pj.n_structural_indexes;
|
62
|
+
size_t tape_idx = 0;
|
63
|
+
uint64_t tape_val = pj.tape[tape_idx++];
|
64
|
+
uint8_t type = (tape_val >> 56);
|
65
|
+
size_t how_many = 0;
|
66
|
+
assert(type == 'r');
|
67
|
+
how_many = tape_val & JSON_VALUE_MASK;
|
68
|
+
for (; tape_idx < how_many; tape_idx++) {
|
69
|
+
tape_val = pj.tape[tape_idx];
|
70
|
+
// uint64_t payload = tape_val & JSON_VALUE_MASK;
|
71
|
+
type = (tape_val >> 56);
|
72
|
+
switch (type) {
|
73
|
+
case 'l': // we have a long int
|
74
|
+
answer.integer_count++;
|
75
|
+
tape_idx++; // skipping the integer
|
76
|
+
break;
|
77
|
+
case 'd': // we have a double
|
78
|
+
answer.float_count++;
|
79
|
+
tape_idx++; // skipping the double
|
80
|
+
break;
|
81
|
+
case 'n': // we have a null
|
82
|
+
answer.null_count++;
|
83
|
+
break;
|
84
|
+
case 't': // we have a true
|
85
|
+
answer.true_count++;
|
86
|
+
break;
|
87
|
+
case 'f': // we have a false
|
88
|
+
answer.false_count++;
|
89
|
+
break;
|
90
|
+
case '{': // we have an object
|
91
|
+
answer.object_count++;
|
92
|
+
break;
|
93
|
+
case '}': // we end an object
|
94
|
+
break;
|
95
|
+
case '[': // we start an array
|
96
|
+
answer.array_count++;
|
97
|
+
break;
|
98
|
+
case ']': // we end an array
|
99
|
+
break;
|
100
|
+
case '"': // we have a string
|
101
|
+
answer.string_count++;
|
102
|
+
break;
|
103
|
+
default:
|
104
|
+
break; // ignore
|
105
|
+
}
|
106
|
+
}
|
107
|
+
return answer;
|
108
|
+
}
|
109
|
+
|
110
|
+
int main(int argc, char *argv[]) {
|
111
|
+
int myoptind = 1;
|
112
|
+
if (myoptind >= argc) {
|
113
|
+
std::cerr << "Reads json, prints stats. " << std::endl;
|
114
|
+
std::cerr << "Usage: " << argv[0] << " <jsonfile>" << std::endl;
|
115
|
+
exit(1);
|
116
|
+
}
|
117
|
+
const char *filename = argv[myoptind];
|
118
|
+
if (myoptind + 1 < argc) {
|
119
|
+
std::cerr << "warning: ignoring everything after " << argv[myoptind + 1]
|
120
|
+
<< std::endl;
|
121
|
+
}
|
122
|
+
simdjson::padded_string p;
|
123
|
+
try {
|
124
|
+
simdjson::get_corpus(filename).swap(p);
|
125
|
+
} catch (const std::exception &) { // caught by reference to base
|
126
|
+
std::cerr << "Could not load the file " << filename << std::endl;
|
127
|
+
return EXIT_FAILURE;
|
128
|
+
}
|
129
|
+
stat_t s = simdjson_compute_stats(p);
|
130
|
+
if (!s.valid) {
|
131
|
+
std::cerr << "not a valid JSON" << std::endl;
|
132
|
+
return EXIT_FAILURE;
|
133
|
+
}
|
134
|
+
|
135
|
+
printf("# integer_count float_count string_count backslash_count "
|
136
|
+
"non_ascii_byte_count object_count array_count null_count true_count "
|
137
|
+
"false_count byte_count structural_indexes_count\n");
|
138
|
+
printf("%zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu %zu\n", s.integer_count,
|
139
|
+
s.float_count, s.string_count, s.backslash_count,
|
140
|
+
s.non_ascii_byte_count, s.object_count, s.array_count, s.null_count,
|
141
|
+
s.true_count, s.false_count, s.byte_count, s.structural_indexes_count);
|
142
|
+
return EXIT_SUCCESS;
|
143
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#include <iostream>
|
2
|
+
|
3
|
+
#include "simdjson/jsonioutil.h"
|
4
|
+
#include "simdjson/jsonminifier.h"
|
5
|
+
|
6
|
+
int main(int argc, char *argv[]) {
|
7
|
+
if (argc != 2) {
|
8
|
+
std::cerr << "Usage: " << argv[0] << " <jsonfile>\n";
|
9
|
+
exit(1);
|
10
|
+
}
|
11
|
+
simdjson::padded_string p;
|
12
|
+
std::string filename = argv[argc - 1];
|
13
|
+
try {
|
14
|
+
simdjson::get_corpus(filename).swap(p);
|
15
|
+
} catch (const std::exception &) {
|
16
|
+
std::cout << "Could not load the file " << filename << std::endl;
|
17
|
+
return EXIT_FAILURE;
|
18
|
+
}
|
19
|
+
simdjson::json_minify(p, p.data());
|
20
|
+
printf("%s", p.data());
|
21
|
+
}
|
@@ -0,0 +1,125 @@
|
|
1
|
+
#!/usr/bin/env python3
|
2
|
+
########################################################################
|
3
|
+
# Generates a new release.
|
4
|
+
########################################################################
|
5
|
+
import sys
|
6
|
+
import re
|
7
|
+
import subprocess
|
8
|
+
import io
|
9
|
+
import os
|
10
|
+
|
11
|
+
|
12
|
+
def extractnumbers(s):
|
13
|
+
return tuple(map(int,re.findall("(\d+)\.(\d+)\.(\d+)",str(s))[0]))
|
14
|
+
|
15
|
+
def toversionstring(major, minor, rev):
|
16
|
+
return str(major)+"."+str(minor)+"."+str(rev)
|
17
|
+
|
18
|
+
def topaddedversionstring(major, minor, rev):
|
19
|
+
return str(major)+str(minor).zfill(3)+str(rev).zfill(3)
|
20
|
+
|
21
|
+
pipe = subprocess.Popen(["git", "rev-parse", "--abbrev-ref", "HEAD"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
22
|
+
branchresult = pipe.communicate()[0].decode().strip()
|
23
|
+
|
24
|
+
if(branchresult != "master"):
|
25
|
+
print("release on master, you are on '"+branchresult+"'")
|
26
|
+
sys.exit(-1)
|
27
|
+
|
28
|
+
|
29
|
+
ret = subprocess.call(["git", "remote", "update"])
|
30
|
+
|
31
|
+
if(ret != 0):
|
32
|
+
sys.exit(ret)
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
pipe = subprocess.Popen(["git", "log", "HEAD..", "--oneline"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
37
|
+
uptodateresult = pipe.communicate()[0].decode().strip()
|
38
|
+
|
39
|
+
if(len(uptodateresult) != 0):
|
40
|
+
print(uptodateresult)
|
41
|
+
sys.exit(-1)
|
42
|
+
|
43
|
+
pipe = subprocess.Popen(["git", "rev-parse", "--show-toplevel"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
44
|
+
maindir = pipe.communicate()[0].decode().strip()
|
45
|
+
|
46
|
+
|
47
|
+
print("repository: "+maindir)
|
48
|
+
|
49
|
+
pipe = subprocess.Popen(["git", "describe", "--abbrev=0", "--tags"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
50
|
+
versionresult = pipe.communicate()[0].decode().strip()
|
51
|
+
|
52
|
+
print("last version: "+versionresult )
|
53
|
+
try:
|
54
|
+
currentv = extractnumbers(versionresult)
|
55
|
+
except:
|
56
|
+
currentv = [0,0,0]
|
57
|
+
if(len(sys.argv) != 2):
|
58
|
+
nextv = (currentv[0],currentv[1], currentv[2]+1)
|
59
|
+
print ("please specify version number, e.g. "+toversionstring(*nextv))
|
60
|
+
sys.exit(-1)
|
61
|
+
try:
|
62
|
+
newversion = extractnumbers(sys.argv[1])
|
63
|
+
except:
|
64
|
+
print("can't parse version number "+sys.argv[1])
|
65
|
+
sys.exit(-1)
|
66
|
+
|
67
|
+
print("checking that new version is valid")
|
68
|
+
|
69
|
+
if(newversion[0] != currentv[0]):
|
70
|
+
assert newversion[0] == currentv[0] + 1
|
71
|
+
assert newversion[1] == 0
|
72
|
+
assert newversion[2] == 0
|
73
|
+
elif (newversion[1] != currentv[1]):
|
74
|
+
assert newversion[1] == currentv[1] + 1
|
75
|
+
assert newversion[2] == 0
|
76
|
+
else :
|
77
|
+
assert newversion[2] == currentv[2] + 1
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
versionfilerel = os.sep + "include" + os.sep + "simdjson" + os.sep + "simdjson_version.h"
|
82
|
+
versionfile = maindir + versionfilerel
|
83
|
+
|
84
|
+
with open(versionfile, 'w') as file:
|
85
|
+
file.write("// "+versionfilerel+" automatically generated by release.py,\n")
|
86
|
+
file.write("// do not change by hand\n")
|
87
|
+
file.write("#ifndef SIMDJSON_INCLUDE_SIMDJSON_VERSION\n")
|
88
|
+
file.write("#define SIMDJSON_INCLUDE_SIMDJSON_VERSION\n")
|
89
|
+
file.write("#define SIMDJSON_VERSION "+toversionstring(*newversion)+"\n")
|
90
|
+
file.write("namespace simdjson {\n")
|
91
|
+
file.write("enum {\n")
|
92
|
+
file.write(" SIMDJSON_VERSION_MAJOR = "+str(newversion[0])+",\n")
|
93
|
+
file.write(" SIMDJSON_VERSION_MINOR = "+str(newversion[1])+",\n")
|
94
|
+
file.write(" SIMDJSON_VERSION_REVISION = "+str(newversion[2])+"\n")
|
95
|
+
file.write("};\n")
|
96
|
+
file.write("}\n")
|
97
|
+
file.write("#endif // SIMDJSON_INCLUDE_SIMDJSON_VERSION\n")
|
98
|
+
|
99
|
+
|
100
|
+
print(versionfile + " modified")
|
101
|
+
|
102
|
+
import fileinput
|
103
|
+
import re
|
104
|
+
|
105
|
+
newmajorversionstring = str(newversion[0])
|
106
|
+
mewminorversionstring = str(newversion[1])
|
107
|
+
newrevversionstring = str(newversion[2])
|
108
|
+
newversionstring = str(newversion[0]) + "." + str(newversion[1]) + "." + str(newversion[2])
|
109
|
+
cmakefile = maindir + os.sep + "CMakeLists.txt"
|
110
|
+
for line in fileinput.input(cmakefile, inplace=1, backup='.bak'):
|
111
|
+
line = re.sub('SIMDJSON_LIB_VERSION "\d+\.\d+\.\d+','SIMDJSON_LIB_VERSION "'+newversionstring, line.rstrip())
|
112
|
+
line = re.sub('SIMDJSON_LIB_SOVERSION "\d+','SIMDJSON_LIB_SOVERSION "'+newmajorversionstring, line)
|
113
|
+
line = re.sub('set\(PROJECT_VERSION_MAJOR \d+','set(PROJECT_VERSION_MAJOR '+newmajorversionstring, line)
|
114
|
+
line = re.sub('set\(PROJECT_VERSION_MINOR \d+','set(PROJECT_VERSION_MINOR '+mewminorversionstring, line)
|
115
|
+
line = re.sub('set\(PROJECT_VERSION_PATCH \d+','set(PROJECT_VERSION_PATCH '+newrevversionstring, line)
|
116
|
+
print(line)
|
117
|
+
|
118
|
+
|
119
|
+
print("modified "+cmakefile+", a backup was made")
|
120
|
+
|
121
|
+
scriptlocation = os.path.dirname(os.path.abspath(__file__))
|
122
|
+
|
123
|
+
|
124
|
+
print("Please run the tests before issuing a release, do make test && make amalgamate \n")
|
125
|
+
print("to issue release, enter \n git commit -a && git push && git tag -a v"+toversionstring(*newversion)+" -m \"version "+toversionstring(*newversion)+"\" && git push --tags \n")
|