Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Oct 11, 2024
1 parent 9db4e44 commit 66761fa
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 14 deletions.
15 changes: 7 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required (VERSION 3.13)

option (BUILD_PYTHON "Build the python module for the library" ON)
option (USE_SPHINX "Use sphinx for documentation" ON)
option (USE_SPHINX "Use sphinx for documentation" OFF)
option (BUILD_SHARED_LIBS "Build shared libraries" ON)

# By default, build in Release mode. Must appear before project() command
Expand Down Expand Up @@ -53,16 +53,14 @@ set (OTMORRIS_DATA_PATH ${CMAKE_INSTALL_DATAROOTDIR})
set (OTMORRIS_CONFIG_CMAKE_PATH ${CMAKE_INSTALL_LIBDIR}/cmake/otmorris)
set (OTMORRIS_DOC_PATH ${CMAKE_INSTALL_DOCDIR})

set (CMAKE_CXX_STANDARD 11)

if (BUILD_PYTHON)
find_package (SWIG 3)
include (${SWIG_USE_FILE})

if (CMAKE_VERSION VERSION_LESS 3.24)
find_package (Python 3.5 COMPONENTS Interpreter Development)
if (CMAKE_VERSION VERSION_LESS 3.28)
find_package (Python 3.6 COMPONENTS Interpreter Development)
else ()
find_package (Python 3.5 COMPONENTS Interpreter Development.Module)
find_package (Python 3.6 COMPONENTS Interpreter Development.Module Development.SABIModule)
endif ()

if (Python_FOUND)
Expand All @@ -76,7 +74,8 @@ if (BUILD_PYTHON)
find_program (SPHINX_EXECUTABLE NAMES sphinx-build DOC "Sphinx Documentation Builder (sphinx-doc.org)")
find_python_module (numpydoc)
find_python_module (sphinx_gallery)
if (SPHINX_EXECUTABLE AND NUMPYDOC_FOUND AND SPHINX_GALLERY_FOUND AND MATPLOTLIB_FOUND)
find_python_module (sphinx_copybutton)
if (SPHINX_EXECUTABLE AND NUMPYDOC_FOUND AND SPHINX_GALLERY_FOUND AND SPHINX_COPYBUTTON_FOUND AND MATPLOTLIB_FOUND)
find_python_module (sphinx)
endif ()
if (NOT SPHINX_FOUND)
Expand Down Expand Up @@ -133,7 +132,7 @@ endmacro ( ot_add_current_dir_to_include_dirs )

set ( CPACK_PACKAGE_NAME ${PACKAGE_NAME} )
set ( CPACK_PACKAGE_VERSION_MAJOR 0 )
set ( CPACK_PACKAGE_VERSION_MINOR 16 )
set ( CPACK_PACKAGE_VERSION_MINOR 17 )
set ( CPACK_PACKAGE_VERSION_PATCH )
set ( CPACK_SOURCE_GENERATOR "TGZ;TBZ2" )
set (CPACK_BINARY_STGZ OFF CACHE BOOL "STGZ")
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
= 0.17 release (wip)

* Make bounds argument last to disambiguate constructors

= 0.16 release (2024-05-02)

* Maintenance
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.16
0.17
2 changes: 1 addition & 1 deletion distro/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
otmorris (0.16-0.1) unstable; urgency=low
otmorris (0.17-0.1) unstable; urgency=low

* Non-maintainer upload.
* Initial release.
Expand Down
2 changes: 1 addition & 1 deletion distro/rpm/otmorris.spec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
-DBUILD_SHARED_LIBS:BOOL=ON

Name: otmorris
Version: 0.16
Version: 0.17
Release: 0%{?dist}
Summary: OpenTURNS module
Group: System Environment/Libraries
Expand Down
10 changes: 8 additions & 2 deletions python/doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ imgmath_embed = True

extensions.append('matplotlib.sphinxext.plot_directive')

extensions.append('sphinx_copybutton')
copybutton_prompt_text = ">>> "

extensions.append('sphinx_gallery.gen_gallery')
sphinx_gallery_conf = {
'examples_dirs': ['examples'], # path to example scripts
Expand All @@ -78,7 +81,7 @@ sphinx_gallery_conf = {
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'
source_suffix = {'.rst': 'restructuredtext'}

# The encoding of source files.
#source_encoding = 'utf-8-sig'
Expand All @@ -88,7 +91,7 @@ master_doc = 'index'

# General information about the project.
project = u'OTMORRIS'
copyright = u'2015, Airbus-EDF-IMACS-Phimeca'
copyright = u'2015-2024, Airbus-EDF-IMACS-Phimeca'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -287,3 +290,6 @@ texinfo_documents = [

# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'

# If true, Sphinx will warn about all references where the target cannot be found.
nitpicky = True
2 changes: 1 addition & 1 deletion python/src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

from .otmorris import *

__version__ = '0.16'
__version__ = '0.17'

0 comments on commit 66761fa

Please sign in to comment.