1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

154 commits

Author SHA1 Message Date
Pradyun Gedam 72d5d140be
Define a function to use as sorting key
Why: It makes it clearer what the funky expression means.
2019-09-25 08:04:14 +05:30
Pradyun Gedam 14cbc5f8a4
Return early from the function
Why: Allows reducing indentation of the function body.
2019-09-25 08:03:57 +05:30
Pradyun Gedam 15154079d2
Move run_egg_info into operations.generate_metadata (#7063)
Merge pull request #7063 from pradyunsg/refactor/metadata-generator-legacy
2019-09-22 20:01:57 +05:30
Pradyun Gedam c787fcb3e1
Merge pull request #7064 from pradyunsg/rename-correct-build-location
Better name for _correct_build_directory
2019-09-22 19:37:11 +05:30
Pradyun Gedam 359a670ba8
Use ZipFile as context manager in InstallRequirement.archive (#6988) 2019-09-22 12:51:42 +05:30
Pradyun Gedam 596b77c149
Better name for _correct_build_directory
Why: the older name doesn't clearly signal what is happening.
2019-09-22 12:49:20 +05:30
Pradyun Gedam 7fabb1621d
Merge pull request #7051 from pradyunsg/refactor/metadata-generator
Call into operations.generate_metadata to generate metadata
2019-09-21 22:34:49 +05:30
Pradyun Gedam 8a144447d7
Move run_egg_info logic into generate_metadata 2019-09-21 11:27:47 +05:30
Pradyun Gedam 6d8c3fdd29
Pass self to the metadata generation function 2019-09-20 19:43:14 +05:30
Pradyun Gedam b5495b4d1e
Introduce an operations.generate_metadata module
As things stand, it'll completely delegate all the metadata generation
to InstallRequirement's methods.

Follow ups will move related code into this module.
2019-09-20 19:43:13 +05:30
Chris Hunt fbdd02e2fd Manage InstallRequirement._temp_build_dir itself instead of its path 2019-09-19 22:09:01 -04:00
Chris Hunt 5e785993b8 Normalize style. 2019-09-17 19:14:39 -04:00
Pradyun Gedam ad68984ec6
Rename {build_location -> ensure_build_location} 2019-09-15 22:09:34 +05:30
Pradyun Gedam 56b6fcc83b
Merge pull request #6999 from chrahunt/refactor/refactor-2
Keep `InstallRequirement.archive` in-place
2019-09-10 21:48:51 +05:30
Chris Hunt 96a53d49ec Move archive description from TODO to docstring.
This whole class will be refactored, so the TODO is implicit.
2019-09-09 19:45:33 -04:00
Chris Hunt c46496fba6 Remove InstallRequirement.uninstalled_pathset
Last actual usages of this were removed in #4642.
2019-09-09 15:53:58 +02:00
Pradyun Gedam a7d8d56914
Remove unactionable FIXME in InstallRequirement (#7001)
Merge pull request #7001 from chrahunt/refactor/refactor-5
2019-09-09 10:09:32 +05:30
Chris Hunt 8f684d9eab Remove unactionable FIXME in InstallRequirement
`setup.py develop` doesn't accept `--install-headers`, so there's no
need for this comment.
2019-09-08 21:21:08 -04:00
Chris Hunt 94b34c3e54 Remove FIXME tracked in issue tracker. 2019-09-08 20:44:11 -04:00
Chris Hunt 4686e48e0f Remove unused update parameter from InstallRequirement. 2019-09-06 21:18:10 -04:00
Chris Hunt 2963e4e217 Use ZipFile as context manager (Python 2.7+). 2019-09-06 21:05:15 -04:00
Chris Hunt 0c5721fe84 Simplify directory delete marker file check. 2019-09-05 11:25:19 +02:00
Pradyun Gedam c23c52da4f
Merge pull request #6325 from hugovk/pip-wheel-metadata-in-tempdir
Use a temp dir for pip-wheel-metadata
2019-09-05 13:28:46 +05:30
Chris Hunt 7ce0eafe53 Combine separate editable conditions into one. 2019-09-04 21:26:45 -04:00
Pradyun Gedam 365fee27ec
Merge pull request #6963 from chrahunt/refactor/clean-egg-info-path-1
Clean up venv check in `InstallRequirement.egg_info_path`.
2019-09-04 07:46:18 +05:30
Chris Hunt 9dd7e0d58a Clean up venv check in InstallRequirement.egg_info_path. 2019-09-02 15:17:35 -04:00
Chris Hunt bdd3781858 Remove unused return value from InstallRequirement.ensure_source_dir 2019-09-02 14:36:14 -04:00
Pradyun Gedam 22e12d28af
Merge pull request #6932 from pradyunsg/misc/nicer-set-use-pep517
Improve flow of setting InstallRequirement.use_pep517
2019-09-01 21:37:43 +05:30
Pradyun Gedam 0fc90d5d1f
Improve flow of setting InstallRequirement.use_pep517 2019-08-27 13:37:51 +05:30
Albert Tugushev 3c9770d9b2 Redact single-part login credentials from URLs (#6921) 2019-08-26 15:50:07 -07:00
Chris Jerdonek 7783c47131
Hide security-sensitive strings in VCS command log messages (#6890) 2019-08-21 03:22:57 -07:00
Chris Jerdonek 63639bfc0f Make tags required in Wheel.support_index_min() and supported(). 2019-08-10 02:59:59 -07:00
Pradyun Gedam f377148f6d
Use mypy's inline configuration syntax for opt-outs 2019-07-30 12:39:51 +05:30
Prabakaran Kumaresshan f76014efac Add global options and no user config args to make_setuptools_shim_args (#6706) 2019-07-28 11:28:35 -07:00
Pradyun Gedam 537b0fca12
Change isort multi_line_output to 3 2019-07-22 10:15:27 +05:30
Pradyun Gedam c275e9d1ab Drop a useless import in favor of explicitness 2019-07-21 00:36:14 +02:00
Pradyun Gedam 21c4c4d5ee
Add a format_debug method to InstallRequirement 2019-07-20 10:29:14 +05:30
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
Chris Jerdonek 0baec60bdc Address a couple strict_optional lines in req/req_install.py. 2019-07-14 23:07:48 -07:00
Chris Jerdonek 2b58bcde31 Remove strict_optional=False for download.py. 2019-07-14 23:07:48 -07:00
Prabakaran Kumaresshan 91b6b4ed54 Refactor SETUPTOOLS_SHIM with function make_setuptools_shim_args (#6691) 2019-07-12 01:29:41 -07:00
Bertil Hatt b47da272aa Set sys.argv[0] to the underlying setup.py in the setuptools shim. 2019-07-07 18:40:31 -07:00
Pradyun Gedam edbd0822dc Rename InstallRequirement.setup_py -> setup_py_path 2019-06-30 20:23:12 +02:00
Pradyun Gedam 0015089ed9 Suffix "_path" to InstallRequirement.pyproject_toml 2019-06-30 20:23:12 +02:00
Chris Jerdonek abe36d58da Simplify InstallRequirement.get_dist(). 2019-06-21 17:58:46 -07:00
Pradyun Gedam d5891784d1
Reduce indentation 2019-06-16 22:57:32 +05:30
Pradyun Gedam b1b097a307
pep517_data -> pyproject_toml_data 2019-06-16 22:57:07 +05:30
Pradyun Gedam 9c5eafc1c9
Simplify assignment of InstallRequirement.use_pep517 2019-06-16 22:56:40 +05:30
Chris Jerdonek 0ea639d644 Remove url as an instance attribute of the VersionControl class. 2019-05-06 22:59:18 -04:00