Skip to content

Template for openturns python modules

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

openturns/ottemplatepython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ottemplate module

ottemplate is a (non official) module for OpenTURNS. It serves as a template or example to build python modules designed to interact within the openturns platform.

Template update

One should update the template to its needs. For the moment there is no customize command for that purpose but this will be available soon. User can perform manually some changes:

  • Rename ottemplate folder into the name of the module
  • Update setup.py (replace ottemplate with the new module)
  • Rename also python files in the subfolder
  • Replace ottemplate in doc/conf.py by the name of the (new) module. Also the theme folder contains a layout that should be updated. Same operations are to be done in all doc (user_manual, index, developer_guide, examples)
  • Finally perform also changes in test and continuous-integration folders

Build from source

Get source:

$ git clone https://www.github.com/sofianehaddad/ottemplatepython.git

The install procedure is performed as follows:

$ pip install .

If you need to install the module in the user folder:

$ pip install . --user

To run the tests:

$ pytest

Finally to build the documentation, you should invoke the build_sphinx option:

$ python setup.py build_sphinx

This builds the documentation in the build folder. Another option is to launch the make command:

$ make html -C doc

Help pages

Here are some links to help on how to build a python module

https://www.sphinx-doc.org/en/master/usage/quickstart.html

https://python-packaging.readthedocs.io/en/latest/minimal.html

https://github.com/efekhari27/otquickmodule

About

Template for openturns python modules

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages