From a38b091e7a8941949a90781eff5a693a8c081768 Mon Sep 17 00:00:00 2001 From: Nelle Varoquaux Date: Sun, 12 Mar 2017 14:24:00 -0700 Subject: [PATCH 1/2] MAINT moved some maintenance and helper python scripts to tools/ --- pytest.ini | 3 +-- tools/README.txt | 1 + boilerplate.py => tools/boilerplate.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 tools/README.txt rename boilerplate.py => tools/boilerplate.py (99%) diff --git a/pytest.ini b/pytest.ini index 7ca06444fcbc..24581de34526 100644 --- a/pytest.ini +++ b/pytest.ini @@ -10,12 +10,11 @@ markers = pep8ignore = * E111 E114 E115 E116 E121 E122 E123 E124 E125 E126 E127 E128 E129 E131 E226 E240 E241 E242 E243 E244 E245 E246 E247 E248 E249 E265 E266 E704 W503 - boilerplate.py E501 + tools/boilerplate.py E501 setup.py E402 E501 setupext.py E301 E302 E501 setup_external_compile.py E302 E501 E711 versioneer.py ALL # External file. - tools/gh_api.py ALL # External file. tools/github_stats.py ALL # External file. tools/subset.py E221 E231 E251 E261 E302 E501 E701 E703 diff --git a/tools/README.txt b/tools/README.txt new file mode 100644 index 000000000000..d6438c7654f0 --- /dev/null +++ b/tools/README.txt @@ -0,0 +1 @@ +Tools developed for Matplotlib diff --git a/boilerplate.py b/tools/boilerplate.py similarity index 99% rename from boilerplate.py rename to tools/boilerplate.py index 6aabc83cb892..273c31f756eb 100644 --- a/boilerplate.py +++ b/tools/boilerplate.py @@ -365,7 +365,7 @@ def format_value(value): def build_pyplot(): - pyplot_path = os.path.join(os.path.dirname(__file__), 'lib', + pyplot_path = os.path.join("../", os.path.dirname(__file__), 'lib', 'matplotlib', 'pyplot.py') pyplot_orig = open(pyplot_path, 'r').readlines() From 95429f15f3645e74f79b2fff30068731151f5a5c Mon Sep 17 00:00:00 2001 From: Nelle Varoquaux Date: Sun, 12 Mar 2017 18:38:37 -0700 Subject: [PATCH 2/2] FIX path in boilerplate.py --- tools/boilerplate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/boilerplate.py b/tools/boilerplate.py index 273c31f756eb..5c34b4f869f2 100644 --- a/tools/boilerplate.py +++ b/tools/boilerplate.py @@ -365,7 +365,7 @@ def format_value(value): def build_pyplot(): - pyplot_path = os.path.join("../", os.path.dirname(__file__), 'lib', + pyplot_path = os.path.join(os.path.dirname(__file__), "..", 'lib', 'matplotlib', 'pyplot.py') pyplot_orig = open(pyplot_path, 'r').readlines()