Django-pyscss

Latest version: v2.0.3

Safety actively analyzes 623075 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.0.4

==================

- Nothing changed yet.

2.0.3

==================

- Support for Django 4.2. Drop support for Python 2.

2.0.2

==================

- Fixed bug with relative imports [34, 35 r1chardj0n3s]

2.0.1

==================

- Explicitly depend on pathlib, instead of assuming pyScss will require it. [33]
- Fixed cases where DEBUG is False but collectstatic hasn't been run (common in tests).

2.0.0

==================

- Added support for pyScss 1.3 and Python 3.
- Dropped support for pyScss 1.2

Upgrade path
^^^^^^^^^^^^

If you are just using the django-compressor integration, you don't have to
upgrade anything.

If you were using the ``DjangoScss`` class directly, it has been replaced with
the ``DjangoScssCompiler`` class. The API for compiling CSS has changed as
well, for example, to compile from a string, previously you would do it like
this:

.. code-block:: python

>>> from django_pyscss.scss import DjangoScss
>>> compiler = DjangoScss()
>>> compiler.compile(".foo { color: red; }")

Now the interface is like this:

.. code-block:: python

>>> from django_pyscss import DjangoScssCompiler
>>> compiler = DjangoScssCompiler()
>>> compiler.compile_string(".foo { color: red; }")

You read more about the new API on the `pyScss API documentation
<http://pyscss.readthedocs.org/en/latest/python-api.html#new-api>`_.

1.0.0

==================

Released django-pyscss.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.