Skip to content

Commit

Permalink
Merge pull request hyperledger-indy#1693 from dbluhm/master
Browse files Browse the repository at this point in the history
IS-1286: Python wrapper test dependencies through pip extras
  • Loading branch information
jovfer authored Jun 28, 2019
2 parents 133e916 + 21aeb93 commit 612d14a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile.cd
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def linuxPythonTesting(env_name, network_name, testEnv, stashBuildResults) {
echo "${env_name} Libindy Test: Test python wrapper"

sh '''
python3.5 -m pip install --user -e . pytest==3.6.4 pytest-asyncio
python3.5 -m pip install --user -e .[test]
LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} RUST_LOG=indy::=debug TEST_POOL_IP=10.0.0.2 python3.5 -m pytest
'''
}
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def linuxPythonTesting(env_name, network_name, testEnv) {
echo "${env_name} Libindy Test: Test python wrapper"

sh '''
python3.5 -m pip install --user -e . pytest==3.6.4 pytest-asyncio
python3.5 -m pip install --user -e .[test]
LD_LIBRARY_PATH=./:${LD_LIBRARY_PATH} TEST_POOL_IP=10.0.0.2 python3.5 -m pytest
'''
}
Expand Down
9 changes: 8 additions & 1 deletion wrappers/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

PKG_VERSION = os.environ.get('PACKAGE_VERSION') or '1.9.0'

TEST_DEPS = [
'pytest<3.7', 'pytest-asyncio', 'base58'
]

setup(
name='python3-indy',
version=PKG_VERSION,
Expand All @@ -13,5 +17,8 @@
author_email='vyacheslav.gudkov@dsr-company.com',
description='This is the official SDK for Hyperledger Indy (https://www.hyperledger.org/projects), which provides a distributed-ledger-based foundation for self-sovereign identity (https://sovrin.org). The major artifact of the SDK is a c-callable library.',
install_requires=['base58'],
tests_require=['pytest<3.7', 'pytest-asyncio', 'base58']
tests_require=TEST_DEPS,
extras_require={
'test': TEST_DEPS
}
)

0 comments on commit 612d14a

Please sign in to comment.