fast_excel 0.4.1 → 0.5.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 +4 -4
- data/.github/workflows/test.yml +1 -7
- data/CHANGELOG.md +9 -0
- data/Gemfile +1 -1
- data/examples/example.rb +2 -0
- data/examples/example_date_time.rb +38 -0
- data/fast_excel.gemspec +2 -2
- data/lib/fast_excel/binding/format.rb +17 -0
- data/lib/fast_excel/binding/workbook.rb +39 -17
- data/lib/fast_excel/binding/worksheet.rb +57 -13
- data/lib/fast_excel/binding.rb +7 -7
- data/lib/fast_excel.rb +27 -20
- data/libxlsxwriter/.github/FUNDING.yml +1 -0
- data/libxlsxwriter/.github/ISSUE_TEMPLATE.md +85 -0
- data/libxlsxwriter/.github/PULL_REQUEST_TEMPLATE.md +130 -0
- data/libxlsxwriter/.github/workflows/cmake_actions.yml +48 -0
- data/libxlsxwriter/.github/workflows/code_style.yml +23 -0
- data/libxlsxwriter/.github/workflows/coverity.yml +22 -0
- data/libxlsxwriter/.github/workflows/make_actions.yml +52 -0
- data/libxlsxwriter/.github/workflows/valgrind.yml +23 -0
- data/libxlsxwriter/.github/workflows/windows_build.yml +54 -0
- data/libxlsxwriter/.github/workflows/zig_build.yml +22 -0
- data/libxlsxwriter/.gitignore +16 -1
- data/libxlsxwriter/.indent.pro +24 -0
- data/libxlsxwriter/CMakeLists.txt +156 -56
- data/libxlsxwriter/CONTRIBUTING.md +2 -2
- data/libxlsxwriter/Changes.txt +344 -2
- data/libxlsxwriter/LICENSE.txt +66 -8
- data/libxlsxwriter/Makefile +151 -54
- data/libxlsxwriter/Package.swift +42 -0
- data/libxlsxwriter/Readme.md +4 -2
- data/libxlsxwriter/build.zig +324 -0
- data/libxlsxwriter/build.zig.zon +11 -0
- data/libxlsxwriter/cmake/FindMINIZIP.cmake +3 -3
- data/libxlsxwriter/cocoapods/libxlsxwriter-umbrella.h +6 -0
- data/libxlsxwriter/include/xlsxwriter/app.h +2 -1
- data/libxlsxwriter/include/xlsxwriter/chart.h +236 -32
- data/libxlsxwriter/include/xlsxwriter/chartsheet.h +7 -7
- data/libxlsxwriter/include/xlsxwriter/comment.h +76 -0
- data/libxlsxwriter/include/xlsxwriter/common.h +111 -50
- data/libxlsxwriter/include/xlsxwriter/content_types.h +8 -1
- data/libxlsxwriter/include/xlsxwriter/core.h +1 -1
- data/libxlsxwriter/include/xlsxwriter/custom.h +1 -1
- data/libxlsxwriter/include/xlsxwriter/drawing.h +11 -20
- data/libxlsxwriter/include/xlsxwriter/format.h +121 -8
- data/libxlsxwriter/include/xlsxwriter/hash_table.h +1 -1
- data/libxlsxwriter/include/xlsxwriter/metadata.h +49 -0
- data/libxlsxwriter/include/xlsxwriter/packager.h +27 -16
- data/libxlsxwriter/include/xlsxwriter/relationships.h +1 -1
- data/libxlsxwriter/include/xlsxwriter/shared_strings.h +1 -1
- data/libxlsxwriter/include/xlsxwriter/styles.h +13 -7
- data/libxlsxwriter/include/xlsxwriter/table.h +51 -0
- data/libxlsxwriter/include/xlsxwriter/theme.h +1 -1
- data/libxlsxwriter/include/xlsxwriter/third_party/emyg_dtoa.h +26 -0
- data/libxlsxwriter/include/xlsxwriter/third_party/ioapi.h +27 -25
- data/libxlsxwriter/include/xlsxwriter/third_party/md5.h +45 -0
- data/libxlsxwriter/include/xlsxwriter/third_party/zip.h +155 -153
- data/libxlsxwriter/include/xlsxwriter/utility.h +70 -8
- data/libxlsxwriter/include/xlsxwriter/vml.h +55 -0
- data/libxlsxwriter/include/xlsxwriter/workbook.h +218 -47
- data/libxlsxwriter/include/xlsxwriter/worksheet.h +2770 -241
- data/libxlsxwriter/include/xlsxwriter/xmlwriter.h +12 -8
- data/libxlsxwriter/include/xlsxwriter.h +4 -2
- data/libxlsxwriter/libxlsxwriter.podspec +8 -5
- data/libxlsxwriter/src/Makefile +58 -21
- data/libxlsxwriter/src/app.c +5 -2
- data/libxlsxwriter/src/chart.c +396 -81
- data/libxlsxwriter/src/chartsheet.c +22 -22
- data/libxlsxwriter/src/comment.c +443 -0
- data/libxlsxwriter/src/content_types.c +40 -1
- data/libxlsxwriter/src/core.c +2 -2
- data/libxlsxwriter/src/custom.c +1 -1
- data/libxlsxwriter/src/drawing.c +160 -40
- data/libxlsxwriter/src/format.c +109 -25
- data/libxlsxwriter/src/hash_table.c +1 -1
- data/libxlsxwriter/src/metadata.c +283 -0
- data/libxlsxwriter/src/packager.c +794 -94
- data/libxlsxwriter/src/relationships.c +1 -1
- data/libxlsxwriter/src/shared_strings.c +2 -4
- data/libxlsxwriter/src/styles.c +353 -58
- data/libxlsxwriter/src/table.c +304 -0
- data/libxlsxwriter/src/theme.c +1 -1
- data/libxlsxwriter/src/utility.c +143 -43
- data/libxlsxwriter/src/vml.c +1062 -0
- data/libxlsxwriter/src/workbook.c +567 -77
- data/libxlsxwriter/src/worksheet.c +6668 -1462
- data/libxlsxwriter/src/xmlwriter.c +95 -5
- data/libxlsxwriter/third_party/dtoa/Makefile +42 -0
- data/libxlsxwriter/third_party/dtoa/emyg_dtoa.c +461 -0
- data/libxlsxwriter/third_party/dtoa/emyg_dtoa.h +26 -0
- data/libxlsxwriter/third_party/md5/Makefile +42 -0
- data/libxlsxwriter/third_party/md5/md5.c +291 -0
- data/libxlsxwriter/third_party/md5/md5.h +45 -0
- data/libxlsxwriter/third_party/minizip/Makefile +3 -8
- data/libxlsxwriter/third_party/minizip/Makefile.orig +8 -4
- data/libxlsxwriter/third_party/minizip/MiniZip64_Changes.txt +1 -1
- data/libxlsxwriter/third_party/minizip/configure.ac +1 -1
- data/libxlsxwriter/third_party/minizip/crypt.h +13 -16
- data/libxlsxwriter/third_party/minizip/ioapi.c +31 -57
- data/libxlsxwriter/third_party/minizip/ioapi.h +31 -23
- data/libxlsxwriter/third_party/minizip/iowin32.c +29 -45
- data/libxlsxwriter/third_party/minizip/iowin32.h +4 -4
- data/libxlsxwriter/third_party/minizip/miniunz.c +29 -56
- data/libxlsxwriter/third_party/minizip/minizip.c +38 -49
- data/libxlsxwriter/third_party/minizip/mztools.c +1 -7
- data/libxlsxwriter/third_party/minizip/unzip.c +202 -342
- data/libxlsxwriter/third_party/minizip/unzip.h +74 -74
- data/libxlsxwriter/third_party/minizip/zip.c +165 -218
- data/libxlsxwriter/third_party/minizip/zip.h +164 -154
- data/libxlsxwriter/third_party/tmpfileplus/Makefile +3 -3
- data/libxlsxwriter/version.txt +1 -1
- data/test/auto_width_test.rb +20 -0
- data/test/default_format_test.rb +1 -1
- data/test/validations_test.rb +3 -3
- data/test/worksheet_test.rb +6 -1
- metadata +33 -7
- data/libxlsxwriter/.travis.yml +0 -37
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# libxlsxwriter: Submitting Pull Requests
|
|
2
|
+
|
|
3
|
+
# Pull Requests and Contributing to Libxlsxwriter
|
|
4
|
+
|
|
5
|
+
All patches and pull requests are welcome but in general you should start with
|
|
6
|
+
an issue tracker to describe what you intend to do before you do it.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Getting Started
|
|
10
|
+
|
|
11
|
+
1. Pull requests and new feature proposals must start with an [issue
|
|
12
|
+
tracker][issues]. This serves as the focal point for the design discussion.
|
|
13
|
+
2. Describe what you plan to do. If there are API changes add some code
|
|
14
|
+
example to demonstrate them.
|
|
15
|
+
3. Fork the repository.
|
|
16
|
+
4. Run all the tests to make sure the current code works on your system using
|
|
17
|
+
`make test`. See the [Running the Test Suite][tests] section of the docs
|
|
18
|
+
for instructions.
|
|
19
|
+
5. Create a feature branch for your new feature.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
[tests]: http://libxlsxwriter.github.io/running_the_tests.html
|
|
23
|
+
|
|
24
|
+
### Code Style
|
|
25
|
+
|
|
26
|
+
The code style is mainly K&R style with 4 space indents.
|
|
27
|
+
|
|
28
|
+
The author uses GNU indent (`gindent`) 2.2.10 with the following options:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
--braces-on-if-line
|
|
32
|
+
--braces-on-struct-decl-line
|
|
33
|
+
--case-indentation 4
|
|
34
|
+
--continue-at-parentheses
|
|
35
|
+
--declaration-comment-column 0
|
|
36
|
+
--format-first-column-comments
|
|
37
|
+
--honour-newlines
|
|
38
|
+
--ignore-profile
|
|
39
|
+
--indent-label 0
|
|
40
|
+
--indent-level 4
|
|
41
|
+
--no-space-after-function-call-names
|
|
42
|
+
--no-tabs
|
|
43
|
+
--swallow-optional-blank-lines
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
The [indent configuration file][indentpro] is available in the repo. The code
|
|
47
|
+
can be indented automatically if the same version of `gindent` is used with
|
|
48
|
+
the following make command:
|
|
49
|
+
|
|
50
|
+
```shell
|
|
51
|
+
make indent
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Note, make sure you have backed up your files or added them to the index
|
|
55
|
+
before running this command.
|
|
56
|
+
|
|
57
|
+
In general follow the existing style in the code.
|
|
58
|
+
|
|
59
|
+
[indentpro]: https://github.com/jmcnamara/libxlsxwriter/blob/master/.indent.pro
|
|
60
|
+
|
|
61
|
+
### Writing and Running Tests
|
|
62
|
+
|
|
63
|
+
Any significant features should be accompanied by a test. See the `test`
|
|
64
|
+
directory and the [Running the Test Suite][tests] section of the docs for
|
|
65
|
+
details of the test setup.
|
|
66
|
+
|
|
67
|
+
The tests can be run as follows:
|
|
68
|
+
|
|
69
|
+
```shell
|
|
70
|
+
make test
|
|
71
|
+
```
|
|
72
|
+
Same as:
|
|
73
|
+
|
|
74
|
+
```shell
|
|
75
|
+
make test_unit
|
|
76
|
+
make test_functional
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
The functional tests require the Python module [pytest][pytest] as a test runner.
|
|
80
|
+
|
|
81
|
+
If you have `valgrind` installed you can use the test suite to check for memory leaks:
|
|
82
|
+
|
|
83
|
+
```shell
|
|
84
|
+
make test_valgrind
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
When you push your changes they will also be tested automatically using
|
|
88
|
+
[GitHub Actions][actions].
|
|
89
|
+
|
|
90
|
+
[actions]: https://github.com/jmcnamara/libxlsxwriter/actions
|
|
91
|
+
[pytest]: http://pytest.org/
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
### Documentation
|
|
95
|
+
|
|
96
|
+
The `libxlsxwriter` documentation is written in Doxygen format in the header
|
|
97
|
+
files and in additional `.dox` files in the `docs/src` directory of the
|
|
98
|
+
repo. The documentation can be built as follows:
|
|
99
|
+
|
|
100
|
+
```shell
|
|
101
|
+
make docs
|
|
102
|
+
open docs/html/index.html
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### Example programs
|
|
107
|
+
|
|
108
|
+
If applicable add an example program to the `examples` directory. Example
|
|
109
|
+
files can be built using:
|
|
110
|
+
|
|
111
|
+
```shell
|
|
112
|
+
make docs
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Copyright and License
|
|
116
|
+
|
|
117
|
+
Copyright remains with the original author. Do not include additional
|
|
118
|
+
copyright claims or Licensing requirements. GitHub and the `git` repository
|
|
119
|
+
will record your contribution and it will be acknowledged it in the Changes
|
|
120
|
+
file.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Submitting the Pull Request
|
|
124
|
+
|
|
125
|
+
If your change involves several incremental `git` commits then `rebase` or
|
|
126
|
+
`squash` them onto another branch so that the Pull Request is a single commit
|
|
127
|
+
or a small number of logical commits.
|
|
128
|
+
|
|
129
|
+
Push your changes to GitHub and submit the Pull Request with a hash link to
|
|
130
|
+
the to the Issue tracker that was opened above.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Test CMake build
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
name:
|
|
8
|
+
Cmake
|
|
9
|
+
strategy:
|
|
10
|
+
fail-fast: false
|
|
11
|
+
matrix:
|
|
12
|
+
cc: [gcc, clang]
|
|
13
|
+
cmake_flags: ["",
|
|
14
|
+
"-DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON",
|
|
15
|
+
"-DUSE_DTOA_LIBRARY=ON -DBUILD_TESTS=ON",
|
|
16
|
+
"-DUSE_MEM_FILE=ON -DBUILD_TESTS=ON",
|
|
17
|
+
"-DUSE_NO_MD5=ON -DBUILD_TESTS=ON",
|
|
18
|
+
"-DUSE_OPENSSL_MD5=ON -DBUILD_TESTS=ON",
|
|
19
|
+
"-DUSE_STANDARD_TMPFILE=ON -DBUILD_TESTS=ON",
|
|
20
|
+
"-DUSE_SYSTEM_MINIZIP=ON -DBUILD_TESTS=ON",
|
|
21
|
+
"-DUSE_SYSTEM_MINIZIP=ON -DUSE_OPENSSL_MD5=ON -DBUILD_TESTS=ON"]
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
env:
|
|
24
|
+
CC: ${{ matrix.cc }}
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v2
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
pip install pytest
|
|
33
|
+
sudo apt update
|
|
34
|
+
sudo apt-get -y install zlib1g-dev
|
|
35
|
+
sudo apt-get -y install libminizip-dev
|
|
36
|
+
sudo apt-get -y install libssl-dev
|
|
37
|
+
|
|
38
|
+
- name: Configure CMake
|
|
39
|
+
working-directory: ${{ github.workspace }}/cmake
|
|
40
|
+
run: cmake .. -DBUILD_TESTS=ON ${{ matrix.cmake_flags }} -DCMAKE_BUILD_TYPE=Release
|
|
41
|
+
|
|
42
|
+
- name: Build
|
|
43
|
+
working-directory: ${{ github.workspace }}/cmake
|
|
44
|
+
run: cmake --build . --config Release --parallel
|
|
45
|
+
|
|
46
|
+
- name: Test
|
|
47
|
+
working-directory: ${{ github.workspace }}/cmake
|
|
48
|
+
run: ctest -C Release -V
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Check code style
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
name:
|
|
8
|
+
Check code style
|
|
9
|
+
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v2
|
|
14
|
+
|
|
15
|
+
- name: Install dependencies
|
|
16
|
+
run: |
|
|
17
|
+
sudo apt-get -y install indent
|
|
18
|
+
sudo ln -s /usr/bin/indent /usr/bin/gindent
|
|
19
|
+
|
|
20
|
+
- name: Make indent
|
|
21
|
+
run: |
|
|
22
|
+
make indent
|
|
23
|
+
git status | grep 'nothing to commit'
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Coverity Scan
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [coverity]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
coverity:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
|
|
12
|
+
- uses: actions/checkout@v2
|
|
13
|
+
|
|
14
|
+
- name: Build third party libs to exclude them from scan
|
|
15
|
+
run: make third_party
|
|
16
|
+
|
|
17
|
+
- uses: vapier/coverity-scan-action@v1
|
|
18
|
+
with:
|
|
19
|
+
project: libxlsxwriter
|
|
20
|
+
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
|
|
21
|
+
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
|
22
|
+
command: make -C src libxlsxwriter.a
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Test Make build
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
name:
|
|
8
|
+
Make
|
|
9
|
+
strategy:
|
|
10
|
+
fail-fast: false
|
|
11
|
+
matrix:
|
|
12
|
+
cc: [gcc, clang]
|
|
13
|
+
make_flags: ["",
|
|
14
|
+
"USE_STANDARD_TMPFILE=1",
|
|
15
|
+
"USE_SYSTEM_MINIZIP=1",
|
|
16
|
+
"USE_DTOA_LIBRARY=1",
|
|
17
|
+
"USE_NO_MD5=1",
|
|
18
|
+
"USE_OPENSSL_MD5=1",
|
|
19
|
+
"USE_MEM_FILE=1"]
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
env:
|
|
22
|
+
CC: ${{ matrix.cc }}
|
|
23
|
+
CXX: ${{ matrix.cc }}
|
|
24
|
+
CFLAGS: '-Werror'
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v2
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
pip install pytest
|
|
33
|
+
sudo apt update
|
|
34
|
+
sudo apt-get -y install zlib1g-dev
|
|
35
|
+
sudo apt-get -y install libminizip-dev
|
|
36
|
+
sudo apt-get -y install libssl-dev
|
|
37
|
+
sudo apt-get -y install valgrind
|
|
38
|
+
|
|
39
|
+
- name: make
|
|
40
|
+
run: ${{ matrix.make_flags }} make V=1
|
|
41
|
+
|
|
42
|
+
- name: test unit
|
|
43
|
+
run: ${{ matrix.make_flags }} make test_unit V=1
|
|
44
|
+
|
|
45
|
+
- name: test functional
|
|
46
|
+
run: ${{ matrix.make_flags }} make test_functional V=1 -j
|
|
47
|
+
|
|
48
|
+
- name: test cpp
|
|
49
|
+
run: ${{ matrix.make_flags }} make test_cpp V=1
|
|
50
|
+
|
|
51
|
+
- name: test examples
|
|
52
|
+
run: ${{ matrix.make_flags }} make examples V=1
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Test for memory leaks
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
name:
|
|
8
|
+
Valgrind
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
env:
|
|
11
|
+
CC: gcc
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v2
|
|
15
|
+
|
|
16
|
+
- name: Install dependencies
|
|
17
|
+
run: |
|
|
18
|
+
sudo apt update
|
|
19
|
+
sudo apt-get -y install valgrind
|
|
20
|
+
sudo apt-get -y install zlib1g-dev
|
|
21
|
+
|
|
22
|
+
- name: test valgrind
|
|
23
|
+
run: make test_valgrind V=1 -j 2
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: Test Cmake build on Windows
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
name: CMake on Windows
|
|
8
|
+
|
|
9
|
+
strategy:
|
|
10
|
+
fail-fast: false
|
|
11
|
+
matrix:
|
|
12
|
+
cmake_flags: ["-DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON",
|
|
13
|
+
"-DUSE_DTOA_LIBRARY=ON -DBUILD_TESTS=ON",
|
|
14
|
+
#"-DUSE_SYSTEM_MINIZIP=ON -DBUILD_TESTS=ON",
|
|
15
|
+
#"-DUSE_SYSTEM_MINIZIP=ON -DUSE_OPENSSL_MD5=ON -DBUILD_TESTS=ON",
|
|
16
|
+
"-DUSE_OPENSSL_MD5=ON -DBUILD_TESTS=ON",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
runs-on: windows-latest
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v2
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
working-directory: ${{env.GITHUB_WORKSPACE}}
|
|
26
|
+
shell: cmd
|
|
27
|
+
run: |
|
|
28
|
+
vcpkg.exe install zlib:x64-windows minizip:x64-windows openssl:x64-windows
|
|
29
|
+
vcpkg.exe integrate install
|
|
30
|
+
pip install pytest
|
|
31
|
+
|
|
32
|
+
- name: Configure CMake
|
|
33
|
+
working-directory: ${{env.GITHUB_WORKSPACE}}
|
|
34
|
+
shell: cmd
|
|
35
|
+
run: |
|
|
36
|
+
cd cmake
|
|
37
|
+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
|
38
|
+
cmake .. -DCMAKE_BUILD_TYPE=Release ${{ matrix.cmake_flags }} -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -A x64
|
|
39
|
+
|
|
40
|
+
- name: Build
|
|
41
|
+
working-directory: ${{env.GITHUB_WORKSPACE}}
|
|
42
|
+
shell: cmd
|
|
43
|
+
run: |
|
|
44
|
+
cd cmake
|
|
45
|
+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
|
46
|
+
cmake --build . --config Release
|
|
47
|
+
|
|
48
|
+
- name: Test
|
|
49
|
+
working-directory: ${{env.GITHUB_WORKSPACE}}
|
|
50
|
+
shell: cmd
|
|
51
|
+
run: |
|
|
52
|
+
cd cmake
|
|
53
|
+
copy test\functional\src\Release\*.exe test\functional\src
|
|
54
|
+
pytest -v test/functional
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Zig Build
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
strategy:
|
|
8
|
+
fail-fast: false
|
|
9
|
+
matrix:
|
|
10
|
+
runs-on: [ubuntu-latest, macos-latest, windows-latest]
|
|
11
|
+
runs-on: ${{ matrix.runs-on }}
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
with:
|
|
15
|
+
submodules: recursive
|
|
16
|
+
fetch-depth: 0
|
|
17
|
+
- uses: goto-bus-stop/setup-zig@v2
|
|
18
|
+
with:
|
|
19
|
+
version: 0.11.0
|
|
20
|
+
|
|
21
|
+
- name: Build Summary
|
|
22
|
+
run: zig build -DBUILD_TESTS -DBUILD_EXAMPLES -DUSE_SYSTEM_MINIZIP --summary all -freference-trace
|
data/libxlsxwriter/.gitignore
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
*.a
|
|
2
2
|
*.o
|
|
3
3
|
*.so
|
|
4
|
+
*.so.*
|
|
4
5
|
*.to
|
|
5
6
|
*.lo
|
|
6
7
|
*.la
|
|
7
8
|
*.dylib
|
|
8
9
|
*.dll
|
|
10
|
+
*.gcno
|
|
11
|
+
*.gcda
|
|
9
12
|
test_*
|
|
10
13
|
!test_*.c
|
|
11
14
|
!test_*.cpp
|
|
@@ -35,10 +38,12 @@ docs/latex
|
|
|
35
38
|
_temp.c
|
|
36
39
|
examples/*
|
|
37
40
|
!examples/*.c
|
|
38
|
-
!examples
|
|
41
|
+
!examples/*.png
|
|
39
42
|
!examples/Makefile
|
|
43
|
+
!examples/vbaProject.bin
|
|
40
44
|
cov-int
|
|
41
45
|
libxlsxwriter-coverity.tgz
|
|
46
|
+
build
|
|
42
47
|
|
|
43
48
|
third_party/zlib-1.2.8/configure.log
|
|
44
49
|
third_party/zlib-1.2.8/contrib/minizip/miniunz
|
|
@@ -48,3 +53,13 @@ third_party/zlib-1.2.8/examplesh
|
|
|
48
53
|
third_party/zlib-1.2.8/minigzip
|
|
49
54
|
third_party/zlib-1.2.8/minigzipsh
|
|
50
55
|
third_party/zlib-1.2.8/zlib.pc
|
|
56
|
+
|
|
57
|
+
cmake
|
|
58
|
+
!cmake/FindMINIZIP.cmake
|
|
59
|
+
!cmake/FindPackage.cmake
|
|
60
|
+
!cmake/i686-toolchain.cmake
|
|
61
|
+
|
|
62
|
+
.vscode
|
|
63
|
+
|
|
64
|
+
zig-cache/
|
|
65
|
+
zig-out/
|
data/libxlsxwriter/.indent.pro
CHANGED
|
@@ -44,8 +44,10 @@
|
|
|
44
44
|
|
|
45
45
|
/* libxlsxwriter typedefs. */
|
|
46
46
|
-T lxw_app
|
|
47
|
+
-T lxw_author_id
|
|
47
48
|
-T lxw_autofilter
|
|
48
49
|
-T lxw_border
|
|
50
|
+
-T lxw_button_options
|
|
49
51
|
-T lxw_cell
|
|
50
52
|
-T lxw_chart
|
|
51
53
|
-T lxw_chart_axis
|
|
@@ -56,6 +58,8 @@
|
|
|
56
58
|
-T lxw_chart_axis_tick_position
|
|
57
59
|
-T lxw_chart_axis_type
|
|
58
60
|
-T lxw_chart_blank
|
|
61
|
+
-T lxw_chart_custom_label
|
|
62
|
+
-T lxw_chart_data_label
|
|
59
63
|
-T lxw_chart_error_bar_axis
|
|
60
64
|
-T lxw_chart_error_bar_cap
|
|
61
65
|
-T lxw_chart_error_bar_direction
|
|
@@ -71,6 +75,7 @@
|
|
|
71
75
|
-T lxw_chart_line_dash_type
|
|
72
76
|
-T lxw_chart_marker
|
|
73
77
|
-T lxw_chart_marker_type
|
|
78
|
+
-T lxw_chart_options
|
|
74
79
|
-T lxw_chart_pattern
|
|
75
80
|
-T lxw_chart_pattern_type
|
|
76
81
|
-T lxw_chart_point
|
|
@@ -83,10 +88,16 @@
|
|
|
83
88
|
-T lxw_col_options
|
|
84
89
|
-T lxw_col_t
|
|
85
90
|
-T lxw_color_t
|
|
91
|
+
-T lxw_comment
|
|
92
|
+
-T lxw_comment_options
|
|
93
|
+
-T lxw_cond_format_hash_element
|
|
94
|
+
-T lxw_cond_format_obj
|
|
95
|
+
-T lxw_conditional_format
|
|
86
96
|
-T lxw_content_types
|
|
87
97
|
-T lxw_core
|
|
88
98
|
-T lxw_custom
|
|
89
99
|
-T lxw_custom_property
|
|
100
|
+
-T lxw_data_val_obj
|
|
90
101
|
-T lxw_data_validation
|
|
91
102
|
-T lxw_datetime
|
|
92
103
|
-T lxw_defined_name
|
|
@@ -94,21 +105,28 @@
|
|
|
94
105
|
-T lxw_drawing
|
|
95
106
|
-T lxw_drawing_coords
|
|
96
107
|
-T lxw_drawing_object
|
|
108
|
+
-T lxw_drawing_rel_id
|
|
97
109
|
-T lxw_error
|
|
98
110
|
-T lxw_fill
|
|
111
|
+
-T lxw_filter_rule
|
|
112
|
+
-T lxw_filter_rule_obj
|
|
99
113
|
-T lxw_font
|
|
100
114
|
-T lxw_format
|
|
101
115
|
-T lxw_hash_element
|
|
102
116
|
-T lxw_hash_table
|
|
103
117
|
-T lxw_header_footer_options
|
|
104
118
|
-T lxw_heading_pair
|
|
119
|
+
-T lxw_image_md5
|
|
105
120
|
-T lxw_image_options
|
|
106
121
|
-T lxw_merged_range
|
|
122
|
+
-T lxw_metadata
|
|
123
|
+
-T lxw_object_properties
|
|
107
124
|
-T lxw_packager
|
|
108
125
|
-T lxw_panes
|
|
109
126
|
-T lxw_part_name
|
|
110
127
|
-T lxw_print_area
|
|
111
128
|
-T lxw_protection
|
|
129
|
+
-T lxw_protection_obj
|
|
112
130
|
-T lxw_rel_tuple
|
|
113
131
|
-T lxw_relationships
|
|
114
132
|
-T lxw_repeat_cols
|
|
@@ -124,8 +142,14 @@
|
|
|
124
142
|
-T lxw_sheet
|
|
125
143
|
-T lxw_sst
|
|
126
144
|
-T lxw_styles
|
|
145
|
+
-T lxw_table
|
|
146
|
+
-T lxw_table_column
|
|
147
|
+
-T lxw_table_obj
|
|
148
|
+
-T lxw_table_options
|
|
127
149
|
-T lxw_theme
|
|
128
150
|
-T lxw_tuple
|
|
151
|
+
-T lxw_vml
|
|
152
|
+
-T lxw_vml_obj
|
|
129
153
|
-T lxw_workbook
|
|
130
154
|
-T lxw_workbook_options
|
|
131
155
|
-T lxw_worksheet
|