X Tutup
Skip to content

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

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

MAINT moved some maintenance and helper python scripts to tools/#8276
dstansby merged 2 commits intomatplotlib:masterfrom
NelleV:tools

Conversation

@NelleV
Copy link
Copy Markdown
Member

@NelleV NelleV commented Mar 12, 2017

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
Copy link
Copy Markdown
Member

QuLogic commented Mar 12, 2017

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

@NelleV
Copy link
Copy Markdown
Member Author

NelleV commented Mar 12, 2017

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

@NelleV
Copy link
Copy Markdown
Member Author

NelleV commented Mar 12, 2017

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

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
Copy link
Copy Markdown
Member Author

NelleV commented Mar 13, 2017

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

X Tutup