Commit Graph

3 Commits

Author SHA1 Message Date
Donald Stufft 95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Pradyun S. Gedam 9923c1ad7e Sort imports and minor Flake8 changes (#4520)
* Run isort on the codebase

Command: isort --recursive --skip __main__.py --skip _vendor -o pip._vendor -sd THIRDPARTY -m 5 -p pip -p tests ./pip ./tests

* 📰
2017-06-13 14:17:00 +02:00
Pradyun S. Gedam 0bdbee5c30 TemporaryDirectory abstraction (#4332)
* Rename BuildDirectory to TempDirectory

Because that's what it is.

* Use TempDirectory in more places (take 2)

* Fix indentation...

* 🎨

* Dumb mistake.

* Defer creation of temporary directory

* Misc

* Oops!

* Use better name

* Fix mistakes made in rebasing

* Remove unnecessary wrapping

* 📰

* Misc change to trigger a new CI build

* Make TempDirectory more robust

Update test accordingly

* 🎨 Remove unused import

* 🔧 Fix mistake made during merge

* Move kind to prefix

* Move delete initalization to __init__

* Remove unrelated message

* Improve existing test

* Oops.

* Add a test to verify that readonly files are also deleted

* 🎨

* Increase places where TempDirectory is used

* Remove unused import

* Improve tests, fix bug

* 🎨

* Update test for new behaviour

* Missed no_clean argument

* Make temp_dir private

* Delete the temporary directory based on no_clean

* Give TemporaryDirectory use a unique name

* 🎨

* 📝 Add basic documentation
2017-06-01 14:54:29 +02:00