Skip to content

Commit 1a80a4c

Browse files
committed
Version bump and follow up the libsass v2.0
1 parent 9910a86 commit 1a80a4c

File tree

5 files changed

+33
-8
lines changed

5 files changed

+33
-8
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include *.h
22
include *.hpp
33
include *.cpp
4+
include Makefile
45
include Makefile.am
56
include win32/*.h
67
include test/*.scss

docs/changes.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
Changelog
22
=========
33

4+
Version 0.5.0
5+
-------------
6+
7+
To be released.
8+
9+
- Follow up the libsass upstream: :commit:`v2.0` --- See the `release note`__
10+
of Libsass.
11+
12+
- Added indented syntax support (:file:`*.sass` files).
13+
- Added expanded selector support (BEM).
14+
- Added string functions.
15+
- Fixed UTF-8 support.
16+
- Backward incompatibility: broken extends.
17+
18+
__ https://github.com/hcatlin/libsass/releases/tag/v2.0
19+
20+
421
Unstable version 0.4.2.20140529.cd3ee1cbe3
522
------------------------------------------
623

sass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
__all__ = ('MODES', 'OUTPUT_STYLES', 'SOURCE_COMMENTS', 'CompileError',
2424
'and_join', 'compile')
25-
__version__ = '0.4.2'
25+
__version__ = '0.5.0'
2626

2727

2828
#: (:class:`collections.Mapping`) The dictionary of output styles.

setup.py

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,26 @@
2222

2323

2424
MAKEFILE_SOURCES_LIST_RE = re.compile(r'''
25-
(?: ^ | \n ) libsass_la_SOURCES [ \t]* = [ \t]*
25+
(?: ^ | \n ) (?: libsass_la_ )? SOURCES [ \t]* = [ \t]*
2626
(?P<sources> (?: (?: $ | [ \t] | \\ [\n] )+
2727
[^ \n\t\\]+ )+ )
2828
''', re.VERBOSE)
2929

3030

31-
with open('Makefile.am') as makefile:
32-
sources_match = MAKEFILE_SOURCES_LIST_RE.search(makefile.read())
33-
sources_list = sources_match.group('sources').replace('\\\n', ' ')
34-
libsass_sources = sources_list.split()
31+
libsass_sources = set()
32+
for makefilename in 'Makefile', 'Makefile.am':
33+
with open(makefilename) as makefile:
34+
sources_match = MAKEFILE_SOURCES_LIST_RE.search(makefile.read())
35+
sources_list = sources_match.group('sources').replace('\\\n', ' ')
36+
libsass_sources.update(sources_list.split())
37+
libsass_sources = list(libsass_sources)
3538

3639
libsass_headers = [
3740
'sass_interface.h', 'sass.h', 'win32/unistd.h'
3841
]
3942
libsass_headers.extend(glob.glob('*.hpp'))
4043
include_dirs = ['sass2scss']
41-
sources = ['pysass.c', 'sass2scss/sass2scss.cpp']
44+
sources = ['pysass.c']
4245
sources.extend(libsass_sources)
4346

4447
if sys.platform == 'win32':
@@ -158,7 +161,10 @@ def run(self):
158161
packages=['sassutils'],
159162
py_modules=['sass', 'sassc', 'sasstests'],
160163
package_data={
161-
'': ['README.rst', 'Makefile.am', 'win32/*.h', 'test/*.sass']
164+
'': [
165+
'README.rst', 'Makefile', 'Makefile.am',
166+
'win32/*.h', 'test/*.sass'
167+
]
162168
},
163169
scripts=['sassc.py'],
164170
license='MIT License',

utf8_string.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include <string>
55
#include <cmath>
6+
#include <cstdlib>
67

78
namespace Sass {
89
namespace UTF_8 {

0 commit comments

Comments
 (0)