Pradyun Gedam
25ab172b55
Update linter: isort
2020-09-23 19:52:28 +05:30
Tomas Hrnciar
b438d47344
Remove shebang from nonexecutable script
...
When packaging pip in Fedora, we have realised
that there is a nonexecutable file with a shebang line.
It seems that the primary purpose of this file is to be imported from Python
code and hence the shebang appears to be unnecessary.
Shebangs are hard to handle when doing downstream packaging because it makes
sense for upstream to use `#!/usr/bin/env python` while in the RPM package, we
need to avoid that and use a more specific interpreter. Since the shebang was
unused, I propose to remove it to avoid the problems.
We have found more shebangs but in vendored packages. I have also opened PRs there:
https://github.com/ActiveState/appdirs/pull/144
https://github.com/psf/requests/pull/5410
https://github.com/chardet/chardet/pull/192
x
2020-04-09 11:53:21 +02:00
Chris Hunt
241679e6c2
Setup old entrypoints in pip module
...
This should make everything "just work" with respect to combinations of
PATH, sys.path, and multiple Python installs. Later we can add a warning
here to help guide users to better understanding.
2019-12-19 21:20:51 -05:00
Chris Hunt
f315671572
Move urllib3 warning suppression to network.session
...
This is only relevant for our usage of --trusted-host, so it is enough
to initialize it in network.session.
2019-10-06 22:31:49 -04:00
NtaleGrey
c9bc36bdae
format code
2019-09-27 14:46:53 +03:00
NtaleGrey
9ba442362f
remove DependencyWarning warning from pip._internal
2019-09-27 14:27:08 +03:00
Chris Hunt
b0eed267a6
Remove autocomplete import from pip._internal.__init__
2019-09-21 15:27:47 -04:00
Chris Hunt
09fd200c59
Move `pip._internal:main` to its own module
...
Moving content out of `__init__` is preferred in general because it
avoids conflicts with module names and unnecessary imports.
2019-09-21 15:27:39 -04:00
Pradyun Gedam
2f9f91882a
Simplify ignoring urllib3 warnings
2019-08-04 23:11:30 +05:30
Pradyun Gedam
12e63b9def
Move logic for SecureTransport injection to utils
2019-08-04 23:11:25 +05:30
Chris Jerdonek
1f09e67f34
Only import a Command class when it is actually needed.
...
This resulted in an approximate 24% speed-up of a vanilla `pip`
invocation on one system (0.477 secs before, 0.363 secs after).
2019-07-26 23:30:26 -04:00
Chris Jerdonek
5c89643d3d
Remove importing from vcs in pip/_internal/__init__.py.
...
This also renames the current vcs/__init__.py to vcs/versioncontrol.py.
2019-06-03 01:18:36 -07:00
Pi Delport
5f3c56e188
Fix some typos
2019-03-12 21:54:18 +01:00
Pradyun Gedam
7dbe62ddd6
Move logic for parsing commands into a main_parser
2018-08-05 14:24:08 +05:30
Pradyun Gedam
db72d427c5
Move autocompletion logic out to pip._internal.cli.autocompletion
2018-08-05 14:24:07 +05:30
Pradyun Gedam
158c9bfe45
Move creation of CLI parser into pip._internal.cli
2018-08-05 14:24:07 +05:30
Pradyun Gedam
8314dcb7d0
Rename baseparser to parser
2018-07-30 09:35:08 +05:30
Pradyun Gedam
8b4713f63c
Move cmdoptions to pip._internal.cli
2018-07-29 18:26:33 +05:30
Pradyun Gedam
d3065ee937
Create a pip._internal.cli package
2018-07-29 18:26:28 +05:30
Pradyun Gedam
ae58decefe
Inline a super-simple function
2018-07-23 10:47:43 +05:30
Kexuan Sun
14fe337bcf
Improve autocompletion function on file name completion ( #5125 )
2018-06-21 22:59:31 +05:30
Segev Finer
bca2f4ed59
Add auto completion of short options
...
Fixes #4954
2018-01-06 11:00:41 +02:00
Pradyun Gedam
729990c986
Round 1 of Cleanups ( #4844 )
...
* misc: fix typo
* misc: 🎨 cleanup parenthesis
* misc: 🎨 minor simplifications
* tests: fix test_console_to_str_warning
2017-12-25 15:23:27 +05:30
Antony Lee
d339351a41
Autocomplete installed dists in `pip show ...`. ( #4749 )
...
* Autocomplete installed dists in `pip show ...`.
* 🎨 Assign to a variable to satisfy linters
2017-10-02 22:56:17 +02:00
Donald Stufft
13a3f1d52a
Upgrade requests
2017-09-07 15:54:22 -04:00
Pradyun S. Gedam
93d9f20df8
Remove a useless section
2017-09-02 16:59:37 +05:30
Pradyun S. Gedam
d40881894e
Add imports I'd missed
2017-09-02 16:10:48 +05:30
Pradyun S. Gedam
11451c54ec
Merge branch 'master' into mypy/infrastructure
2017-09-02 16:06:48 +05:30
Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00