Skip to content

Commit

Permalink
tox: add optional py3x-remote testenv
Browse files Browse the repository at this point in the history
  • Loading branch information
juarezr committed Dec 28, 2020
1 parent 0305447 commit 0e6145b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions remotes_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# packages for testing remote sources

fastavro>=0.24.2 ; python_version >= '3.4'
smbprotocol>=1.0.1
paramiko>=2.7.1
requests; python_version >= '3.4'
fsspec>=0.7.4 ; python_version >= '3.4'
aiohttp>=3.6.2 ; python_version >= '3.5.3'
s3fs>=0.2.2 ; python_version >= '3.4'
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ deps =
-rtest_requirements.txt
-roptional_requirements.txt

[testenv:{py36,py37,py38,py39}-remote]
# Create test containers with the following commands:
# docker run -it --name samba -p 139:139 -p 445:445 -d "dperson/samba" -p -u "user1;pass1" -s "public;/public-dir;yes;no;yes;all"
# docker run -it --name sftp -p 22:22 -d atmoz/sftp user2:pass2:::public
setenv =
PYTHONHASHSEED = 42
PETL_TEST_SMB=smb://WORKGROUP;user1:pass1@localhost/public/
PETL_TEST_SFTP=sftp://user1:pass1@localhost/public/
deps =
{[testenv]deps}
-rremotes_requirements.txt

[testenv:{py37,py38,py39}-docs]
# build documentation under similar environment to readthedocs
changedir = docs
Expand Down

0 comments on commit 0e6145b

Please sign in to comment.