sqlmath 2023.8.20 → 2023.9.19

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.
package/CHANGELOG.md CHANGED
@@ -1,9 +1,19 @@
1
1
  # Changelog
2
2
 
3
3
  # Todo
4
+ - python - Revamp python-c-extension to support cp312.
4
5
  - sqlmath - Optimize cosfit-calculation of amplitude-prm WinCosfit.caa to one-step instead of nnn-steps.
5
6
  - none
6
7
 
8
+ # v2023.9.19
9
+ - ci - Update ci-workflow publish to auto-publish pypi-package.
10
+ - ci - Add ci-workflow publish_pypi_test.
11
+ - python - Remove setuptools dependency. - part1
12
+ - python - Update ci to build python-manylinux wheel.
13
+ - sqlmath - Add sql-function sqrtwithsign(), and remove redundant sql-function sign().
14
+ - sqlmath - Update function win_quantile2() to accept different quantile-arg for each icol.
15
+ - sqlmath - Update function win_sinefit() to allow outputting gaussian-normalized y-value gyy.
16
+
7
17
  # v2023.8.20
8
18
  - jslint - Update jslint to v2023.8.20.
9
19
  - chart - Add technical-chart tradebot_technical_sinefit.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
  # Status
5
- | Branch | [master<br>(v2023.8.20)](https://github.com/sqlmath/sqlmath/tree/master) | [beta<br>(Web Demo)](https://github.com/sqlmath/sqlmath/tree/beta) | [alpha<br>(Development)](https://github.com/sqlmath/sqlmath/tree/alpha) |
5
+ | Branch | [master<br>(v2023.9.19)](https://github.com/sqlmath/sqlmath/tree/master) | [beta<br>(Web Demo)](https://github.com/sqlmath/sqlmath/tree/beta) | [alpha<br>(Development)](https://github.com/sqlmath/sqlmath/tree/alpha) |
6
6
  |--:|:--:|:--:|:--:|
7
7
  | CI | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Amaster) | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=beta)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Abeta) | [![ci](https://github.com/sqlmath/sqlmath/actions/workflows/ci.yml/badge.svg?branch=alpha)](https://github.com/sqlmath/sqlmath/actions?query=branch%3Aalpha) |
8
8
  | Coverage | [![coverage](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-master/.artifact/coverage/index.html) | [![coverage](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-beta/.artifact/coverage/index.html) | [![coverage](https://sqlmath.github.io/sqlmath/branch-alpha/.artifact/coverage/coverage_badge.svg)](https://sqlmath.github.io/sqlmath/branch-alpha/.artifact/coverage/index.html) |
@@ -119,9 +119,9 @@ PORT=8080 sh jslint_ci.sh shHttpFileServer
119
119
  ```shell
120
120
  python -m build
121
121
  #
122
- twine upload --repository testpypi dist/sqlmath-2023.8.20*
123
- py -m pip install --index-url https://test.pypi.org/simple/ sqlmath==2023.8.20
122
+ twine upload --repository testpypi dist/sqlmath-2023.9.19*
123
+ py -m pip install --index-url https://test.pypi.org/simple/ sqlmath==2023.9.19
124
124
  #
125
- twine upload dist/sqlmath-2023.8.20*
126
- pip install sqlmath==2023.8.20
125
+ twine upload dist/sqlmath-2023.9.19*
126
+ pip install sqlmath==2023.9.19
127
127
  ```
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "engines": {
12
12
  "node": ">=14"
13
13
  },
14
- "fileCount": 38,
14
+ "fileCount": 40,
15
15
  "homepage": "https://github.com/sqlmath/sqlmath",
16
16
  "keywords": [
17
17
  "data-science",
@@ -37,6 +37,6 @@
37
37
  "test2": "sh jslint_ci.sh shCiBase"
38
38
  },
39
39
  "shCiArtifactUpload": 1,
40
- "shCiNpmPublish": 1,
41
- "version": "2023.8.20"
40
+ "shCiPublishNpm": 1,
41
+ "version": "2023.9.19"
42
42
  }
package/sqlmath.mjs CHANGED
@@ -97,7 +97,7 @@ let {
97
97
  let sqlMessageDict = {}; // dict of web-worker-callbacks
98
98
  let sqlMessageId = 0;
99
99
  let sqlWorker;
100
- let version = "v2023.8.20";
100
+ let version = "v2023.9.19";
101
101
 
102
102
  function assertJsonEqual(aa, bb, message) {
103
103
 
@@ -350,6 +350,13 @@ async function ciBuildExt1NodejsConfigure({
350
350
 
351
351
  // This function will setup posix/win32 env for building c-extension.
352
352
 
353
+ let cflagsNowarning = [
354
+ "-Wno-all",
355
+ "-Wno-extra",
356
+ "-Wno-implicit-fallthrough",
357
+ "-Wno-int-conversion",
358
+ "-Wno-unused-parameter"
359
+ ];
353
360
  consoleError(`ciBuildExt1Nodejs - configure binding.gyp`);
354
361
  await fsWriteFileUnlessTest("binding.gyp", JSON.stringify({
355
362
  "target_defaults": {
@@ -370,11 +377,7 @@ async function ciBuildExt1NodejsConfigure({
370
377
  },
371
378
  "targets": [
372
379
  {
373
- "cflags": [
374
- "-Wno-all",
375
- "-Wno-implicit-fallthrough",
376
- "-Wno-unused-parameter"
377
- ],
380
+ "cflags": cflagsNowarning,
378
381
  "sources": [
379
382
  "build/SRC_ZLIB_BASE.c",
380
383
  "build/SRC_SQLITE_BASE.c",
@@ -382,11 +385,7 @@ async function ciBuildExt1NodejsConfigure({
382
385
  ],
383
386
  "target_name": "SRC_SQLITE_BASE",
384
387
  "type": "static_library",
385
- "xcode_settings": {"OTHER_CFLAGS": [
386
- "-Wno-all",
387
- "-Wno-implicit-fallthrough",
388
- "-Wno-unused-parameter"
389
- ]}
388
+ "xcode_settings": {"OTHER_CFLAGS": cflagsNowarning}
390
389
  },
391
390
  {
392
391
  "sources": [
@@ -401,8 +400,27 @@ async function ciBuildExt1NodejsConfigure({
401
400
  "SQLMATH_CUSTOM",
402
401
  "SRC_SQLITE_BASE"
403
402
  ],
404
- "sources": ["sqlmath_base.c"],
403
+ "sources": [
404
+ "sqlmath_base.c"
405
+ ],
405
406
  "target_name": "binding"
407
+ },
408
+ {
409
+ "cflags": cflagsNowarning,
410
+ "defines": [
411
+ "SQLITE3_SHELL_C2"
412
+ ],
413
+ "dependencies": [
414
+ "SQLMATH_CUSTOM",
415
+ "SRC_SQLITE_BASE"
416
+ ],
417
+ "sources": [
418
+ "sqlmath_base.c",
419
+ "build/SRC_SQLITE_SHELL.c"
420
+ ],
421
+ "target_name": "shell",
422
+ "type": "executable",
423
+ "xcode_settings": {"OTHER_CFLAGS": cflagsNowarning}
406
424
  }
407
425
  ]
408
426
  }, undefined, 4) + "\n");
@@ -449,6 +467,14 @@ async function ciBuildExt2NodejsBuild({
449
467
  rm -rf build/Release/obj/SQLMATH_CUSTOM/
450
468
  node "${binNodegyp}" build --release
451
469
  mv build/Release/binding.node "${cModulePath}"
470
+ if [ "${process.platform}" = "win32" ]
471
+ then
472
+ mv build/Release/shell \
473
+ "_sqlmath.shell_${process.platform}_${process.arch}.exe"
474
+ else
475
+ mv build/Release/shell \
476
+ "_sqlmath.shell_${process.platform}_${process.arch}"
477
+ fi
452
478
  )
453
479
  `)
454
480
  ],