Skip to content

Commit b616f53

Browse files
committed
Upgraded to version 5.20.2.
1 parent b12f8b0 commit b616f53

File tree

476 files changed

+42441
-10176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

476 files changed

+42441
-10176
lines changed

.github/workflows/brief.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
platform: [windows-latest, macos-latest, ubuntu-18.04]
18+
platform: [windows-latest, macos-latest, ubuntu-latest]
1919
xml_parser_option: ["-DWITH_EXPAT"]
2020
with_namespace: ["True"]
2121
strict: ["True"]
2222
with_examples: ["True"]
2323
package_option: ["-DWITH_ALL_PACKAGES=ON"]
2424
language_bindings:
25-
[ "-DWITH_JAVA=True -DWITH_CSHARP=True -DWITH_PYTHON=True"]
25+
[ "-DWITH_JAVA=True -DWITH_CSHARP=True"]
2626
cpp_standard: [98, 20]
2727
runs-on: ${{ matrix.platform }}
2828

@@ -72,14 +72,17 @@ jobs:
7272
shell: bash
7373
run: |
7474
echo RUNTIME_LINKING_OPTION="-DWITH_STATIC_RUNTIME=ON" >> "${GITHUB_ENV}"
75+
echo PYTHON_LINKING_OPTION="-DWITH_PYTHON=ON" >> "${GITHUB_ENV}"
76+
7577
7678
- name: Install Ubuntu dependencies
7779
# ubuntu already has SWIG and libxml2 by default
78-
if: matrix.platform == 'ubuntu-18.04'
80+
if: matrix.platform == 'ubuntu-latest'
7981
shell: bash
8082
run: |
83+
sudo apt-get update
8184
sudo apt-get install -y check ccache
82-
echo PYTHON_LINKING_OPTION="-DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}"
85+
echo PYTHON_LINKING_OPTION="-DWITH_PYTHON=ON -DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}"
8386
echo R_BINDINGS="-DWITH_R=True" >> "${GITHUB_ENV}"
8487
git clone https://github.com/libexpat/libexpat
8588
cmake -G Ninja -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DEXPAT_BUILD_TESTS=OFF -DEXPAT_BUILD_TOOLS=OFF -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./dependencies -B libexpat -S libexpat/expat

.github/workflows/doxygen.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Documentation generation
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, synchronize, ready_for_review, reopened] # defaults + ready_to_review
7+
branches:
8+
- development
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- uses: seanmiddleditch/gha-setup-ninja@master
18+
19+
- name: Install Ubuntu dependencies
20+
shell: bash
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install --no-install-recommends -y check ccache doxygen graphviz
24+
git clone https://github.com/libexpat/libexpat
25+
cmake -G Ninja -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DEXPAT_BUILD_TESTS=OFF -DEXPAT_BUILD_TOOLS=OFF -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./dependencies -B libexpat -S libexpat/expat
26+
cmake --build libexpat
27+
cmake --install libexpat
28+
29+
- name: Create Build Environment
30+
run: cmake -E make_directory ${{runner.workspace}}/build
31+
32+
# - name: Setup tmate session
33+
# uses: mxschmitt/action-tmate@v3
34+
35+
- name: Configure
36+
shell: bash
37+
working-directory: ${{runner.workspace}}/build
38+
run: |
39+
cmake $GITHUB_WORKSPACE \
40+
-G "Ninja" \
41+
-DCMAKE_BUILD_TYPE=Debug \
42+
-DWITH_CHECK=OFF \
43+
-DWITH_LIBXML=OFF \
44+
-DWITH_EXPAT=ON \
45+
-DWITH_STABLE_PACKAGES=ON \
46+
-DWITH_DOXYGEN=ON
47+
48+
- name: Build
49+
working-directory: ${{runner.workspace}}/build
50+
shell: bash
51+
run: |
52+
cmake --build . --config Release --target api_docs_cpp
53+
54+
- name: Deploy
55+
uses: peaceiris/actions-gh-pages@v3
56+
with:
57+
github_token: ${{ secrets.GITHUB_TOKEN }}
58+
publish_dir: ./docs/formatted/cpp-api

.github/workflows/extensive.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
xml_parser_option: ["-DWITH_LIBXML"]
24-
platform: [windows-latest, macos-latest, ubuntu-18.04]
24+
platform: [windows-latest, macos-latest, ubuntu-latest]
2525
with_namespace: ["True", "False"]
2626
strict: ["True"]
2727
with_examples: ["True"]
@@ -64,14 +64,14 @@ jobs:
6464
language_bindings: ""
6565
# extra Ubuntu runs
6666
- xml_parser_option: "-DWITH_EXPAT"
67-
platform: ubuntu-18.04
67+
platform: ubuntu-latest
6868
with_namespace: "True"
6969
strict: "True"
7070
with_examples: "True"
7171
package_option: "-DWITH_ALL_PACKAGES=ON"
7272
language_bindings: ""
7373
- xml_parser_option: "-DWITH_XERCES"
74-
platform: ubuntu-18.04
74+
platform: ubuntu-latest
7575
with_namespace: "True"
7676
strict: "True"
7777
with_examples: "True"
@@ -135,9 +135,10 @@ jobs:
135135
136136
- name: Install Ubuntu dependencies
137137
# ubuntu already has SWIG and libxml2 by default
138-
if: matrix.platform == 'ubuntu-18.04'
138+
if: matrix.platform == 'ubuntu-latest'
139139
shell: bash
140140
run: |
141+
sudo apt-get update
141142
sudo apt-get install -y check libxerces-c-dev expat ccache
142143
echo PYTHON_LINKING_OPTION="-DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}"
143144
git clone https://github.com/libexpat/libexpat

.github/workflows/matlab.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Matlab (ubuntu) build and test
2+
3+
on: [push]
4+
5+
env:
6+
MATLAB_VERSION: R2021a
7+
CC: gcc-9
8+
CXX: g++-9
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- uses: seanmiddleditch/gha-setup-ninja@master
18+
19+
- name: Set up MATLAB
20+
uses: matlab-actions/setup-matlab@v1
21+
# with:
22+
# release: ${{ env.MATLAB_VERSION }}
23+
24+
- name: Install Ubuntu dependencies
25+
shell: bash
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y check ccache
29+
git clone https://github.com/libexpat/libexpat
30+
cmake -G Ninja -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DEXPAT_BUILD_TESTS=OFF -DEXPAT_BUILD_TOOLS=OFF -DEXPAT_BUILD_EXAMPLES=OFF -DEXPAT_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=./dependencies -B libexpat -S libexpat/expat
31+
cmake --build libexpat
32+
cmake --install libexpat
33+
34+
- name: Create Build Environment
35+
run: cmake -E make_directory ${{runner.workspace}}/build
36+
37+
# - name: Setup tmate session
38+
# uses: mxschmitt/action-tmate@v3
39+
40+
- name: Configure
41+
shell: bash
42+
working-directory: ${{runner.workspace}}/build
43+
run: |
44+
cmake $GITHUB_WORKSPACE \
45+
-G "Ninja" \
46+
-DCMAKE_BUILD_TYPE=Debug \
47+
-DWITH_CHECK=ON \
48+
-DWITH_LIBXML=OFF \
49+
-DWITH_EXPAT=ON \
50+
-DWITH_MATLAB=ON \
51+
-DWITH_STABLE_PACKAGES=ON
52+
53+
- name: Build
54+
working-directory: ${{runner.workspace}}/build
55+
shell: bash
56+
run: |
57+
cmake --build . --config Debug --target matlab_binding_TranslateSBML
58+
cmake --build . --config Debug --target matlab_binding_OutputSBML
59+
60+
- name: Run Test
61+
uses: matlab-actions/run-command@v1
62+
with:
63+
command: cd('../build/src/bindings/matlab/test'); runTests

.github/workflows/octave.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
working-directory: ${{runner.workspace}}/build
4343
shell: bash
4444
run: |
45-
cmake -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DWITH_BZIP2=ON -DWITH_CHECK=OFF -DWITH_EXPAT=ON -DWITH_LIBXML=OFF -DWITH_OCTAVE=ON $GITHUB_WORKSPACE
45+
cmake -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DWITH_BZIP2=ON -DWITH_CHECK=OFF -DWITH_EXPAT=ON -DWITH_LIBXML=OFF -DWITH_OCTAVE=ON -DWITH_STABLE_PACKAGES=ON $GITHUB_WORKSPACE
4646
4747
- name: Build
4848
working-directory: ${{runner.workspace}}/build

.github/workflows/store-artefact.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
platform: [windows-latest, macos-latest, ubuntu-18.04]
22+
platform: [windows-latest, macos-latest, ubuntu-latest]
2323
xml_parser_option: ["-DWITH_EXPAT=ON"]
2424
with_namespace: ["True"]
2525
strict: ["True"]
@@ -88,9 +88,10 @@ jobs:
8888
8989
- name: Install Ubuntu dependencies
9090
# ubuntu already has SWIG but expat is too old
91-
if: matrix.platform == 'ubuntu-18.04'
91+
if: matrix.platform == 'ubuntu-latest'
9292
shell: bash
9393
run: |
94+
sudo apt-get update
9495
sudo apt-get install -y check ccache
9596
echo PYTHON_LINKING_OPTION="-DPYTHON_USE_DYNAMIC_LOOKUP=ON" >> "${GITHUB_ENV}"
9697
git clone https://github.com/libexpat/libexpat
@@ -245,7 +246,7 @@ jobs:
245246
if-no-files-found: error
246247

247248
- name: Upload Ubuntu binary archive
248-
if: matrix.platform == 'ubuntu-18.04'
249+
if: matrix.platform == 'ubuntu-latest'
249250
uses: actions/upload-artifact@v2
250251
with:
251252
name:

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,13 @@ TestRunner
227227
# temporary files during testing
228228
src/sbml/test/test-data/tempOut.xml
229229
dev/packages/create_archives/*.zip
230+
231+
# temporary files during documentation generation
232+
docs/src/common-text/libsbml-group-spatial-intro.html
233+
docs/src/doxygen-config-common.txt
234+
docs/src/doxygen-config-c.1.txt
235+
docs/src/doxygen-config-c.2.txt
236+
docs/src/doxygen-config-cpp.1.txt
237+
docs/src/doxygen-config-cpp.2.txt
238+
docs/src/doxygen-config-python.1.txt
239+
docs/src/doxygen-config-python.2.txt

CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ set (LIBSBML_FIND_MODULES "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/FindLIBSBML.
175175

176176
# Whether to compile examples
177177
option(WITH_EXAMPLES "Compile the libSBML example programs." OFF)
178+
option(WITH_CHECK "Enable testing of libSBML." OFF)
178179

179180
# Which language bindings should be built
180181
option(WITH_CSHARP "Generate the C# language interface for libSBML." OFF)
@@ -191,7 +192,7 @@ option(WITH_STABLE_PACKAGES "Compile libSBML with all stable packages." OFF)
191192
option(WITH_ALL_PACKAGES "Compile libSBML with all packages." OFF)
192193

193194
if (WITH_ALL_PACKAGES)
194-
set(_EXPERIMENTAL_PACKGES "arrays;dyn;spatial;REQUIREDELEMENTS")
195+
set(_EXPERIMENTAL_PACKGES "arrays;dyn;REQUIREDELEMENTS")
195196
foreach(package ${_EXPERIMENTAL_PACKGES})
196197
string(TOUPPER ${package} package_upper)
197198
string(CONCAT package_option "ENABLE_" ${package_upper})
@@ -201,7 +202,7 @@ if (WITH_ALL_PACKAGES)
201202
endif(WITH_ALL_PACKAGES)
202203

203204
if (WITH_STABLE_PACKAGES)
204-
set(_STABLE_PACKGES "comp;distrib;fbc;groups;layout;multi;qual;render")
205+
set(_STABLE_PACKGES "comp;distrib;fbc;groups;layout;multi;qual;render;spatial")
205206
foreach(package ${_STABLE_PACKGES})
206207
string(TOUPPER ${package} package_upper)
207208
string(CONCAT package_option "ENABLE_" ${package_upper})
@@ -1060,10 +1061,10 @@ libSBML version ${PACKAGE_VERSION}
10601061
----------------------------------------------------------------------
10611062
10621063
More information and the latest version are available online at
1063-
http://sbml.org/Software/libSBML
1064+
https://sbml.org/software/libsbml/
10641065
10651066
Please report problems using the issue tracker at
1066-
http://sbml.org/Software/libsbml/issue-tracker
1067+
https://github.com/sbmlteam/libsbml/issues
10671068
10681069
To contact the developers directly, email [email protected]
10691070

CMakeModules/FindBZ2.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
include(CheckLibraryExists)
2+
13
string(TOUPPER ${PROJECT_NAME} _UPPER_PROJECT_NAME)
24
set(_PROJECT_DEPENDENCY_DIR ${_UPPER_PROJECT_NAME}_DEPENDENCY_DIR)
35

CMakeModules/FindLIBXML.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
include(CheckLibraryExists)
2+
include(CheckCSourceCompiles)
23

34
string(TOUPPER ${PROJECT_NAME} _UPPER_PROJECT_NAME)
45
set(_PROJECT_DEPENDENCY_DIR ${_UPPER_PROJECT_NAME}_DEPENDENCY_DIR)

0 commit comments

Comments
 (0)