setuptools: Add md5 and bcrypt as extra requirements

This commit is contained in:
Unrud 2018-04-20 14:57:35 +02:00 committed by Unrud
parent fe1cfad4d3
commit b16fac2cad
2 changed files with 5 additions and 3 deletions

View File

@ -18,8 +18,7 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi
install: install:
- pip3 install --upgrade passlib bcrypt - pip3 install --upgrade --editable .[test,md5,bcrypt]
- pip3 install --upgrade --editable .[test]
script: script:
- python3 setup.py test - python3 setup.py test

View File

@ -69,7 +69,10 @@ setup(
install_requires=["vobject==0.9.5", "python-dateutil==2.6.1"], install_requires=["vobject==0.9.5", "python-dateutil==2.6.1"],
setup_requires=pytest_runner, setup_requires=pytest_runner,
tests_require=tests_require, tests_require=tests_require,
extras_require={"test": tests_require}, extras_require={
"test": tests_require,
"md5": "passlib",
"bcrypt": "passlib[bcrypt]"},
keywords=["calendar", "addressbook", "CalDAV", "CardDAV"], keywords=["calendar", "addressbook", "CalDAV", "CardDAV"],
python_requires=">=3.3", python_requires=">=3.3",
classifiers=[ classifiers=[