Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Switch to pure python pyScss from libsass (no need in C++ on Windows) #340

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
algorithm==1.0.0
dependency_injection==1.1.0
filesystem_tree==1.0.1
first==2.0.1
python-mimeparse==0.1.4
aspen==0.42

Expand All @@ -16,7 +17,8 @@ mistune_contrib==0.1

honcho==0.5.0

six==1.10.0
libsass==0.3.0
enum34==1.1.6
pathlib==1.0.1
pyScss==1.3.5

--editable .
Binary file added vendor/enum34-1.1.6-py2-none-any.whl
Binary file not shown.
Binary file removed vendor/libsass-0.3.0.tar.gz
Binary file not shown.
Binary file added vendor/pathlib-1.0.1.tar.gz
Binary file not shown.
Binary file added vendor/pyScss-1.3.5.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions www/assets/%version/inside.gratipay.css.spt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os
import sass
import scss

filename = os.path.join(website.project_root, 'scss', 'inside.gratipay.scss')
output_style = 'compressed' if website.compress_assets else 'nested'
cache = os.environ.get('INSIDE_GRATIPAY_CACHE_CSS', '')
[---]
css = sass.compile(output_style=str(output_style),filename=str(filename))
css = scss.compiler.compile_file(filename, output_style=output_style)
if cache:
response.headers['Expires'] = 'Sun, 17 Jan 2038 19:14:07 GMT'
[---] via jinja2
Expand Down