summaryrefslogtreecommitdiff
path: root/src/pip/_internal/utils/filesystem.py
Commit message (Collapse)AuthorAgeFilesLines
* Blacken src/pip/_internal/utils directoryJon Dufresne2021-02-211-9/+7
|
* Merge pull request #9606 from hexagonrecursion/fstrPradyun Gedam2021-02-211-2/+1
|\
| * Convert more str.format() calls to f-stringsAndrey Bienkowski2021-02-131-2/+1
| |
* | Remove typing.TYPE_CHECKING guardsJon Dufresne2021-02-191-5/+2
| | | | | | | | | | | | | | | | | | | | | | The typing module has been available since Python 3.5. Guarding the import has been unnecessary since dropping Python 2. Some guards remain to either: - Avoid circular imports - Importing objects that are also guarded by typing.TYPE_CHECKING - Avoid mypy_extensions dependency
* | Replace pip._internal.utils.typing with stdlib typingJon Dufresne2021-02-181-2/+2
|/ | | | | | | | The stdlib module has been available since Python 3.5 and the TYPE_CHECKING constant has been available since 3.5.2. By using stdlib, this removes the need for pip to maintain its own Python 2 typing compatibility shim.
* Remove unnecessary type override NamedTemporaryFileResultJon Dufresne2020-12-271-10/+4
| | | | | | The object returned by NamedTemporaryFile delegates all functions calls to the underlying file so can avoid the type override by relying on IO methods.
* Use unified OSError and its subclassesJon Dufresne2020-12-261-17/+11
| | | | | | | | | | | | | | | Since Python 3.3, the following classes have merged into OSError. They remain as aliases for backward compatibility. - EnvironmentError - IOError - WindowsError https://docs.python.org/3/library/exceptions.html#OSError Python 3 also has subclasses of OSError to help identify more specific errors. For example, FileNotFoundError. This allows simplifying some except blocks.
* Remove redundant Python 2.7 codeHugo van Kemenade2020-12-221-13/+1
|
* Fix src/pip with flake8-bugbearDevesh Kumar Singh2020-06-101-2/+2
|
* Merge pull request #8053 from gutsytechster/update_filesystem_commentPradyun Gedam2020-05-221-0/+2
|\
| * fix(_internal/utils/filesystem): Update comment for catched exceptiongutsytechster2020-05-131-0/+2
| | | | | | | | This fixes https://github.com/pypa/pip/issues/8047
* | Revert "remove _copy_source_tree and friends"Pradyun Gedam2020-05-131-0/+32
|/ | | | This reverts commit 873f1e6332aa827c886266c7d858067c12521e80.
* Merge pull request #8025 from catPill/fix-windows-writable-testPaul Moore2020-04-141-1/+4
|\ | | | | Fix Windows folder writable detection
| * Fix Windows folder writable detectionghost2020-04-121-1/+4
| |
* | Merge pull request #7882 from sbidoul/build-in-place-7555-sbiPradyun Gedam2020-04-131-32/+0
|\ \ | | | | | | Build local directories in place
| * | remove _copy_source_tree and friendsStéphane Bidoul2020-04-121-32/+0
| |/
* | [command/cache, utils/filesystem] Use existing format_size; remove ↵Ellen Marie Dash2020-04-011-29/+5
| | | | | | | | _friendly_size; rename friendly_*_size to format_*_size for consistency.
* | [utils/filesystem] Reformat comment to keep lines <79 characters long.Ellen Marie Dash2020-04-011-1/+5
| |
* | [utils/filesystem] Convert `size` to float, for consistent behavior between ↵Ellen Marie Dash2020-04-011-0/+1
| | | | | | | | Py2 and Py3.
* | [commands/cache] Add file size information.Ellen Marie Dash2020-04-011-1/+49
| |
* | Add 'pip cache' command.Ellen Marie Dash2020-04-011-1/+13
|/
* Use better temporary files mechanismNguyễn Gia Phong2020-04-011-5/+11
|
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-03-061-1/+2
|
* Convert the remaining '%' formatters to '.format'. Fixes #6973.Jason R. Coombs2020-03-061-1/+1
|
* Eagerly normalize the cache directoryStéphane Bidoul (ACSONE)2020-01-081-0/+2
| | | | Fixes #7541
* Fix mypy checks on WindowsChris Hunt2019-12-291-1/+2
| | | | | | Previously we were making unguarded calls to non-Windows-only APIs. Mypy only automatically excludes these from platform-specific checks when inside conditions.
* Move utils.misc.cast to avoid circular importChris Hunt2019-11-041-2/+1
|
* Handle nonexistant directory when checking for write accessThomas Kluyver2019-10-091-0/+7
|
* Fix exclusive-mode open for Python 2Thomas Kluyver2019-10-091-2/+2
|
* Fix maximum line lengthThomas Kluyver2019-10-091-1/+3
|
* Fix OSError catching for Python 2Thomas Kluyver2019-10-091-7/+10
|
* Add type annotation commentsThomas Kluyver2019-10-091-0/+2
|
* Default to --user install in certain conditionsThomas Kluyver2019-10-091-0/+40
|
* Use os.replace in Python 3.Chris Hunt2019-09-081-8/+15
|
* Write to tempfile and move instead of locking selfcheck file.Chris Hunt2019-09-081-0/+47
|
* Ignore errors copying socket files for source installs (in Python 3). (#6844)Christopher Hunt2019-08-211-0/+31
|
* Added type hintspetr-tik2018-10-271-0/+2
| | | | | | | | | | Found a potential bug i.e. missing return statement in check_path_owner. If while loop falls through without returning, return a defensive False Added a trivial file as per the contributor guidelines Make linter happy - ignore "unused" import
* Update imports for the moved compat modulePradyun Gedam2018-07-291-1/+1
|
* Move all internal APIs to pip._internalDonald Stufft2017-08-311-0/+28