-
Notifications
You must be signed in to change notification settings - Fork 72
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
test failures in suite; version -0.7.2; FAILED (failures=2) #57
Comments
Thanks for the report. What version of The docstring error is odd. It passes travis-ci for python 2.6, 2.7, 3.3, and 3.4. However, when I run it on my machine, it fails in Python 3.4, but works in 2.7. What's even weirder, though, is that I'll investigate further. Also, to run the tests, you can simply do |
Okay, these tests failures are benign. These particular tests are only supposed to be run before a new version of These tests get skipped if Let me know if you have any questions or concerns. I will close this issue in a day or so if no response. |
hmm, you mean it's version sensitive?? dev-python/toolz Normally I rely upon a version sensitivity to be specified, then I can simply set it and all is well. At this point I'd like reply to above. I can either exclude these tests on the basis that you the author declare them "Okay, these tests failures are benign." OR get the right versions set and have them all pass. Either 'works'. Thx for reply |
Yes, it's version-specific. The latest https://github.com/eriknw/cytoolz/blob/check_my_c_files/.travis.yml and with the results here: https://travis-ci.org/eriknw/cytoolz/builds/52994658 It was recently suggested that we have--and use, tag, etc.--a "release" branch in the pytoolz/cytoolz repo. I will do this for the next release. This branch uses a slightly modified .travis.yaml file and includes Cython-generated C files. We can skip the release tests if the version of https://github.com/pytoolz/cytoolz/blob/master/cytoolz/tests/dev_skip_test.py Regarding how you should proceed: you may update |
@erlknw; yes, either work we could add if toolz.version == cytoolz.toolz_version check here: would be good for future releases, but really, "because I declare them to be benign " is quite sufficient for me for now. As long as it is dealt with by an author, 'we' come to a decision accordingly. oh remember that a '*dev' version is not one generally embraced in gentoo. Just give us version release. Also, Travis is an optional testing system not used in a test phase in an ebuild. Here, It's merely a testing house used by upstream in preparing a testsuite before releasing it in a tagged version in a tarball. |
I'm glad I was able to clarify things! Thanks for raising the issue. I will make changes to avoid this type of confusion in the future. Is there anything you would like done differently in order for |
@eriknw , thx for your offer to line up with gentoo. I wish more could be like you re this. I just set a >= border version it the ebuild, emerged the dev-python/toolz-0.7.1 and all tests passed so all is good there. What I did notice though is "cytoolz is an implementation of the toolz package" which means that toolz is a run time dep. In the ebuild this was actually absent. I have ofc added it. Sure enough I find toolz is imported in the core module(s) of cytoolz. While it may be obvious (to the seasoned), what we rely on in is a stipulation in setup.py often achieved with install_requires=[package]. Sometimes authors add a requires.txt file somewhere in the source, then sometimes a file tests-require.txt etc. Currently I run the suite with |
Quick note: |
/mnt/gen2/TmpDir/portage/dev-python/cytoolz-0.7.2-r2/work/cytoolz-0.7.2/cytoolz/curried.py:# import toolz So it's not a runtime dep, a build dep? Is curried re only the tests making it a dep of tests? Looks it. There's also a cmd tests_require=[ ] examples; he makes a var tests_require=[ } then later |
Just to clarify, The line you mentioned
Regarding developmental/testing requirements, there is a file: requirements_devel.txt. Releases of |
Hmmmmm /cytoolz-0.7.2/cytoolz/curried.py "release tests if the version of toolz doesn't match the version" |
Cool, so I think we've addressed your immediate issue, and I've made changes that will hopefully avoid any such confusion in the future. Now, I think the final action item from this thread is how to version |
eeer, I thought we had but what comes to mind at the moment is simply to have a border version clearly set in setup.py. < does not require nose or toolz when running tests> This test? ( dev-python/nose[${PYTHON_USEDEP}]
>=dev-python/toolz-0.7.1[${PYTHON_USEDEP}] )" is what I have for the test phase in the ebuild for now however we have a contradiction. While you say that cytoolz does not require toolz when running tests, you ask how to get it to play nicely in an ebuild. I thought that you were setting tests to skip reading the toolz version if toolz was either absent or a versioned mis-match. I was expecting to drop The generic answer to the basic q from my stance is that a required version for the package is normally set in setup.py in install_requires=[ ] or tests_require(s)=[ ]. There are some other hybrids. These I will always check for and we take them as gospel and add them to the ebuild as they are written. On rare occasions we might find they aren't correct and file accordingly. Does this answer?. |
According to issue 13 the tests might be a relatively recent addition.
I found the .travis.yml and adjusted the running to what I had and ended with the same result.
PYTHONPATH=.:cytoolz- nosetests --with-doctest cytoolz
from the source and from an ebuild.
under pythons 2.7 3.3 3.4.
Do you require any further info?
The text was updated successfully, but these errors were encountered: