Pradyun Gedam
58c594c06b
Prepare isort for black
2020-09-23 21:47:47 +05:30
Pradyun Gedam
25ab172b55
Update linter: isort
2020-09-23 19:52:28 +05:30
Nguyễn Gia Phong
f8b06a3906
Enable flake8-logging-format
2020-07-17 14:33:19 +07:00
Chris Hunt
e0f95f12b6
Get non-root scheme files from paths, not disk
...
Now we rely solely on the list of RECORD-like paths derived from the
filesystem, and can easily trade out the implementation for one that
comes from the wheel file directly.
2020-07-09 18:24:30 -04:00
Cristina Muñoz
030e2b8c0e
Return not implmented if class differs
2020-06-03 09:52:56 -07:00
Cristina Muñoz
92ca536279
Don't raise exception for false
2020-06-02 10:45:16 -07:00
Cristina Muñoz
9583642d87
Remove superfluous operator import
2020-06-02 10:05:07 -07:00
Cristina Muñoz
8f4c4c9eb4
Fix whitespace
2020-06-02 09:58:39 -07:00
Cristina
5f0f2f0218
Update src/pip/_internal/models/format_control.py
...
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2020-06-02 09:50:16 -07:00
Cristina Muñoz
732bf44f91
Remove Base class
2020-05-26 10:19:48 -07:00
Cristina Muñoz
d4dd94aa4f
fix lint
2020-05-25 16:18:38 -07:00
Cristina Muñoz
ea3b0ab9a9
Add missing class attribute
2020-05-24 17:57:28 -07:00
Cristina Muñoz
0527f80531
Clean up lint errors
2020-05-21 19:04:12 -07:00
Cristina Muñoz
f6bf9a0065
Restrict dynamic attribute creation with slots
...
Fixes #7313 .
2020-05-21 19:04:12 -07:00
Devesh Kumar Singh
1bd8903815
Type annotations for pip._internal.models.format_control
2020-05-19 22:13:32 +05:30
Pradyun Gedam
ea1295b720
Merge pull request #7965 from deveshks/warn-on-invalid-index-url
...
Warn if an invalid URL is passed with --index-url
2020-04-09 17:15:47 +05:30
Danny McClanahan
6e7b16cec4
add failing test ; apply the fix ; add template NEWS entry
...
add failing test
apply the fix
add template NEWS entry according to https://pip.pypa.io/en/latest/development/contributing/#news-entries (wrong PR #)
rename news entry to the current PR #
respond to review comments
fix test failures
fix tests by adding uuid salt in urls
cache html page fetching by link
make CI pass (?)
make the types much better
finally listen to the maintainer and cache parse_links() by url :)
avoid caching parse_links() when the url is an index url
cleanup
add testing for uncachable marking
only conditionally vendor _lru_cache for py2
bugfix => feature
python 2 does not cache!
Do away with type: ignore with getattr()
respond to review comments
2020-04-07 12:01:43 -07:00
Devesh Kumar Singh
efd6dd28d0
Address review comments
2020-04-07 09:44:36 +05:30
Devesh Kumar Singh
4c70c6d350
Warn if an invalid URL is passed with --index-url
2020-04-06 10:57:50 +05:30
Stéphane Bidoul
6b7f4ce81b
Add DirectUrl model, implementing PEP 610
2020-04-01 22:56:59 +02:00
Pradyun Gedam
4f6bef6eb4
Merge pull request #7792 from pradyunsg/misc/utils-tags
...
Rename pep425tags -> utils.compatibility_tags
2020-03-12 14:46:52 +05:30
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
Pradyun Gedam
3fa356a772
Update references to pep425tags
2020-02-26 10:24:43 -08:00
Anudit Nagar
082c0f01d2
Update old-style formatting to new-style formatting ( #7762 )
2020-02-21 21:48:14 +05:30
Deepak Sharma
d31cf696e8
string_formatting
2020-01-30 20:33:00 +05:30
Chris Hunt
80b2c82d0c
Use packaging.tags.Tag in place of Tuple
...
This is the standard type used by packaging.tags. Making this change
throughout the code lets us start switching over to using its
tag-generating functions in get_supported().
We also get rid of a test, since it was superseded by `__str__` in
packaging.tags.Tag.
2020-01-07 01:42:42 -05:00
Maxim Kurnikov
3cb30385d8
remove disallow_untyped_defs=False for more modules
2019-12-13 10:22:21 +03:00
Chris Hunt
f4e40d7a09
Wrap HAS_TLS in a function
...
Next we'll refactor the value to be computed lazily.
2019-12-09 20:48:58 +08:00
Chris Hunt
05b327ca2f
Remove Optional from Link.show_url
...
Since we're moving functions to a file with stricter typing, this
prevents mypy from complaining that our string is possibly None.
2019-12-04 18:31:46 -05:00
Chris Hunt
60f6ed9387
Move wheel.Wheel to models.wheel.Wheel
...
This aligns more closely with how the class is used and makes it easier
to move the rest of the wheel module to a dedicated module for
installation.
2019-12-02 11:52:51 +08:00
Maxim Kurnikov
f777ac7276
remove disallow_untyped_defs=False from models.format_control
2019-11-16 16:53:10 +03:00
Pradyun Gedam
ccd2ced9bc
Add disallow_any_generics = True to mypy configuration ( #7110 )
2019-11-14 20:46:21 +05:30
Chris Hunt
7d27bff299
Make versions argument singular for pep425tags.get_supported()
...
This simplifies the interface of this function in preparation for
switching to packaging.tags.
2019-11-12 20:58:44 -05:00
Maxim Kurnikov
d1452ffabd
add global disallow_any_generics=True
2019-11-12 21:08:48 +03:00
Pradyun Gedam
9b25cd512b
Rename InstallationCandidate.{project -> name}
2019-11-11 11:37:53 +05:30
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
Pradyun Gedam
611fc6069b
Update references to collector.py
2019-10-19 22:24:53 +05:30
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
b447f438df
Move path_to_url() to utils/urls.py ( #7075 )
2019-09-25 10:00:33 +05:30
Chris Jerdonek
0435316fde
Move path_to_url() to utils/urls.py.
2019-09-24 02:01:52 -07:00
Chris Hunt
892b58f244
Move helper functions into Link
2019-09-22 00:08:10 -04:00
Pradyun Gedam
ab6d550592
Remove link.is_artifact
2019-09-21 14:30:14 +05:30
Chris Hunt
59b0a79bde
Add Link.file_path property
2019-09-19 20:14:10 -04:00
Chris Hunt
6a8b47d20b
Move file type info to utils.filetypes.
2019-09-17 23:40:02 -04:00
Chris Jerdonek
fe2509bd58
Move LinkCollector to a new collector.py module.
2019-09-14 02:54:07 -07:00
Pradyun Gedam
0f3a1c0b6b
Abort when --no-binary/--only-binary receives bad arg ( #5847 )
...
Merge pull request #5847 from keanemind/master
2019-09-05 13:42:46 +05:30
Albert Tugushev
3c9770d9b2
Redact single-part login credentials from URLs ( #6921 )
2019-08-26 15:50:07 -07:00
Stéphane Bidoul (ACSONE)
2e1dfbef76
consolidate vcs link detection
2019-08-16 08:14:33 +02:00
Pradyun Gedam
f377148f6d
Use mypy's inline configuration syntax for opt-outs
2019-07-30 12:39:51 +05:30