[Bug 1278364] Review Request: python-whitenoise - Static file serving for Python web apps

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

 



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



--- Comment #3 from Julien Enselme <jujens@xxxxxxxxx> ---
Mockbuild fails because tests cannot import django. Please add BuildRequires:
python-django and BuildRequires: python3-django. Please note that tests are not
executed for python2. Using nose or pytest to launch them may solve this
problems.


+ /usr/bin/python3 setup.py test
running test
running egg_info
writing dependency_links to whitenoise.egg-info/dependency_links.txt
writing top-level names to whitenoise.egg-info/top_level.txt
writing whitenoise.egg-info/PKG-INFO
reading manifest file 'whitenoise.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '__pycache__' found under
directory '*'
warning: no previously-included files matching '*.py[co]' found under directory
'*'
no previously-included directories found matching 'docs/_build'
writing manifest file 'whitenoise.egg-info/SOURCES.txt'
running build_ext
django (unittest.loader._FailedTest) ... ERROR
gzipstatic (unittest.loader._FailedTest) ... ERROR
storage_backport (unittest.loader._FailedTest) ... ERROR
gzipstatic (unittest.loader._FailedTest) ... ERROR
gzipstatic (unittest.loader._FailedTest) ... ERROR
======================================================================
ERROR: django (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: django
Traceback (most recent call last):
  File "/usr/lib64/python3.5/unittest/loader.py", line 153, in
loadTestsFromName
    module = __import__(module_name)
  File
"/builddir/build/BUILD/python-whitenoise-2.0.4/python3/whitenoise/django.py",
line 13, in <module>
    from django.conf import settings
ImportError: No module named 'django'
======================================================================
ERROR: gzipstatic (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: gzipstatic
Traceback (most recent call last):
  File "/usr/lib64/python3.5/unittest/loader.py", line 153, in
loadTestsFromName
    module = __import__(module_name)
  File
"/builddir/build/BUILD/python-whitenoise-2.0.4/python3/whitenoise/management/commands/gzipstatic.py",
line 3, in <module>
    import django
ImportError: No module named 'django'
======================================================================
ERROR: storage_backport (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: storage_backport
Traceback (most recent call last):
  File "/usr/lib64/python3.5/unittest/loader.py", line 153, in
loadTestsFromName
    module = __import__(module_name)
  File
"/builddir/build/BUILD/python-whitenoise-2.0.4/python3/whitenoise/storage_backport.py",
line 5, in <module>
    from django.contrib.staticfiles.storage import CachedStaticFilesStorage
ImportError: No module named 'django'
======================================================================
ERROR: gzipstatic (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: gzipstatic
Traceback (most recent call last):
  File "/usr/lib64/python3.5/unittest/loader.py", line 153, in
loadTestsFromName
    module = __import__(module_name)
  File
"/builddir/build/BUILD/python-whitenoise-2.0.4/python3/whitenoise/management/commands/gzipstatic.py",
line 3, in <module>
    import django
ImportError: No module named 'django'
======================================================================
ERROR: gzipstatic (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: gzipstatic
Traceback (most recent call last):
  File "/usr/lib64/python3.5/unittest/loader.py", line 153, in
loadTestsFromName
    module = __import__(module_name)
  File
"/builddir/build/BUILD/python-whitenoise-2.0.4/python3/whitenoise/management/commands/gzipstatic.py",
line 3, in <module>
    import django
ImportError: No module named 'django'
----------------------------------------------------------------------
Ran 5 tests in 0.001s

-- 
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
https://admin.fedoraproject.org/mailman/listinfo/package-review




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