Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2e7235

Browse files
committed
DOC: API notes for not installing tests/baseline images by default
Update to include details about how to re-enable.
1 parent e83e108 commit e2e7235

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

doc/api/api_changes.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,20 @@ replaced by ``nipy_spectral`` and ``nipy_spectral_r`` since matplotlib
201201
raised a warning. As of matplotlib 2.0.0, using the old names raises a
202202
deprecation warning. In the future, using the old names will raise an error.
203203

204+
Default install does not include test images
205+
--------------------------------------------
206+
207+
To reduce the default size of wheels and source installs, the tests
208+
and baseline images are no longer included by default.
209+
210+
To restore installing the tests and images have a `setup.cfg` with ::
211+
212+
[packages]
213+
tests = True
214+
toolkit_tests = True
215+
216+
in the source directory at build/install time.
217+
204218
Changes in 1.5.3
205219
================
206220

doc/devel/contributing.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,15 @@ Alternatively, if you do ::
7979
pip install -v ./
8080

8181
all of the files will be copied to the installation directory however,
82-
you will have to rerun this command every time the source is changed.
82+
you will have to rerun this command every time the source is changed. Additionally you will
83+
need to copy :file:`setup.cfg.template` to :file:`setup.cfg` and edit to contain ::
8384

85+
[test]
86+
local_freetype = True
87+
tests = True
8488

85-
You can then run the tests to check your work environment is set up properly::
89+
In either case you can then run the tests to check your work
90+
environment is set up properly::
8691

8792
python tests.py
8893

doc/devel/testing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ matplotlib source directory::
4545

4646
[test]
4747
local_freetype = True
48+
tests = True
4849

4950
or by setting the ``MPLLOCALFREETYPE`` environmental variable to any true
5051
value.

0 commit comments

Comments
 (0)