Skip to content

Api doc backport no imag build #7779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 13, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
Merge pull request #7757 from StephanErb/packaging_size
By default, don't include tests in binary distributions.
  • Loading branch information
dopplershift authored and tacaswell committed Jan 10, 2017
commit e83e108ef30e6c404c434e26faff940bb121831e
6 changes: 3 additions & 3 deletions setup.cfg.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@

[packages]
# There are a number of subpackages of matplotlib that are considered
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matplotlib -> Matplotlib
(trying to catch them as they come…)

# optional. They are all installed by default, but they may be turned
# off here.
# optional. All except tests are installed by default, but that can
# be changed here.
#
#tests = True
#tests = False
#sample_data = True
#toolkits = True
# Tests for the toolkits are only automatically installed
Expand Down
4 changes: 3 additions & 1 deletion setupext.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ class OptionalPackage(SetupPackage):
optional = True
force = False
config_category = "packages"
default_config = "auto"

@classmethod
def get_config(cls):
Expand All @@ -541,7 +542,7 @@ def get_config(cls):
insensitively defined as 1, true, yes, on for True) or opted-out (case
insensitively defined as 0, false, no, off for False).
"""
conf = "auto"
conf = cls.default_config
if config is not None and config.has_option(cls.config_category, cls.name):
try:
conf = config.getboolean(cls.config_category, cls.name)
Expand Down Expand Up @@ -712,6 +713,7 @@ def get_namespace_packages(self):
class Tests(OptionalPackage):
name = "tests"
nose_min_version = '0.11.1'
default_config = False

def check(self):
super(Tests, self).check()
Expand Down