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

8294 commits

Author SHA1 Message Date
Thomas Kluyver d631a9355c Allow for use_user_site being set to an integer
This can come from tox config, see:
https://github.com/pypa/pip/pull/7002#issuecomment-545108292
2019-10-24 11:59:22 +01:00
Pradyun Gedam c729a84b48
Merge pull request #7002 from takluyver/install-user-fallback
Default to --user install in certain conditions
2019-10-22 08:44:06 +05:30
Thomas Kluyver 42b1ef3537 Clarify comment 2019-10-21 13:52:50 +01:00
Thomas Kluyver c4d92bbb4e Use pytest parametrize for decide_user_install tests 2019-10-21 08:52:44 +01:00
Thomas Kluyver fbc0588c01 Add unit tests of decide_user_install() 2019-10-20 21:48:18 +01:00
Thomas Kluyver 16174f4ad0 Add logging for decide_user_install 2019-10-20 21:28:56 +01:00
Thomas Kluyver 79f0591630 Don't check write access on the same path twice 2019-10-20 21:23:49 +01:00
Chris Hunt a5d53eab0a Simplify skip_requirements_regex option handling
Decouples `process_lines` from our CLI options.
2019-10-20 13:33:15 -04:00
Chris Hunt c8307614f2 Do requirement file recursion first
This change makes factoring out the parsing more obvious.
2019-10-20 12:50:07 -04:00
Chris Hunt 4d7fc272b4 Remove no-action TODO
comes_from is only used in get_file_content, which expects to see a URL
or path, so there is no need to decorate it.
2019-10-20 12:45:10 -04:00
Chris Hunt f0b20f19ae Hide line parsing details behind a line parser
Simplifies reading the code that actually processes the line.
2019-10-20 12:24:24 -04:00
Chris Hunt 6645530952 Do not create line-specific parsers for requirements files
This clears the way and for us to create our parser outside
the function next.
2019-10-20 12:05:33 -04:00
Christopher Hunt ccfd119673
Merge pull request #7241 from xavfernandez/update_release_doc
Update release doc
2019-10-20 09:16:40 -04:00
Jacob Kim 618e97520d Respect docstring conventions (#7230)
Respect PEP 257 -- Docstring Conventions in wheel.py
2019-10-20 09:14:50 -04:00
Pradyun Gedam 8dbf8461fc
Clean up wheel.move_wheel_files (#7176) 2019-10-20 13:26:48 +05:30
Pradyun Gedam 9ab9040d75
Remove RequirementSet.require_hashes (#7068) 2019-10-20 13:23:40 +05:30
Pradyun Gedam 247290391a
Merge pull request #7239 from pradyunsg/refactor/move-prepare_pep517_metadata
Move prepare_pep517_metadata to generate_metadata
2019-10-20 11:19:37 +05:30
Pradyun Gedam 0f095af4ba
Merge pull request #7144 from pradyunsg/index-sub-package
Introduce an `index` sub-package
2019-10-20 09:17:20 +05:30
Xavier Fernandez 7c218c9a80 Update the patch release process 2019-10-19 22:53:29 +02:00
Xavier Fernandez cb8564c6e1 docs: add notes regarding `get-pip.py` during the release 2019-10-19 22:52:45 +02:00
Pradyun Gedam 1875573daf
Ah the imports. 2019-10-20 00:32:02 +05:30
Pradyun Gedam e6875ec7cc
refactor: Unpack from install_req eagerly 2019-10-20 00:32:02 +05:30
Pradyun Gedam e21e28f4eb
Move prepare_pep517_metadata to generate_metadata
Why: So that InstallRequirement is no longer responsible for this task.
2019-10-20 00:31:51 +05:30
Pradyun Gedam 6d96b85388
Update the URL fragment to not include "py"
I'm making this change since it's unlikely that folks would've linked to
this specific section, and if they did, this isn't exactly user facing
documentation, so I wouldn't hold this to the same standard.
2019-10-19 22:31:45 +05:30
Pradyun Gedam 2399a26cb1
Remove remaining references to index.py 2019-10-19 22:29:19 +05:30
Pradyun Gedam 3846da7f71
Update docs/html/development/architecture/package-finding.rst
Co-Authored-By: Ellen Marie Dash <the@smallest.dog>
2019-10-19 22:24:53 +05:30
Pradyun Gedam 611fc6069b
Update references to collector.py 2019-10-19 22:24:53 +05:30
Pradyun Gedam 2db6f428bf
Update imports to {index -> index.package_finder} 2019-10-19 22:24:01 +05:30
Pradyun Gedam 6ea84c6145
Update docs to refer to index as a sub-package 2019-10-19 22:22:12 +05:30
Pradyun Gedam d766c448e1
Move index interaction code into pip._internal.index
Why: To better group code that handles index interactions.

Renames pip._internal.{collector -> index.collector} and
pip._internal.{index -> index.package_finder}
2019-10-19 22:22:12 +05:30
Pradyun Gedam 66e9b44f15
Import req_file more directly 2019-10-19 22:22:11 +05:30
Pradyun Gedam c18e912b2a
Import InstallationCandidate more directly 2019-10-19 22:22:11 +05:30
Pradyun Gedam 23ab63e2f3
Import FormatControl more directly 2019-10-19 22:22:07 +05:30
Thomas Kluyver ecac7a17b5 Line length 2019-10-19 11:28:51 +01:00
Pradyun Gedam e94e7877ab Polish & clarify decide_user_install() function 2019-10-19 11:23:27 +01:00
Pradyun Gedam bcad1b1cb5
Add new option: pip wheel --save-wheel-names (#6377) 2019-10-19 11:03:15 +05:30
Christopher Hunt f86490317a
Merge pull request #7175 from chrahunt/refactor/centralize-setuptools-args
Centralize setuptools args construction
2019-10-18 21:16:30 -04:00
Christopher Hunt c4009ec6c2
Merge pull request #7235 from chrahunt/maint/fix-lint
Add newline to news file
2019-10-18 09:34:03 -04:00
Chris Hunt 5098203271 Add newline to news file 2019-10-18 08:48:17 -04:00
Xavier Fernandez 9373159056
Merge pull request #7232 - Release 19.3.1 2019-10-18 10:15:26 +02:00
Pradyun Gedam 053346f3b0
Merge pull request #7187 from chrahunt/refactor/move-get-file-content
Remove pip._internal.download
2019-10-18 06:47:07 +05:30
Christopher Hunt 24c9daaaa9
Merge pull request #6857 from abs51295/fix-pip-freeze
Canonicalize FrozenRequirement name for correct comparison
2019-10-17 20:08:23 -04:00
Christopher Hunt 5d80999c02
Merge pull request #7212 from contactpunit/str-format-fix
Change %s to .format
2019-10-17 19:47:43 -04:00
Prabhu Marappan 4bb13dad14 Use str.format Instead of %s (#7196)
Co-Authored-By: Pradyun Gedam <pradyunsg@gmail.com>
2019-10-17 19:46:20 -04:00
Xavier Fernandez 6951267d7d Merge branch 'master' into release_19.3.1
and drop master news file already included in 19.3.1
2019-10-17 22:21:43 +02:00
Xavier Fernandez 00e3f9f098 Back to development 2019-10-17 21:32:34 +02:00
Xavier Fernandez 6500e59560 Release 19.3.1 2019-10-17 21:32:34 +02:00
Pradyun Gedam 6ee768a1d4 Fix PEP 517 builds for packages without setup.py (#6606) 2019-10-17 21:32:01 +02:00
Christopher Hunt 4bc72977fc Merge pull request #7219 from hugovk/add-3.8
Declare support for Python 3.8
2019-10-17 21:30:58 +02:00
Pradyun Gedam 554207e704
Merge pull request #7180 from chrahunt/refactor/separate-get-dist-function
Factor get_dist implementation out of InstallRequirement
2019-10-18 00:02:44 +05:30