Issue #11 resolved

Pyroma tracebacks on missing description.

pinard
created an issue

On a project using description_file in setup.cfg (packaging), the generated setup.py (I presume) yields the following traceback, which should of course not happen.

pyroma .
------------------------------
Checking .
Found Pymacs
Traceback (most recent call last):
  File "/usr/local/bin/pyroma", line 9, in <module>
    load_entry_point('pyroma==1.3', 'console_scripts', 'pyroma')()
  File "/usr/local/lib/python2.7/dist-packages/pyroma-1.3-py2.7.egg/pyroma/__init__.py", line 54, in main
    run(sys.argv[1])
  File "/usr/local/lib/python2.7/dist-packages/pyroma-1.3-py2.7.egg/pyroma/__init__.py", line 33, in run
    rating = ratings.rate(data)
  File "/usr/local/lib/python2.7/dist-packages/pyroma-1.3-py2.7.egg/pyroma/ratings.py", line 297, in rate
    res = test.test(data)
  File "/usr/local/lib/python2.7/dist-packages/pyroma-1.3-py2.7.egg/pyroma/ratings.py", line 110, in test
    return len(data.get('long_description', '')) > 100
TypeError: object of type 'bool' has no len()

Comments (2)

  1. Log in to comment