Page MenuHomeFreeBSD

New port devel/py-noseofyeti
ClosedPublic

Authored by truckman on Feb 9 2016, 7:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 17 2024, 1:17 AM
Unknown Object (File)
Dec 30 2023, 2:13 PM
Unknown Object (File)
Dec 30 2023, 2:13 PM
Unknown Object (File)
Dec 20 2023, 1:28 AM
Unknown Object (File)
Nov 15 2023, 3:39 PM
Unknown Object (File)
Nov 7 2023, 6:38 AM
Unknown Object (File)
Nov 2 2023, 1:05 AM
Unknown Object (File)
Nov 1 2023, 3:39 PM
Subscribers
None

Details

Summary

Create new port for devel/py-nose-of-yeti

Nose plugin providing BDD dsl for python

Plugin for nose, inspired by http://github.com/fmeyer/yeti,
which uses a codec style to provide an RSpec style BDD dsl
for python tests

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

truckman retitled this revision from to New port devel/py-noseofyeti.
truckman updated this object.
truckman edited the test plan for this revision. (Show Details)
truckman added a reviewer: koobs.
koobs requested changes to this revision.Feb 9 2016, 7:26 AM
koobs edited edge metadata.
koobs added inline comments.
devel/py-noseofyeti/Makefile
9 ↗(On Diff #13138)

minor nit: capitalize Python

20–21 ↗(On Diff #13138)

Why building docs requires the test dependencies is beyond me. Probably worth test building docs without these installed to verify if this is true, or just an oversight by upstream.

38–43 ↗(On Diff #13138)

One of these should work in descending order of preference:

patch setup.py to add test_suite="nose.collector",

then do-test: cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test should work

or

do-test: cd ${WRKSRC} && ${PYTHON_CMD} -m nosetests

or

do-test: cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests-${PYTHON_VER}

This revision now requires changes to proceed.Feb 9 2016, 7:26 AM
devel/py-noseofyeti/Makefile
9 ↗(On Diff #13138)

Copied from upstream ...

devel/py-noseofyeti/Makefile
20–21 ↗(On Diff #13138)

It turns out these are needed. Sphinx barfs without them:

Exception occurred:

File "/wrkdirs/usr/ports/devel/py-noseofyeti/work/nose-of-yeti-e8f3110/noseOfYeti/specs/config_util_test.py", line 2, in <module>
  import fudge

ImportError: No module named fudge
The full traceback has been saved in /tmp/sphinx-err-Dld4XF.log, if you want to report the issue to the developers.

devel/py-noseofyeti/Makefile
38–43 ↗(On Diff #13138)

#2 fails like this:

python2.7 -m nosetests

/usr/local/bin/python2.7: No module named nosetests

#1 and #3 do this:

nosetests-2.7 |& head -30

EEEE......E....................EEEE.E.....EEEEEEE...............EEEEEEEEEEEEEEEEEEEEEEEEE

ERROR: noseOfYeti.specs.complex_tokeniser_test.Test_Tokeniser_Complex.test_keeps_good_indentation_in_body_with_spaces

Traceback (most recent call last):

File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
  self.test(*self.arg)
File "/wrkdirs/usr/ports/devel/py-noseofyeti/work/nose-of-yeti-e8f3110/noseOfYeti/specs/complex_tokeniser_test.py", line 165, in test_keeps_good_indentation_in_body_with_spaces
  (self.toka, test) |should| result_in(desired % {'o' : 'object'})

TypeError: 'NoneType' object is not callable

ERROR: noseOfYeti.specs.complex_tokeniser_test.Test_Tokeniser_Complex.test_keeps_good_indentation_in_body_with_tabs

Traceback (most recent call last):

File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
  self.test(*self.arg)
File "/wrkdirs/usr/ports/devel/py-noseofyeti/work/nose-of-yeti-e8f3110/noseOfYeti/specs/complex_tokeniser_test.py", line 170, in test_keeps_good_indentation_in_body_with_tabs
  (self.toka, test) |should| result_in(desired % {'o' : 'object'})

TypeError: 'NoneType' object is not callable

ERROR: noseOfYeti.specs.complex_tokeniser_test.Test_Tokeniser_Complex.test_works_with_space

Traceback (most recent call last):

File "/usr/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
  self.test(*self.arg)
File "/wrkdirs/usr/ports/devel/py-noseofyeti/work/nose-of-yeti-e8f3110/noseOfYeti/specs/complex_tokeniser_test.py", line 155, in test_works_with_space
  (self.toka, test) |should| result_in(desired % {'o' : 'object'})

TypeError: 'NoneType' object is not callable

devel/py-noseofyeti/Makefile
38–43 ↗(On Diff #13138)

Oops, that was supposed to be -m nose :)

devel/py-noseofyeti/Makefile
38–43 ↗(On Diff #13138)

Now it fails the same way as the other two.

Test.sh does this:
./test.sh

.........................................................................................

Ran 89 tests in 0.280s

OK

devel/py-noseofyeti/Makefile
38–43 ↗(On Diff #13138)

Yep, confirmed locally (except with one failure)

do-test: @cd ${WRKSRC} && ${PYTHON_CMD} test.sh is the way to go.

This removes the need for virtualenvwrapper and bash from TEST_DEPENDS (which are spurious in any case)

truckman edited edge metadata.

Fix Python capitalization and simplify do-test.

koobs edited edge metadata.

LGTM :)

This revision is now accepted and ready to land.Feb 9 2016, 9:01 AM
This revision was automatically updated to reflect the committed changes.