-
-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Testing with --installpkg somewheel.whl
broken (Regression in 3.5.0)
#1042
Comments
@suutari thanks for pointing this out I'll fix it 👍 |
It seems that Tox 3.5.0 breaks the `--installpkg` option, so pin Tox version to 3.4.0 to fix the tests and to avoid such surprises caused by a new relesease for Tox in the future. See the relavant Tox issue and the failing Travis build log: tox-dev/tox#1042 https://travis-ci.org/suutari/prequ/jobs/438550460
Resolves #1042. cc @suutari <!-- updated by rtd-bot --> URL of RTD document: https://tox.readthedocs.io/en/1042/
@gaborbernat thanks for the quick fix! |
@suutari https://pypi.org/project/tox/3.5.1/ has been released and should address the issue; thanks for the report and let us know if you bump into any other issues!
|
@gaborbernat Thanks for the fix! However, even Tox 3.5.1 doesn't work with my use case yet (as 3.4.0 used to). See https://travis-ci.org/suutari/prequ/jobs/438805462 I guess the problem is that the wheel file is renamed to |
https://tox.readthedocs.io/en/latest/changelog.html#features details the goal of adding the hard link. We'll need to change to folder method though indeed, will try to do that tomorrow. If you're available feel free to create a PR doing that. |
Please note that the new hard linking approach (package.py:72) breakes if source path and destination path are on different filesystems. Instead of checking if hasattr(os, 'link'), what about trying to os.link and falling back to copying if an Exception is raised? |
In theory, both folders should be within |
Unfortunately it's my use case, since I'm building with Jenkins and then running tox inside a docker container with --installpkg AND --workdir /tmp/... |
Done via 46f4e84 |
Tox 3.5.2 seems to fix also the second issue with wheels (which was affecting my testing of Prequ). Thanks @gaborbernat! |
Great to hear, you're welcome. |
Tox 3.5.0 seems to break my Travis tests for Prequ. I have set the Travis configuration so that it runs
python setup.py bdist_wheel
and then runs astox -v --installpkg dist/*.whl
. This worked fine with earlier Tox versions (<=3.4.0).With Tox 3.5.0 my Travis job started to break with an exception raised from this line:
tox/src/tox/package.py
Line 64 in 5f2535f
The exception was
AttributeError: 'str' object has no attribute 'basename'
. Full trace back is available in the build log: https://travis-ci.org/suutari/prequ/jobs/438550460I think the error happens because
acquire_package
returns a barestr
if--instalpkg
is used, but otherwise it seems to return a_path.local.LocalPath
instance. The failing code increate_session_view
seems to assume (since commit 6538f74) that thepackage
is a a richPath
object rather than bare string.The text was updated successfully, but these errors were encountered: