Skip to content

Commit

Permalink
Make backend dependencies optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Sep 20, 2023
1 parent 7df60c6 commit 61a4356
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
14 changes: 14 additions & 0 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,17 @@ To install :mod:`audbackend` run:
$ # virtualenv --python=python3 ${HOME}/.envs/audbackend
$ # source ${HOME}/.envs/audbackend/bin/activate
$ pip install audbackend
Per default,
only the file-system backend will be installed.
To install all backends run:

.. code-block:: bash
$ pip install audbackend[all]
or select single backends, e.g.

.. code-block:: bash
$ pip install audbackend[artifactory]
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,21 @@ classifiers = [
]
dependencies = [
'audeer >=1.20.0',
'dohq-artifactory >=0.8.1',
'pywin32; sys_platform == "win32"'
]
# Get version dynamically from git
# (needs setuptools_scm tools config below)
dynamic = ['version']

[project.optional-dependencies]
artifactory = [
'dohq-artifactory >=0.8.1',
]
all = [
'dohq-artifactory >=0.8.1',
]


[project.urls]
repository = 'https://github.com/audeering/audbackend/'
documentation = 'https://audeering.github.io/audbackend/'
Expand Down

0 comments on commit 61a4356

Please sign in to comment.