Jon Dufresne
bd0c1f5d4c
Remove outdated PyPy workaround for site_packages location
...
Upstream issue has been resolved and released on Python versions
supported by pip:
https://foss.heptapod.net/pypy/pypy/-/issues/2506
2020-12-27 12:16:28 -08:00
Jon Dufresne
cdcf74fb8e
Use f-strings for simple string formatting
...
Use pyupgrade to convert simple string formatting to use f-string
syntax. pyupgrade is intentionally timid and will not create an f-string
if it would make the expression longer or if the substitution parameters
are anything but simple names or dotted names.
2020-12-25 16:21:20 -08:00
Jon Dufresne
f32adaf09b
Remove __future__ imports
...
Unnecessary since dropping Python 2.
2020-12-24 08:38:09 -08:00
Pradyun Gedam
25ab172b55
Update linter: isort
2020-09-23 19:52:28 +05:30
Tzu-ping Chung
b85d5026e3
Fix header calculation when prefix is given
2020-07-07 18:53:33 +08:00
Christopher Hunt
1b4c0866ab
Remove untyped defs ( #7382 )
2019-11-19 11:46:26 +08:00
Maxim Kurnikov
d1452ffabd
add global disallow_any_generics=True
2019-11-12 21:08:48 +03:00
Chris Hunt
16684fbc28
Create Scheme model and wrap distutils_scheme
...
Now we have a nicely-typed interface to the calculated scheme,
and some more documentation for the same.
2019-11-07 12:43:35 -05:00
Chris Hunt
d709966c72
Normalize style in pip._internal.locations
2019-11-05 19:01:17 -05:00
Chris Hunt
a790c92d2e
Type-safer distutils install command handling
2019-11-05 19:01:14 -05:00
Chris Hunt
0339983b0f
Remove intermediate args variable
2019-11-04 20:02:28 -05:00
Chris Hunt
93ffb10a23
Remove old type workaround comments
2019-11-04 20:01:09 -05:00
Maxim Kurnikov
3692097cca
add per-file disallow_untyped_defs=False, and set it to True globally
2019-09-29 23:31:15 +02:00
Pradyun Gedam
9332803089
Merge pull request #6729 from asottile/3_10_fixes
...
sys.version fixes for python 3.10
2019-08-18 09:27:09 +09:00
Pradyun Gedam
f377148f6d
Use mypy's inline configuration syntax for opt-outs
2019-07-30 12:39:51 +05:30
Chris Jerdonek
6f638eb591
Add get_major_minor_version().
2019-07-27 20:01:52 -07:00
Anthony Sottile
c3fb5cbff0
sys.version fixes for python 3.10
2019-07-27 19:59:18 -07:00
Xavier Fernandez
645809944c
Move config files locations inside a function ( #6736 )
2019-07-20 22:29:24 +02:00
Xavier Fernandez
4cf08e85c0
Isolate src_prefix computation in a function
2019-07-19 12:08:33 +02:00
Xavier Fernandez
8342a0e463
Remove obsolete comment
...
It should have been removed in 7288475118
2019-07-19 12:08:33 +02:00
Xavier Fernandez
fc618bf3b1
Move virtualenv detection functions into their own module
2019-07-19 10:03:22 +02:00
Xavier Fernandez
34092d3234
Move pip marker related constant & function in their own module
...
It didn't seem related with the rest of the locations module
2019-07-18 22:53:05 +02:00
Pradyun Gedam
287aa4b7bf
Merge pull request #6008 from jaraco/bugfix/4106-distutils-option-error-target-prefix-conflict
...
Prevent distutils option error target prefix conflict
2019-05-25 13:29:49 -04:00
Steve Dower
293c91ee8a
Configuration files may now also be stored under `sys.prefix` ( #6268 )
...
* Rename kinds.VENV to kinds.SITE and site_config_files to global_config_files
* Add tests for config file options
* Deprecate --venv in pip config
2019-03-07 11:14:56 +05:30
Maxim Kurnikov
f77b8ca051
remove #noqa: F401
2019-02-22 14:17:07 +03:00
Pradyun Gedam
22fe45d462
Fix new issues found in mypy 0.620 -> 0.650
2018-12-18 11:20:14 +05:30
Jason R. Coombs
65c38650f6
Extend sanity check on user+prefix to include similar check for home+prefix. Ref #4106 .
2018-11-12 11:09:56 -05:00
Benoit Pierre
e6bc873698
Prevent DistutilsOptionError when prefix is indicated in the global environment and --target is used. Fixes #4106 .
2018-11-12 11:06:34 -05:00
Pradyun Gedam
bfc54bc84d
Satisfy the linter
2018-10-31 01:47:12 +05:30
Erdinc Mutlu
11f7fba714
flake8 issue fixed
2018-10-28 16:42:24 +00:00
Erdinc Mutlu
ee38a8f028
Fixed Travis issues with my commit
2018-10-28 15:08:21 +00:00
Erdinc Mutlu
1429f14184
Minor change according to review and comment for typeshed issue reported
2018-10-28 14:12:45 +00:00
Erdinc Mutlu
613dc33656
added remaining mypy annotation to pip._internal.locations
2018-10-28 12:16:20 +00:00
Erdinc Mutlu
25cb31ab10
added mypy annotation to pip._internal.locations
2018-10-27 14:34:20 +01:00
Pradyun Gedam
4fc697847a
Update imports for the moved compat module
2018-07-29 18:32:20 +05:30
Pradyun Gedam
cc33877126
I missed an import
2018-06-13 13:17:31 +05:30
Pradyun Gedam
54722aa7ec
Remove unused imports
2018-06-13 13:17:30 +05:30
Anthony Sottile
9762eb02e3
Upgrade syntax in src/pip/_internal
...
Changes were automated via https://github.com/asottile/pyupgrade
See #4921
2017-12-14 21:59:22 -08:00
Pradyun S. Gedam
e2b2f70ebb
isort all imports
2017-09-02 17:02: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