|
From: | Kenneth Loafman |
Subject: | Re: [Duplicity-talk] Failure running tests. |
Date: | Thu, 5 Sep 2019 13:03:00 -0500 |
Scott,Have you tried updating your Mac? It's several years behind current software.duplicity uses a lot of python modules. The top of the tox listing from earlier shows the version numbers of the ones used in testing. Again, maybe an update?Why bzr or git: dist/makedist makes an install tar from the current directory. It uses bzr or git to get a list of the released filenames, builds a tarball using just those files, then tox uses the tarball to build the virtual environment under .tox/py37. Keeps the distribution clean that way, no stray files from the developer.That said, tox will not work for testing a tarball distribution. You'll have to use "setup.py test" and I'll have to rethink dist/makedist. My bad!...KenOn Tue, Sep 3, 2019 at 8:46 PM Scott Hannahs via Duplicity-talk <address@hidden> wrote:Ken,_______________________________________________If I look at .tox/log the log file created tonight is:actionid: toxmsg: packagingcmdargs: ['/sw/bin/python3.7', local('/sw/src/fink.build/duplicity-0.8.04-1/duplicity-0.8.04/setup.py'), 'sdist', '--formats=zip', '--dist-dir', local('/sw/src/fink.build/duplicity-0.8.04-1/duplicity-0.8.04/.tox/dist')]running sdistfailed to open trace file: [Errno 13] Permission denied: '/Users/sth/.bzr.log'bzr: ERROR: Not a branch: "/sw/src/fink.build/duplicity-0.8.04-1/duplicity-0.8.04/".fatal: Not a git repository (or any of the parent directories): .gitProcessing version 0.8.04Traceback (most recent call last):File "/sw/src/fink.build/duplicity-0.8.04-1/duplicity-0.8.04/dist/makedist", line 134, in <module>Main()File "/sw/src/fink.build/duplicity-0.8.04-1/duplicity-0.8.04/dist/makedist", line 125, in Maintarfile = MakeTar()File "/sw/src/fink.build/duplicity-0.8.04-1/duplicity-0.8.04/dist/makedist", line 90, in MakeTarassert not os.mkdir(os.path.join(tardir, u"po", lang)), langFileNotFoundError: [Errno 2] No such file or directory: 'duplicity-0.8.04/po/bg'mv: rename duplicity-0.8.04.tar.gz to .tox/dist/duplicity-0.8.04.tar.gz: No such file or directory/sw/lib/python3.7/site-packages/setuptools/dist.py:398: UserWarning: Normalizing '0.8.04' to '0.8.4'normalized_version,It seems that the testing needs access to a .bzr.log file in the home directory. This could be an issue since I am trying to build this in an anonymous account as security testing for side effects.I have tried running the test ("tox -e py37”) in my own directory as myself and still get the error the key lines are the bzr and git errors. Why is the testing system trying to sync using bzr or git?running sdistbzr: ERROR: Not a branch: "/sw/src/fink.build/duplicity-0.8.04-1/duplicity-0.8.04/".fatal: Not a git repository (or any of the parent directories): .gitProcessing version 0.8.04-ScottOn Sep 3, 2019, at 1:52 PM, Kenneth Loafman <address@hidden> wrote:Scott,When I run "tox -e py37" on my Mac I have no errors.Your errors in test_selection are the same as on py36, very weird.The permission errors causing test_replicate and test_restart are also odd. Do you have the system locked down more than normal? I test using just my own creds, not root..The unicode errors when reporting the permission errors are something that needs to be fixed, but are a distraction at this point.Try running under tox instead of fink just to eliminate one variable.I've pasted my run. Perhaps there is a version issue between our two systems?...Thanks,...Kenken@dione:~/workspace/duplicity-src8$ tox -e py37GLOB sdist-make: /Users/ken/workspace/duplicity-src8/setup.py
py37 create: /Users/ken/workspace/duplicity-src8/.tox/py37
py37 installdeps: -rrequirements.txt
WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
py37 inst: /Users/ken/workspace/duplicity-src8/.tox/.tmp/package/1/duplicity-0.0dev.tar.gz
WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration.
py37 installed: alabaster==0.7.12,astroid==2.2.5,atomicwrites==1.3.0,attrs==19.1.0,Babel==2.7.0,certifi==2019.6.16,chardet==3.0.4,coverage==4.5.4,docutils==0.15.2,duplicity==0.0.dev0,fasteners==0.15,fastimport==0.9.2,filelock==3.0.12,future==0.17.1,idna==2.8,imagesize==1.1.0,importlib-metadata==0.20,isort==4.3.21,Jinja2==2.10.1,lazy-object-proxy==1.4.2,MarkupSafe==1.1.1,mccabe==0.6.1,mock==3.0.5,monotonic==1.5,more-itertools==7.2.0,packaging==19.1,pexpect==4.7.0,pluggy==0.12.0,ptyprocess==0.6.0,py==1.8.0,pycodestyle==2.5.0,Pygments==2.4.2,pylint==2.3.1,pyparsing==2.4.2,pytest==5.1.2,pytest-cov==2.7.1,pytest-runner==5.1,pytz==2019.2,requests==2.22.0,six==1.12.0,snowballstemmer==1.9.0,Sphinx==2.2.0,sphinxcontrib-applehelp==1.0.1,sphinxcontrib-devhelp==1.0.1,sphinxcontrib-htmlhelp==1.0.2,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-qthelp==1.0.2,sphinxcontrib-serializinghtml==1.1.3,toml==0.10.0,tox==3.14.0,typed-ast==1.4.0,urllib3==1.25.3,virtualenv==16.7.5,wcwidth==0.1.7,wrapt==1.11.2,zipp==0.6.0
py37 run-test-pre: PYTHONHASHSEED='3996759775'
py37 run-test: commands[0] | python compilec.py
running build
running build_ext
building '_librsync' extension
creating build
creating build/temp.macosx-10.14-x86_64-3.7
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c _librsyncmodule.c -o build/temp.macosx-10.14-x86_64-3.7/_librsyncmodule.o
creating build/lib.macosx-10.14-x86_64-3.7
clang -bundle -undefined dynamic_lookup -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk build/temp.macosx-10.14-x86_64-3.7/_librsyncmodule.o -L/usr/local/lib -lrsync -o build/lib.macosx-10.14-x86_64-3.7/_librsync.cpython-37m-darwin.so
py37 run-test: commands[1] | pytest --cov=duplicity --cov-append --cov-report=
================================================= test session starts ==================================================
platform darwin -- Python 3.7.4, pytest-5.1.2, py-1.8.0, pluggy-0.12.0
cachedir: .tox/py37/.pytest_cache
rootdir: /Users/ken/workspace/duplicity-src8, inifile: tox.ini, testpaths: testing/unit, testing/functional
plugins: cov-2.7.1
collected 428 items
testing/unit/test_backend.py ............ [ 2%]
testing/unit/test_backend_instance.py ............................................................ [ 16%]
testing/unit/test_collections.py ........ [ 18%]
testing/unit/test_diffdir.py ....... [ 20%]
testing/unit/test_dup_temp.py .. [ 20%]
testing/unit/test_dup_time.py ...................... [ 25%]
testing/unit/test_file_naming.py ............. [ 28%]
testing/unit/test_globmatch.py ........................... [ 35%]
testing/unit/test_gpg.py .......... [ 37%]
testing/unit/test_gpginterface.py ...... [ 39%]
testing/unit/test_lazy.py ............................ [ 45%]
testing/unit/test_manifest.py ..... [ 46%]
testing/unit/test_patchdir.py ........ [ 48%]
testing/unit/test_path.py ..... [ 49%]
testing/unit/test_selection.py ............................................................................ [ 67%]
testing/unit/test_statistics.py ....... [ 69%]
testing/unit/test_tarfile.py . [ 69%]
testing/unit/test_tempdir.py .. [ 69%]
testing/unit/test_util.py . [ 70%]
testing/functional/test_badupload.py . [ 70%]
testing/functional/test_cleanup.py ... [ 71%]
testing/functional/test_final.py ........................... [ 77%]
testing/functional/test_log.py . [ 77%]
testing/functional/test_rdiffdir.py . [ 77%]
testing/functional/test_replicate.py ... [ 78%]
testing/functional/test_restart.py ................................ [ 85%]
testing/functional/test_selection.py .......................................ss........... [ 98%]
testing/functional/test_verify.py ........ [100%]
=================================================== warnings summary ===================================================
.tox/py37/lib/python3.7/site-packages/past/types/oldstr.py:5
/Users/ken/workspace/duplicity-src8/.tox/py37/lib/python3.7/site-packages/past/types/oldstr.py:5: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Iterable
.tox/py37/lib/python3.7/site-packages/past/builtins/misc.py:4
/Users/ken/workspace/duplicity-src8/.tox/py37/lib/python3.7/site-packages/past/builtins/misc.py:4: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
from collections import Mapping
testing/unit/test_globmatch.py:100
/Users/ken/workspace/duplicity-src8/testing/unit/test_globmatch.py:100: DeprecationWarning: invalid escape sequence \/
u"\/usr\/[^/]*\/bin\/")
-- Docs: https://docs.pytest.org/en/latest/warnings.html
================================ 426 passed, 2 skipped, 3 warnings in 560.97s (0:09:20) ================================
_______________________________________________________ summary ________________________________________________________
py37: commands succeeded
congratulations :)
Duplicity-talk mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
fixes0804.tgz
Description: application/gzip
[Prev in Thread] | Current Thread | [Next in Thread] |