Your message dated Sat, 15 Apr 2017 16:49:04 +0000
with message-id <e1czqsi-0009fx...@fasolo.debian.org>
and subject line Bug#859916: fixed in django-assets 0.12-2
has caused the Debian Bug report #859916,
regarding django-assets: installed pytest plugin can break unrelated software
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
859916: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=859916
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-pytest
Version: 3.0.6-1
Severity: grave

(this only affects python-pytest, python-pytest3 is fine):

The simple test from the documentation

    https://docs.pytest.org/en/latest/getting-started.html#installation

cat <<EOF > test_sample.py
def func(x):
    return x + 1

def test_answer():
    assert func(3) == 5
EOF

fails to load at all:

$ pytest 
===============================================================================================
 test session starts 
===============================================================================================
platform linux2 -- Python 2.7.13, pytest-3.0.6, py-1.4.32, pluggy-0.4.0
rootdir: /tmp/a, inifile: 
plugins: django-assets-0.12
collected 1 items 

test_sample.py E

=====================================================================================================
 ERRORS 
======================================================================================================
__________________________________________________________________________________________
 ERROR at setup of test_answer 
__________________________________________________________________________________________

    @pytest.fixture(autouse=True)
    def set_django_assets_env():
>       django_assets.env.get_env() # initialise django-assets settings

/usr/lib/python2.7/dist-packages/django_assets/pytest_plugin.py:6: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python2.7/dist-packages/django_assets/env.py:177: in get_env
    env = DjangoEnvironment()
/usr/lib/python2.7/dist-packages/webassets/env.py:701: in __init__
    self.config.setdefault('debug', False)
/usr/lib/python2.7/dist-packages/webassets/env.py:64: in setdefault
    self.__setitem__(key, value)
/usr/lib/python2.7/dist-packages/django_assets/env.py:65: in __setitem__
    setattr(settings, self._transform_key(key), value)
/usr/lib/python2.7/dist-packages/django/utils/functional.py:264: in __setattr__
    self._setup()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <LazySettings [Unevaluated]>, name = None

    def _setup(self, name=None):
        """
            Load the settings module pointed to by the environment variable. 
This
            is used the first time we need any settings at all, if the user has 
not
            previously configured the settings manually.
            """
        settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
        if not settings_module:
            desc = ("setting %s" % name) if name else "settings"
            raise ImproperlyConfigured(
                "Requested %s, but settings are not configured. "
                "You must either define the environment variable %s "
                "or call settings.configure() before accessing settings."
>               % (desc, ENVIRONMENT_VARIABLE))
E           ImproperlyConfigured: Requested settings, but settings are not 
configured. You must either define the environment variable 
DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

/usr/lib/python2.7/dist-packages/django/conf/__init__.py:39: 
ImproperlyConfigured
=============================================================================================
 1 error in 0.05 seconds 
=============================================================================================



-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (500, 'stable-updates'), (500, 'unstable'), (500, 'stable'), 
(500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-pytest depends on:
ii  python-pkg-resources  33.1.1-1
ii  python-py             1.4.32-3
pn  python:any            <none>

python-pytest recommends no packages.

Versions of packages python-pytest suggests:
ii  python-mock  2.0.0-3

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: django-assets
Source-Version: 0.12-2

We believe that the bug you reported is fixed in the latest version of
django-assets, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 859...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Lamb <la...@debian.org> (supplier of updated django-assets package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 15 Apr 2017 17:25:04 +0100
Source: django-assets
Binary: python-django-assets python3-django-assets python-django-assets-doc
Architecture: source
Version: 0.12-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team 
<python-modules-t...@lists.alioth.debian.org>
Changed-By: Chris Lamb <la...@debian.org>
Description:
 python-django-assets - integrate webassets into Django applications
 python-django-assets-doc - integrate webassets into Django applications 
(Documentation)
 python3-django-assets - integrate webassets into Django applications (Python3 
version)
Closes: 859916
Changes:
 django-assets (0.12-2) unstable; urgency=medium
 .
   * Patch pytest plugin to check whether we are running in a Django context,
     otherwise we can break unrelated testsuites. (Closes: #859916)
   * Add myself to uploaders.
Checksums-Sha1:
 da2705e9f6847c023ef431d3f8ecd4a0e3cf9604 2439 django-assets_0.12-2.dsc
 525f69fbdeed3ad08916090e6bfd7c4acbf60671 4692 
django-assets_0.12-2.debian.tar.xz
 51ec97e1bfad5087cab8a23318d3634a1cb97ed3 7785 
django-assets_0.12-2_amd64.buildinfo
Checksums-Sha256:
 692948a5d2c23e63eba9602f5ca7422e2c843e58d81e14f3664aa800f1399710 2439 
django-assets_0.12-2.dsc
 888ad11efabf2c786feb06bab13460ac8e6727fe636cfa698d4fd066d59a11c6 4692 
django-assets_0.12-2.debian.tar.xz
 0bc3fef48f3de063e2cb23ff01a2cfa6576c891e84f6692492ce19a768c1e0ba 7785 
django-assets_0.12-2_amd64.buildinfo
Files:
 8d66e23ace63d7f0a249b8cb8816e8e5 2439 python optional django-assets_0.12-2.dsc
 5f0c0c19959ff886f5016fc4128b9ec5 4692 python optional 
django-assets_0.12-2.debian.tar.xz
 08d71b75c34d034b7d82c8012c0ba856 7785 python optional 
django-assets_0.12-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEwv5L0nHBObhsUz5GHpU+J9QxHlgFAljySiEACgkQHpU+J9Qx
HlhvAA/+KIYs/ohEu9NLO7bBVlQP1gRUnFRy0qFz+nNu+wfdURaJJpAVTkZXTCnQ
A0Y4npNNzt+vCp1MqcWuVyNQiGBVfe+CsKa2bwE9hgkJlUf7X1bDrPu9+kd6YByb
J7wYIncMxDDLUsoaPEaB2vtjEGJSM/dDdhqXw0rR8S/QKyR57JeRMkxWsHRrYlQc
MsuF6WZKz9d6deeteg3w4EJEh6tZ3MO5qDammj9XI3N2Ykq6z9Dg/oUMtyvRbyEo
PE4dgdu2dgHdXcpGAcj2r/Oji+tPTmKWheb22XetabjSG96AAIvrJYWogbO9nhRU
PaD94HptMgjoDhMbRDQFhenonOUJG2OYLWokgdPMT/tXyeF8dwl6E3Wwij1KsIYP
UCFpAB22O9uonHDixsCoou84FhRrab0iB94s7/m7WBt4sG4PAbHX0nJgwCtj9yYQ
fJBJi6ouZm3tRI+2/F8uU6tPCu3jid/beajqlV093ft3ZRY+jj9LsipcromSO81J
sa26HZhvf195jPJQ1NotlJeMCpJ5S/FtjKoZNUNuQf3dHDaBhrQT2iM9LXK6dYsy
kipXsILi9rW+GNmSAcaewNCPvzdUWcD4FS6GA0y/Ubqtxtg0btHHGNQjIypopHQL
5+N8m0GlALtetSoA1Lf3pXMfFZ06mDcrk7bRCOezQiKtr0whtag=
=FNP7
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to