Use setuptools extras instead of requiring user to manually specify deps

This commit is contained in:
Markus Unterwaditzer 2015-11-05 15:36:25 +01:00
parent b5b6788a3b
commit f74b6ac78e
3 changed files with 15 additions and 2 deletions

View file

@ -137,6 +137,10 @@ protocol. Vdirsyncer contains **highly experimental support** for it.
Do not use this storage if you're not prepared for data-loss and breakage. Do not use this storage if you're not prepared for data-loss and breakage.
To use them, you need to install some optional dependencies with::
pip install vdirsyncer[remotestorage]
.. autostorage:: vdirsyncer.storage.remotestorage.RemoteStorageContacts .. autostorage:: vdirsyncer.storage.remotestorage.RemoteStorageContacts
.. autostorage:: vdirsyncer.storage.remotestorage.RemoteStorageCalendars .. autostorage:: vdirsyncer.storage.remotestorage.RemoteStorageCalendars

View file

@ -44,7 +44,13 @@ System Keyring
While the command approach is quite flexible, it is often cumbersome to write a While the command approach is quite flexible, it is often cumbersome to write a
script fetching the system keyring. script fetching the system keyring.
Given that you have the keyring_ Python library installed, you can use:: Vdirsyncer can do this for you if you have the keyring_ package installed. How
you would obtain this package depends on how you installed vdirsyncer. If you
used pip, you can use the following command to also install keyring::
pip install vdirsyncer[keyring]
Then you can use::
[storage foo] [storage foo]
type = caldav type = caldav

View file

@ -42,5 +42,8 @@ setup(
'requests_toolbelt>=0.4.0', 'requests_toolbelt>=0.4.0',
'atomicwrites' 'atomicwrites'
], ],
extras_require={'keyring': ['keyring']} extras_require={
'keyring': ['keyring'],
'remotestorage': ['requests-oauthlib']
}
) )