Skip to content

Latest commit

 

History

History
82 lines (52 loc) · 2.1 KB

CONTRIBUTING.rst

File metadata and controls

82 lines (52 loc) · 2.1 KB

Contributing

Everyone is invited to contribute to this project. Feel free to create a pull request . If you find errors, omissions, inconsistencies or other things that need improvement, please create an issue.

Development Installation

Instead of pip-installing the latest release from PyPI, you should get the newest development version from Github:

git clone https://github.com/audeering/opensmile-python/
cd opensmile-python
# Create virutal environment for this project
# e.g.
# virtualenv --python="python3"  $HOME/.envs/opensmile-python
# source $HOME/.envs/opensmile-python/bin/activate
pip install -r requirements.txt

This way, your installation always stays up-to-date, even if you pull new changes from the Github repository.

Building the Documentation

If you make changes to the documentation, you can re-create the HTML pages using Sphinx. You can install it and a few other necessary packages with:

pip install -r docs/requirements.txt

To create the HTML pages, use:

python -m sphinx docs/ build/sphinx/html -b html

The generated files will be available in the directory :file:`build/sphinx/html/`.

It is also possible to automatically check if all links are still valid:

python -m sphinx docs/ build/sphinx/html -b linkcheck

Running the Tests

You'll need pytest for that. It can be installed with:

pip install -r tests/requirements.txt

To execute the tests, simply run:

python -m pytest

Creating a New Release

New releases are made using the following steps:

  1. Update CHANGELOG.rst
  2. Commit those changes as "Release X.Y.Z"
  3. Create an (annotated) tag with git tag -a X.Y.Z
  4. Push the commit and the tag to Github