[Bug 1395396] Review Request: python-sphinx_gallery - Sphinx extension to automatically generate an examples gallery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1395396



--- Comment #2 from Orion Poplawski <orion@xxxxxxxxxxxxx> ---
Spec URL: https://www.cora.nwra.com/~orion/fedora/python-sphinx-gallery.spec
SRPM URL:
https://www.cora.nwra.com/~orion/fedora/python-sphinx-gallery-0.1.5-2.fc26.src.rpm

* Sat Nov 19 2016 Orion Poplawski <orion@xxxxxxxxxxxxx> - 0.1.5-2
- Use github source, ship LICENSE
- Update URL
- Add needed requires

Good catch on all counts.  I went for adding a sphinx requirement as it does
not seem useful without it, although it doesn't appear to directly import
anything from it.  It is listed in requirements.txt.

But now I'm getting some test failures:

+ nosetests-2.7
/usr/lib64/python2.7/site-packages/matplotlib/font_manager.py:279: UserWarning:
Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may
take a moment.')
.........../builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/gen_rst.py:538:
UserWarning:
________________________________________________________________________________
/tmp/tmp1xCZ4j/raise.py failed to execute correctly:Traceback (most recent call
last):
  File "/builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/gen_rst.py",
line 518, in execute_code_block
    exec(code_block, example_globals)
  File "<string>", line 1, in <module>
NameError: name 'First_test_fail' is not defined
________________________________________________________________________________

  warnings.warn(fail_example_warning)


+ nosetests-3.5
/usr/lib64/python3.5/site-packages/matplotlib/font_manager.py:279: UserWarning:
Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may
take a moment.')
/usr/lib64/python3.5/site-packages/matplotlib/font_manager.py:279: UserWarning:
Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may
take a moment.')
...........EE..S...
======================================================================
ERROR: Test that failing examples are only executed until failing block
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File
"/builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/tests/test_gen_rst.py",
line 159, in test_fail_example
    gallery_conf['examples_dir'], gallery_conf)
  File "/builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/gen_rst.py",
line 599, in generate_file_rst
    if md5sum_is_current(example_file):
  File "/builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/gen_rst.py",
line 290, in md5sum_is_current
    src_md5 = get_md5sum(src_file)
  File "/builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/gen_rst.py",
line 277, in get_md5sum
    src_content = src_data.read()
  File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 99:
ordinal not in range(128)

======================================================================
ERROR: Test if only examples matching pattern are executed
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
    self.test(*self.arg)
  File
"/builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/tests/test_gen_rst.py",
line 192, in test_pattern_matching
    gallery_conf['examples_dir'], gallery_conf)
  File "/builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/gen_rst.py",
line 599, in generate_file_rst
    if md5sum_is_current(example_file):
  File "/builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/gen_rst.py",
line 290, in md5sum_is_current
    src_md5 = get_md5sum(src_file)
  File "/builddir/build/BUILD/sphinx-gallery-0.1.5/sphinx_gallery/gen_rst.py",
line 277, in get_md5sum
    src_content = src_data.read()
  File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 99:
ordinal not in range(128)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]