Stéphane Bidoul
04e1ab071d
Update test_install_package_that_emits_unicode
...
Adapt to the removal of the setup.py install code path.
2023-03-27 11:55:20 +01:00
Henrich Hartzer
2cfe36dc9e
Update pre-commit hooks
...
Co-Authored-By: q0w <43147888+q0w@users.noreply.github.com>
2022-04-04 16:02:02 +03:00
Pradyun Gedam
f13104abb2
Accept lowercase doctype declarations
2022-01-30 13:11:13 +00:00
Jon Dufresne
bf5f4008e7
Replace vendored html5lib with stdlib
...
The html5lib library isn't strictly required as the same functionality
can be achieved through the stdlib html.parser module.
The html5lib is one of the largest uses of the six library. By dropping
this unnecessary dependency, the pip project is closer to dropping the
six library.
Additionally, html5lib maintenance has slowed down and the project has
rejected pull requests to drop Python 2 support.
For now, the html5lib code remains, but is gated behind a command
line option: `--use-deprecated=html5lib`. After a sufficient amount of
time has passed without any reported bugs, the vendored library and this
flag can be removed completely.
2022-01-28 06:45:57 +00:00
Pradyun Gedam
deb2d754e7
Tweak the chattymodule to not leak potentially information
...
I'd like to use this in screenshots, but the os.environ makes it a bit
tricky to do.
2022-01-25 01:38:23 +00:00
Pradyun Gedam
68e0bd46c8
Add an example setuptools-based package that always fails
2022-01-25 01:38:23 +00:00
Pradyun Gedam
997c5a742b
Merge pull request #10625 from albertosottile/ignore_yanked
2022-01-24 23:47:54 +00:00
Alberto Sottile
99cb1e0fc3
Add test_error_all_yanked_files_and_no_pin test
2021-11-06 16:22:56 +01:00
Lukas Juhrich
58996b5ddb
Add tests for BadZipFile
handling
...
Note that the functional test does not actually detect the behavioral
change of throwing unhandled `BadZipFile` → throwing unhandled
`InvalidWheel`, whereas the unit test does.
2021-10-23 17:42:22 +02:00
Stéphane Bidoul
ddfeaaef20
Reject projects that have neither a pyproject.toml nor a setup.py
2021-10-18 14:31:11 +02:00
Jon Dufresne
d144fd960c
Cleanup several Python 2 version_info checks/workarounds
2021-08-20 09:39:31 -06:00
Pradyun Gedam
94999255d5
Reformat the codebase, with black
2021-08-20 13:37:49 +01:00
Pradyun Gedam
4b5b15194d
Merge pull request #9588 from hexagonrecursion/utf8
...
Remove coding: utf-8
2021-02-27 19:26:39 +00:00
Andrey Bienkowski
9b2cb894ba
Convert more str.format() calls to f-strings
2021-02-13 09:27:17 +03:00
Andrey Bienkowski
cfd1251086
Remove coding: utf-8
2021-02-10 13:30:13 +03:00
4efae5c21a
Add integration tests for experimental feature fast-deps
...
Test pip {download,install,wheel} where requirements have dependencies
listed in their wheels' metadata.
2020-07-21 16:00:34 +07:00
Pradyun Gedam
982aac544e
Merge pull request #8584 from McSinyx/range-unsupported-exc
2020-07-21 13:53:20 +05:30
d363b4a427
Replace tabs by spaces for consistency
2020-07-18 17:00:59 +07:00
892018eaf2
Use local server for an unit test for lazy wheel
2020-07-16 21:09:59 +07:00
Christopher Hunt
2f9b50c097
Merge pull request #8534 from chrahunt/thoroughly-test-header-installation
...
Make wheel header installation test more explicit
2020-07-08 17:21:47 -04:00
Chris Hunt
a9c7f229b0
Create sample project wheel inline
2020-07-05 20:16:36 -04:00
Chris Hunt
0b0d53e8fa
Use wheel helper function instead of pre-created wheel file
2020-07-04 14:22:15 -04:00
Sumana Harihareswara
cef69fef7f
Updated author email in configuration and tests
...
Per https://groups.google.com/d/msg/pypa-dev/rUNsfIbruHM/LCEx-CB5AgAJ
the pypa-dev Google Group is now decommissioned.
Using distutils-sig instead as author/maintainer email.
Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-05-28 16:51:02 -04:00
Miro Hrončok
98aa09cf88
Prevent infinite recursion with pip wheel with $TMPDIR in $PWD
...
During a build of extension module within `pip wheel` the source directory is
recursively copied in a temporary directory.
See https://github.com/pypa/pip/issues/7555
When the temporary directory is inside the source directory
(for example by setting `TMPDIR=$PWD/tmp`) this caused an infinite recursion
that ended in:
[Errno 36] File name too long
We prevent that buy never copying the target to the target in _copy_source_tree.
Fixes https://github.com/pypa/pip/issues/7872
2020-03-19 18:07:56 +01:00
Jason R. Coombs
3511d3d493
Convert the remaining '%' formatters to '.format'. Fixes #6973 .
2020-03-06 12:43:03 -05:00
Chris Hunt
667dc392e5
Remove unused futurewheel fixture
2020-01-31 19:33:51 -05:00
Pradyun Gedam
08f61a9b73
Do not attempt setup.py clean for failed pep517 builds ( #7477 )
2020-01-02 12:11:32 +00:00
Stéphane Bidoul (ACSONE)
c93acfb20b
Test legacy clean not attempt after PEP 517 build failure
2020-01-02 12:14:03 +01:00
Chris Hunt
c9b0742508
Remove old root_is_purelib
...
The _invalidversion_ tests are not applicable to the new function since
we do not use a regex to find the applicable folder.
2019-12-31 12:49:08 -05:00
Thomas Kluyver
59550aaec3
Add an integration test of installing a project with a local PEP 517 backend
2019-11-23 18:45:09 +00:00
Sebastian Jordan
28f3dcc641
Add missing newline characters in pep517_setup_and_pyproject test data
2019-10-12 12:19:52 +02:00
Sebastian Jordan
6a2d2dbb81
Merge branch 'master' of https://github.com/pypa/pip into issue-6222
2019-10-03 08:36:19 +02:00
Albert Tugushev
1a3b84060d
Add functional tests for 'yanked' files
2019-09-28 01:07:48 +03:00
Sebastian Jordan
be6e198875
Implement functional test for installing PEP 517 packages with --no-binary :all:
2019-09-25 06:32:18 +02:00
Pradyun Gedam
ea68afab93
Enable isort in pre-commit
2019-09-24 18:03:22 +05:30
Pradyun Gedam
6f8c29aa77
Enable end-of-file-fixer
2019-09-24 18:03:22 +05:30
Pradyun Gedam
ceaf514189
Drop support for EOL Python 3.4 (2) ( #6782 )
...
Merge pull request #6782 from hugovk/rm-3.4
2019-09-10 09:28:11 +05:30
ofrinevo
1c4881157e
Remove useless python packages from required_cap
...
Rename stub package required_by_mixed_cap to requires_requires_cap
Move the canonicalize_name calculation outside of a loop
2019-09-03 20:46:28 +03:00
ofrinevo
bc65d55d8b
Fix all failing tests
2019-09-02 19:41:51 +03:00
ofrinevo
a05de613fc
Add a test that checks for mixed upper and lower case letters
...
in pip show
Remove useless import in stubs for named tests
2019-09-01 21:28:31 +03:00
ofrinevo
c674fabe95
Fix package name not being canonicalize in commands/show
...
Add test to check if a capitalized name is being shown properly
Add new stub package to support the test
2019-08-31 21:44:41 +03:00
Hugo
8f32b8f425
Drop support for EOL Python 3.4
2019-07-23 22:49:21 +03:00
Pradyun Gedam
838984b372
Drop dependency links from test packages
2019-01-02 17:27:06 +05:30
Paul Moore
f10be259ce
PEP 517 tests
2018-10-29 23:33:21 +01:00
Benoit Pierre
744b8cf96e
improve build environment
...
- check build requirements for conflicts
- better isolation (ignore system site packages)
- support 2 prefixes: a "normal" one, and an "overlay" one
(with higher priority over "normal")
2018-10-29 23:17:51 +01:00
Benoit Pierre
83b879b1ec
Improve PEP 518 build isolation ( #5824 )
...
Handle .pth files, so namespace packages are correctly supported under Python 3.2 and earlier, and more.
2018-10-16 12:04:28 +05:30
Benoit Pierre
0a58159571
drop workaround for Python<=2.5
2018-10-07 14:26:34 +02:00
Jon Dufresne
8136b410f7
Correct capitalization of PyPI
...
As spelled on https://pypi.org/ .
2018-09-16 15:30:52 -07:00
Pradyun Gedam
20127bfe98
Merge pull request #5404 from sixninetynine/feature/platforms_for_target
...
Open up plat/abi/impl options to `install --target`
2018-08-12 22:09:01 +05:30
Loren Carvalho
cddcb1407f
Open up plat/abi/impl options to install --target
...
* Move dist restriction options to be re-usable (between install/download)
* Make dist restriction options usable in `install` (exclusively with --target)
* Add a check_supported_wheels bool to RequiriementSet for non-resolved (full path) dependencies
2018-08-05 16:13:20 -05:00