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
Thomas Kluyver
15ac808c7d
Fix duplicate imports and code style
2017-05-19 11:10:57 +01:00
Thomas Kluyver
20955812bf
Merge branch 'master' into pep518
2017-05-19 11:04:32 +01:00
Pradyun S. Gedam
1832569530
Sort all imports
2017-05-16 15:47:47 +05:30
Thomas Kluyver
fee06aa18f
Fix indentation
2017-04-26 14:29:23 +01:00
Thomas Kluyver
3adc1f8cc3
Ignore --no-binary when installing build-system
...
We don't want to get stuck if the build-system is self-hosting
2017-04-26 13:47:46 +01:00
Thomas Kluyver
b1d0e6b87d
Avoid uninstalling setuptools when installing build dependencies
2017-04-13 13:15:14 +01:00
Thomas Kluyver
a9c4081a96
Warning message if package doesn't build-dep on setuptools
2017-04-13 11:02:40 +01:00
Thomas Kluyver
7561bf201f
Re-disable isolation for wheel builds
2017-04-13 10:51:41 +01:00
Thomas Kluyver
9a79fb5ac4
Allow build-system requirements to be empty
2017-04-12 17:41:23 +01:00
Thomas Kluyver
618720de89
build-system.requires = [] -> ["setuptools", "wheel"]
2017-04-12 17:05:43 +01:00
Thomas Kluyver
c9d83b9dd6
Let context exit implicitly return None, as requested
2017-04-12 16:55:57 +01:00
Thomas Kluyver
a50c4ef2ac
Fix code style
2017-04-01 19:36:36 +01:00
Thomas Kluyver
094b44191a
Python 2.6 is no longer supported :-)
...
Also corrected a comment
2017-04-01 19:29:47 +01:00
Thomas Kluyver
a8cdd4ab7f
Fix thinko
2017-04-01 19:29:47 +01:00
Thomas Kluyver
cfbc4d9fea
Use no_clean option for wheel build environment
2017-04-01 19:29:47 +01:00
Thomas Kluyver
ea108f834b
Use pip.__main__ to invoke pip on Python 2.6
2017-04-01 19:29:47 +01:00
Thomas Kluyver
b170957301
Disable isolation so packages can use setuptools
2017-04-01 19:29:47 +01:00
Thomas Kluyver
d0a9b4bc69
Make import local to avoid circular import
2017-04-01 19:29:47 +01:00
Thomas Kluyver
3a68e97aeb
Wrap each build req in an InstallRequirement
2017-04-01 19:29:47 +01:00
Thomas Kluyver
8a9d0493e7
Use finder to find build deps to install
2017-04-01 19:29:47 +01:00
Thomas Kluyver
397066bd6a
Correct install command for build deps
2017-04-01 19:29:47 +01:00
Thomas Kluyver
191d68001e
Let's see if that keeps PEP8 happy
...
If anything, the indentation changes make the code less readable. But
the hobgoblin says this is the right way to do it...
2017-04-01 19:29:47 +01:00
Thomas Kluyver
32eebbfaf9
Compatibility fallback for absent sysconfig module on Python 2.6
2017-04-01 19:29:47 +01:00
Thomas Kluyver
3da2cef247
Hopefully satisfy pep8
2017-04-01 19:29:47 +01:00
Thomas Kluyver
92bfdf702f
Isolate wheel builds when using PEP 518 build dependencies
2017-04-01 19:29:47 +01:00
Thomas Kluyver
b31c87f1df
Install build requirements for projects using PEP 518
2017-04-01 19:29:47 +01:00
Thomas Kluyver
779bbaa328
Temporary prefix for installing build dependencies
2017-04-01 19:29:47 +01:00
Vincent Philippon
8378567b61
Install wheel with a non-PEP 440 version in the filename.
...
PEP 427 has no specific requirements for the format of the version.
As pip wheel allows to create a wheel with a non-PEP 440 version,
it should also be able to install that same wheel.
2017-03-27 23:12:42 -04:00
Ville Skyttä
cee7a53712
Python 3.6 invalid escape sequence deprecation fixes
2017-03-20 13:54:29 +01:00
Donald Stufft
0708de5b34
Misc syntax updates
2017-03-18 14:52:14 -04:00
Xavier Fernandez
b559221ee1
Move uninstall file selection logic to req_uninstall.py
2016-11-20 13:04:14 +01:00
Francesco Montesano
d64b871d97
Allow pip install with entrypoint names with colons ( #3901 )
2016-11-19 00:27:16 +01:00
Donald Stufft
2743edcc77
Use the canonicalize_name function for finding .dist-info ( #3794 )
2016-10-30 11:42:14 -04:00
Ofekmeister
ad3b972f0a
Fix issue #3233
...
Made ending 'w' on generated entry points optional as they rarely, if
ever, will end in one.
2016-08-18 22:42:27 -04:00
Jakub Wilk
6dc28c1b31
Fix typos
2016-06-10 21:29:43 +02:00
Stéphane Bidoul (ACSONE)
4d1b798465
Allow creating wheels for editable packages ( #3695 )
2016-05-26 06:41:01 -04:00
Ville Skyttä
46582e5ab6
Use logger.warning instead of deprecated logger.warn
2016-04-15 16:30:28 +03:00
Paul Moore
1d3a7b473a
Add more detail to the 'Multiple .dist-info directories' error
2016-04-11 11:16:06 +01:00
Donald Stufft
8e236dd6a0
Update to use the Requirement class from packaging
2016-03-07 11:40:39 +11:00
Donald Stufft
b8e2f7b55a
Use packaging 16.2's canonicalize_name function
2016-02-17 21:03:24 -05:00
Stéphane Bidoul
3f4a796ff8
make pip wheel work with vcs urls having the subdirectory option
2016-02-08 16:42:57 +01:00
stonebig
6716d906b3
simplify to assume Py2.6 and pypy
2016-02-02 22:00:45 +01:00
stonebig
64c5a11170
pep 8
2016-02-02 21:32:27 +01:00
stonebig
feb135011e
pep 8
2016-02-02 21:22:17 +01:00
stonebig
8de0f2a31a
write only relative path in 'RECORD'
...
RECORD now contains only relative path.
some bugs triggered by a bleeding edge usage of python may disappear a result (https://github.com/pypa/pip/issues/3433 )
2016-02-02 21:09:21 +01:00
Donald Stufft
3b3978b994
Merge pull request #3284 from ncoghlan/pep376-installer-file
...
Record pip in INSTALLER file
2016-01-19 10:41:08 -05:00
Jeff Barber
24a5cc6a42
Fix for issue #2834 with test
2016-01-03 17:38:36 -05:00
Nick Coghlan
a925c88ed6
Record pip in INSTALLER file
2015-12-04 19:22:19 +10:00