Skip to content

Commit c97ed3f

Browse files
committed
[1.6.0] Release
1 parent 98b1388 commit c97ed3f

File tree

4 files changed

+91
-43
lines changed

4 files changed

+91
-43
lines changed

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Changelog
66
=========
77

8-
Version 1.6.0 - 2021/02/01
8+
Version 1.6.0 - 2021/02/04
99
--------------------------
1010

1111
*Last Python2 support, compatibility for recent Click versions and improve

docs/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Features
2222
********
2323

2424
* Stand on `LibSass`_ which is **very fast**;
25-
* **Per project configuration** so you can use it once to compile all of your Sass files from a same project;
25+
* **Per project configuration** so you can use it once to compile all of your
26+
Sass files from a same project;
2627
* **Simple and useful** command line;
2728
* **Watch mode** for no waste of time during web design integration;
2829
* **Full Python stack**, no Ruby or Node.js stuff needed;

docs/overview.rst

Lines changed: 81 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,62 @@
99
Overview
1010
========
1111

12-
Boussole is working on **per-project configuration**, it means all your Sass sources to compile have to be organized in the same directory considered as the *sources directory*. Obviously you can organize them in multiple sub-directories within your sources directory.
12+
Boussole is working on **per-project configuration**, it means all your Sass
13+
sources to compile have to be organized in the same directory considered as the
14+
*sources directory*. Obviously you can organize them in multiple sub-directories within your sources directory.
1315

14-
Your project can rely on some **Sass libraries that must be out of the source directory** to be defined in option ``LIBRARY_PATHS``.
16+
Your project can rely on some **Sass libraries that must be out of the source
17+
directory** to be defined in option ``LIBRARY_PATHS``.
1518

16-
Boussole does not really handle itself compilation, this is the role of `libsass-python`_. But for watch mode Boussole needs to inspect your Sass sources and so can raise some errors if they are invalid. These errors will be almost only about your ``@import`` rules.
19+
Boussole does not really handle itself compilation, this is the role of
20+
`libsass-python`_. But for watch mode Boussole needs to inspect your Sass sources
21+
and so can raise some errors if they are invalid. These errors will be almost only
22+
about your ``@import`` rules.
1723

18-
**Boussole is builded following Sass references** and all your Sass sources and libraries compatibles with libsass should be safe to compile.
24+
**Boussole is builded following Sass references** and all your Sass sources and
25+
libraries compatibles with libsass should be safe to compile.
1926

2027

2128
Project configuration
2229
*********************
2330

24-
A project **configuration lives in a file** which default attempted name is ``settings.json`` (JSON backend) or ``settings.yml`` (YAML backend).
31+
A project **configuration lives in a file** which default attempted name is
32+
``settings.json`` (JSON backend) or ``settings.yml`` (YAML backend).
2533

2634
Backend format
2735
--------------
2836

29-
There is actually two supported backend format: JSON and YAML. Each of backend format expect is own default filename.
37+
There is actually two supported backend format: JSON and YAML. Each of backend
38+
format expect is own default filename.
3039

31-
However you can ask for a specific backend from command line use argument ``--backend``, value can be either ``json`` or ``yaml``.
40+
However you can ask for a specific backend from command line use argument
41+
``--backend``, value can be either ``json`` or ``yaml``.
3242

3343
Discovering
3444
-----------
3545

36-
Boussole is able to discover your settings file if you don't explicitely give it as command argument with ``--config`` option.
46+
Boussole is able to discover your settings file if you don't explicitely give it
47+
as command argument with ``--config`` option.
3748

38-
Discovering is allways performed from current directory and will try to find a settings file using available backend default filename.
49+
Discovering is allways performed from current directory and will try to find a
50+
settings file using available backend default filename.
3951

40-
Such as if you have a ``settings.yml`` in your current directory, Boussole will assume it's your settings file to open. JSON backend is the first one to be checked so if you have both ``settings.json`` and ``settings.yml`` in your current directory, the JSON will be used.
52+
Such as if you have a ``settings.yml`` in your current directory, Boussole will
53+
assume it's your settings file to open. JSON backend is the first one to be
54+
checked so if you have both ``settings.json`` and ``settings.yml`` in your current
55+
directory, the JSON will be used.
4156

42-
You may possibly enforce a single backend to be used in discovery using the ``--backend`` option.
57+
You may possibly enforce a single backend to be used in discovery using the
58+
``--backend`` option.
4359

44-
Finally, if you give an explicit settings file path with ``--config`` there will be no discovering, Boussole will just open it directly.
60+
Finally, if you give an explicit settings file path with ``--config`` there will
61+
be no discovering, Boussole will just open it directly.
4562

4663
Sample
4764
------
4865

49-
Here is a full sample of available settings for project configuration with JSON format:
66+
Here is a full sample of available settings for project configuration with JSON
67+
format:
5068

5169
.. sourcecode:: json
5270

@@ -70,7 +88,8 @@ References
7088
----------
7189

7290
.. Note::
73-
Default values are referenced as Python values, you will need to adapt them according to the backend format you are using.
91+
Default values are referenced as Python values, you will need to adapt them
92+
according to the backend format you are using.
7493

7594

7695
SOURCES_PATH
@@ -80,29 +99,40 @@ SOURCES_PATH
8099
LIBRARY_PATHS
81100
Default: ``[]``
82101

83-
(list) A list of paths (string) to your library imported from your Sass sources. Never try to add your source dir as a library and vice versa, this will trouble resolver and compiler.
102+
(list) A list of paths (string) to your library imported from your Sass sources.
103+
Never try to add your source dir as a library and vice versa, this will trouble
104+
resolver and compiler.
84105

85-
If you plan to use some Sass libraries installed from npm, just add the path to ``node_modules`` directory, then you will be able to import them from your sources.
106+
If you plan to use some Sass libraries installed from npm, just add the path to
107+
``node_modules`` directory, then you will be able to import them from your
108+
sources.
86109
TARGET_PATH
87110
Default: None, this is a required setting.
88111

89112
(string) Directory path where will be writed your compiled Sass sources.
90113
OUTPUT_STYLES
91114
Default: ``nested``
92115

93-
(string) keyword of output style type used to compile your Sass sources. Can be either ``compact``, ``expanded``, ``nested`` or ``compressed``.
116+
(string) keyword of output style type used to compile your Sass sources. Can
117+
be either ``compact``, ``expanded``, ``nested`` or ``compressed``.
94118
SOURCE_COMMENTS
95119
Default: ``False``
96120

97-
(boolean) If ``True``, comments about source lines will be added to each rule in resulted CSS from compile.
121+
(boolean) If ``True``, comments about source lines will be added to each rule
122+
in resulted CSS from compile.
98123
SOURCE_MAP
99124
Default: ``False``
100125

101-
(boolean) If ``True``, generate a source map for each compiled file. Source map filename will be the same that compiled file but with extension changed to ``.map``. The source map file is allways created in the same directory than CSS file.
126+
(boolean) If ``True``, generate a source map for each compiled file. Source map
127+
filename will be the same that compiled file but with extension changed to
128+
``.map``. The source map file is allways created in the same directory than CSS
129+
file.
102130
EXCLUDES
103131
Default: ``[]``
104132

105-
(list) A list of glob pattern (string) to exclude some paths/files from compile. Remember these pattern are allways matched against relative paths (from project directory).
133+
(list) A list of glob pattern (string) to exclude some paths/files from compile.
134+
Remember these pattern are allways matched against relative paths (from project
135+
directory).
106136

107137

108138
Help
@@ -120,9 +150,12 @@ And you can reach help about command options using: ::
120150
Start a new project
121151
*******************
122152

123-
Create directory and configuration file for a new project. Although you can create your project manually, this is an easy helper to do it and avoid forgetting some details.
153+
Create directory and configuration file for a new project. Although you can create
154+
your project manually, this is an easy helper to do it and avoid forgetting some
155+
details.
124156

125-
Without arguments, command will prompt you to fill required values but you can also directly feed these values from arguments, see command help for details.
157+
Without arguments, command will prompt you to fill required values but you can
158+
also directly feed these values from arguments, see command help for details.
126159

127160
**Usage** ::
128161

@@ -132,7 +165,8 @@ Without arguments, command will prompt you to fill required values but you can a
132165
Compile
133166
*******
134167

135-
Compile simply launch compiler on every eligible Sass source from your ``SOURCES_PATH`` directory.
168+
Compile simply launch compiler on every eligible Sass source from your
169+
``SOURCES_PATH`` directory.
136170

137171
**Usage** ::
138172

@@ -142,9 +176,11 @@ Compile simply launch compiler on every eligible Sass source from your ``SOURCES
142176
Watch
143177
*****
144178

145-
Watcher will constantly watch about changes on files in your ``SOURCES_PATH`` directory.
179+
Watcher will constantly watch about changes on files in your ``SOURCES_PATH``
180+
directory and ``LIBRARY_PATHS`` paths.
146181

147-
When an event occurs, it will compile eligible sources from the file dependencies and itself.
182+
When an event occurs, it will compile eligible sources from the file itself to
183+
its dependencies.
148184

149185
Managed events can be :
150186

@@ -153,21 +189,32 @@ Managed events can be :
153189
* File move;
154190
* File deletion.
155191

156-
Event about directories (like directory creation or moving) are ignored.
192+
.. Note::
193+
Event about directories (like directory creation or moving) are ignored.
157194

158195
.. Note::
159-
Compile errors won't break the watcher so you can resolve them and try again to compile.
196+
Compile errors won't break the watcher so you can resolve them and try again
197+
to compile.
160198

161199

162200
**Usage** ::
163201

164202
boussole watch
165203

166204
.. Note::
167-
Default behavior is to use the Watchdog native platform observer. It may not work for all environments (like on shared directories through network or Virtual machine), in this case use the ``--poll`` to use the Watchdog polling observer instead of the default one.
168-
169-
Boussole has its own internal code to inspect Sass sources to be aware of sources paths it has to watch for.
170-
171-
In some rare circumstances inspection may lead to issues where ``compile`` command can build your sources but can fails with ``watch`` command because the latter need to inspect sources to be able to find dependencies and choke on unclear path resolution.
172-
173-
These unclear paths are almost allways due to some Sass libraries trying to import components using a relative path outside of itself like with ``../``. This is often the case with libraries that have been made to be included in your main scss directory.
205+
Default behavior is to use the Watchdog native platform observer. It may not
206+
work for all environments (like on shared directories through network or Virtual
207+
machine), in this case use the ``--poll`` to use the Watchdog polling observer
208+
instead of the default one.
209+
210+
Boussole has its own internal code to inspect Sass sources to be aware of sources
211+
paths it has to watch for.
212+
213+
In some rare circumstances, some source inspection may lead to issues where ``compile``
214+
command can build your sources but can fails with ``watch`` command because the latter
215+
need to inspect sources to be able to find dependencies and choke on unclear path
216+
resolution.
217+
218+
These unclear paths are almost allways due to some Sass libraries trying to import
219+
components using a relative path outside of itself like with ``../``. This is often
220+
the case with libraries that have been made to be included in your main scss directory.

requirements_freeze.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Pinned versions during last development installation
2-
six==1.14.0
3-
click==5.1
2+
six==1.15.0
3+
click==7.1.2
44
pathtools==0.1.2
5-
watchdog==0.10.2
6-
libsass==0.20.0
5+
watchdog==1.0.2
6+
libsass==0.20.1
77
pyaml==20.4.0
8-
PyYAML==5.3.1
9-
colorama==0.4.3
10-
colorlog==4.1.0
8+
PyYAML==5.4.1
9+
colorama==0.4.4
10+
colorlog==4.7.2

0 commit comments

Comments
 (0)