Pradyun Gedam
58c594c06b
Prepare isort for black
2020-09-23 21:47:47 +05:30
Noah Gorny
aae63795b2
reqfile: Update extra-index-url/index-url in session from requirements file
...
Also update the relevant tests
2020-08-06 19:25:31 +03:00
Stéphane Bidoul
38fe3c2f14
Percolate --use-feature from req file upwards
...
We explicitly propagate --use-feature options from req files upwards.
This is not strictly necessary for the option to be enabled, because
of the default value is a global list, but that implicit behaviour is
certainly accidental, so we make it explicit, with a test.
2020-07-25 11:14:04 +02:00
Andy Freeland
3eef588a03
Support '--use-feature' in requirements files
...
This patch adds support for `--use-feature` in requirements files
so that a project that wants all contributors using the same pip
features can specify it in the requirements file. For example, to ensure
a requirements file uses the new resolver:
```
--use-feature=2020-resolver
boto3
boto3==1.13.13
```
This is a new version of #8293 .
2020-07-18 16:08:47 -07:00
Devesh Kumar Singh
bd70025c98
Remove --always-unzip based tests
2020-06-25 16:52:15 +05:30
Devesh Kumar Singh
db11f83e2a
Fix tests module with flake8-bugbear
2020-06-05 02:41:08 +05:30
Pradyun Gedam
5e4c3565e4
Update tests, didn't directly reference "regex"
2020-04-20 22:58:10 +05:30
Pradyun Gedam
7e61569b1a
Drop --skip-requirements-regex
2020-04-20 22:37:25 +05:30
Noah Gorny
c936ed0165
session: Rename _insecure_adapter to _trusted_host_adapter
...
Currently it is just the insecure adapter, but this can change in the future
2020-03-26 21:15:38 +02:00
Jason R. Coombs
6282a307dc
👹 Feed the hobgoblins (delint).
2020-03-06 12:43:10 -05:00
Jason R. Coombs
3511d3d493
Convert the remaining '%' formatters to '.format'. Fixes #6973 .
2020-03-06 12:43:03 -05:00
Christopher Hunt
40523794d8
Merge pull request #7747 from pfmoore/parsed_requirement
...
Refactor parse_requirements to be independent of InstallRequirement
2020-02-24 00:21:28 +08:00
Anudit Nagar
082c0f01d2
Update old-style formatting to new-style formatting ( #7762 )
2020-02-21 21:48:14 +05:30
Paul Moore
aac5d821f9
Move make_requirement to pip._internal.req.constructors (and rename it)
2020-02-14 12:22:50 +00:00
Paul Moore
90e4eb3eed
Make parse_requirements return a ParsedRequirement
2020-02-14 11:52:53 +00:00
Paul Moore
a9f1d8562b
Pass individual options to InstallRequirement rather than an options object
2020-02-06 16:05:11 +00:00
Chris Hunt
df42c80ff6
Make session required in pip._internal.req.req_file functions
2019-11-03 20:49:11 -05:00
Chris Hunt
85918afc5e
Remove req_file.process_line and update tests
...
The behavior that was in process_line was moved to
RequirementsFileParser so it's no longer needed, we just had to
move the remaining tests to use the higher-level parse_requirements
interface.
2019-10-26 13:53:01 -04:00
Chris Hunt
68454d29a5
Make req file parsing unit tests higher-level
...
Decoupling the tests from the implementation makes it possible
to refactor the interface exposed by process_line.
2019-10-26 13:52:36 -04: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
Pradyun Gedam
66e9b44f15
Import req_file more directly
2019-10-19 22:22:11 +05:30
Pradyun Gedam
37bc629551
Rename tests.lib.path.Path.{abspath -> resolve()}
2019-10-07 18:01:06 +05:30
Chris Hunt
cf7ebdbbc2
Move PipSession to network.session
2019-09-27 01:02:52 -04:00
Christopher Hunt
82c2dd40eb
Merge pull request #6203 from vinicyusmacedo/fix-pep-508
...
Fix is_url from splitting the scheme incorrectly when using PEP 440's direct references
2019-09-16 09:52:40 -04:00
Chris Jerdonek
ed55cde689
Add LinkCollector class to index.py.
2019-09-10 10:13:02 -07:00
Frost Ming
8ac22141c2
Support including port part in trusted-host ( #6909 )
2019-08-25 16:26:01 -07:00
Chris Jerdonek
a6cdb490b0
Move trusted_hosts logic to PipSession.
2019-08-21 03:03:17 -07:00
Vinicyus Macedo
5b93c09199
Added test to fail pep508
2019-08-12 14:32:03 -03:00
Pradyun Gedam
537b0fca12
Change isort multi_line_output to 3
2019-07-22 10:15:27 +05:30
Chris Hunt
39ac9ca351
Rename compatible functions in tests.lib.path.Path.
2019-07-02 18:48:44 -04:00
Chris Jerdonek
6ac468e4fd
Merge pull request #6613 from cjerdonek/requirements-file-error
...
Improve the error message for invalid requirements files in certain situations
2019-06-16 20:09:24 -07:00
Chris Jerdonek
e5a730a89f
Improve the error message when reading a bad requirements file.
2019-06-15 10:47:24 -07:00
Chris Jerdonek
c0bda1b906
Log when adding a trusted host from a file.
2019-06-14 01:14:36 -07:00
Chris Jerdonek
d72758394d
Fully support --trusted-host inside requirements files.
2019-06-13 01:21:05 -07:00
Chris Jerdonek
4c1ccaec73
Store PackageFinder.trusted_hosts instead of secure_origins.
2019-06-12 02:18:23 -07:00
Chris Jerdonek
210dab7470
Add make_test_finder() helper function.
2019-06-11 19:18:56 -07:00
Chris Jerdonek
cad71a7117
Add PackageFinder.create(), and simplify PackageFinder().
2019-05-17 11:55:21 -07:00
Pradyun Gedam
7222cb8fdb
Remove --process-dependency-links and related support code
2019-01-02 17:27:06 +05:30
Nitesh Sharma
82b25ffe6c
sort imports properly
2018-09-02 23:25:14 +05:30
Nitesh Sharma
a90c641868
Use equality operator for format_control instances
2018-09-02 23:14:47 +05:30
Nitesh Sharma
fd692f32ba
move format control to models and write parametrized test
2018-09-02 23:08:07 +05:30
Nitesh Sharma
e10a613212
Refactoring: Move FormatControl to separate class
...
This moves FormatControl named tuple and it's all related
methods to separate class.
Closes https://github.com/pypa/pip/issues/5592
2018-08-28 21:12:42 +05:30
Pradyun Gedam
a5a07fe61c
Move InstallRequirement.from_line to constructors module
2018-08-21 20:37:40 +05:30
Pradyun Gedam
69b494aa29
Move InstallRequirement.from_editable to a constructors module
2018-08-21 20:27:22 +05:30
Pradyun Gedam
c92d13e9d3
Fix new lint errors from newer flake8
2018-06-27 12:53:31 +05:30
BrownTruck
72f219c410
Add expansion of environment variables in requirement files ( #3728 )
2018-02-05 16:50:50 +05:30
Anthony Sottile
e21e2d3f8f
Upgrade syntax in ./tests
...
Changes were automated via https://github.com/asottile/pyupgrade
See #4921
2017-12-14 21:59:41 -08:00
Pradyun Gedam
353a13ddff
isort: Include trailing commas
2017-11-21 13:23:59 +05:30
Donald Stufft
95bcf8c5f6
Move all internal APIs to pip._internal
2017-08-31 14:53:00 -04:00
Filip Kokosiński
6ebec4a87e
Added offending line from requirements file ( #4227 ) ( #4635 )
2017-08-31 13:07:42 -04:00