From 510409f0749fc234f869a9adf534013a7dfda65a Mon Sep 17 00:00:00 2001 From: Alexandr Mansurov Date: Fri, 8 Oct 2021 23:28:42 +0200 Subject: [PATCH] Setup dependencies, tox, dummy test --- setup.py | 7 +++---- tests/test_cryptbase.py | 4 ++-- tox.ini | 4 ++++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index a9cbcfd..123f511 100755 --- a/setup.py +++ b/setup.py @@ -71,11 +71,10 @@ setup( ], python_requires='>=3.6', install_requires=[ - # eg: 'aspectlib==1.1.1', 'six>=1.7', + 'cryptography' ], extras_require={ - # eg: - # 'rst': ['docutils>=0.11'], - # ':python_version=="2.6"': ['argparse'], + 'django': ['django>=3.2'], + 'sqlalchemy': ['sqlalchemy>=1.4'] }, ) diff --git a/tests/test_cryptbase.py b/tests/test_cryptbase.py index 9824e19..1a1030a 100644 --- a/tests/test_cryptbase.py +++ b/tests/test_cryptbase.py @@ -1,6 +1,6 @@ -from cryptbase import main +import cryptbase def test_main(): - pass + assert cryptbase.__version__ == '0.0.0' diff --git a/tox.ini b/tox.ini index 1c26ccf..e1d435f 100644 --- a/tox.ini +++ b/tox.ini @@ -33,6 +33,8 @@ passenv = * usedevelop = false deps = + django + sqlalchemy pytest pytest-cov commands = @@ -57,6 +59,8 @@ commands = usedevelop = true deps = -r{toxinidir}/docs/requirements.txt + django + sqlalchemy commands = sphinx-build {posargs:-E} -b html docs dist/docs sphinx-build -b linkcheck docs dist/docs