Skip to content

MAINT moved some maintenance and helper python scripts to tools/ - #8276

Merged
dstansby merged 2 commits into
matplotlib:masterfrom
NelleV:tools
Mar 13, 2017
Merged

dstansby merged 2 commits into
matplotlib:masterfrom
NelleV:tools

Conversation

@NelleV

@NelleV NelleV commented Mar 12, 2017

Copy link
Copy Markdown
Member

Our root folder is currently a bit messy and overwhelming.
In an attempt to clean it up a bit and make it more clear for contributors what files does what, I attempted to consolidate the organization a bit.

This pull requests moves some of our maintenance and helper python scripts to our tools folder.

Note that license.py only works on python 2.

@QuLogic

QuLogic commented Mar 12, 2017

Copy link
Copy Markdown
Member

visual_tests.py is moved in #8018, license.py was deleted in #8274.

@NelleV

NelleV commented Mar 12, 2017

Copy link
Copy Markdown
Member Author

damn… that's what it is to work offline :)

@NelleV

NelleV commented Mar 12, 2017

Copy link
Copy Markdown
Member Author

I'll rebase once #8018 is merged

@tacaswell tacaswell changed the title [MRG] MAINT moved some maintenance and helper python scripts to tools/ [MRG+1] MAINT moved some maintenance and helper python scripts to tools/ Mar 12, 2017
Comment thread tools/boilerplate.py Outdated

def build_pyplot():
pyplot_path = os.path.join(os.path.dirname(__file__), 'lib',
pyplot_path = os.path.join("../", os.path.dirname(__file__), 'lib',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't look quite right; if __file__ is an absolute path, then it'll ignore the .. part. Less importantly, there shouldn't be a trailing / since it's using os.path.join.

It should probably be os.pardir and come after the dirname.

@NelleV

NelleV commented Mar 13, 2017

Copy link
Copy Markdown
Member Author

Indeed there was a problem: the code run fine but wasn't updating the file.
It should work now.

@dstansby dstansby changed the title [MRG+1] MAINT moved some maintenance and helper python scripts to tools/ MAINT moved some maintenance and helper python scripts to tools/ Mar 13, 2017
@dstansby
dstansby merged commit 343792f into matplotlib:master Mar 13, 2017
@dstansby dstansby added this to the 2.1 (next point release) milestone Mar 13, 2017
@NelleV
NelleV deleted the tools branch March 13, 2017 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants