Damian Shaw
68529081c2
Enforce f-strings via Ruff ( #12393 )
2023-11-07 09:14:56 +00:00
Tzu-ping Chung
2fad07e6e2
Merge branch 'main' into no-import-from-conftest
2023-10-03 16:11:30 +08:00
hauntsaninja
666be3544b
Avoid use of 2020-resolver and legacy-resolver
2023-09-23 13:34:06 -07:00
Tzu-ping Chung
7c8425b8a0
Merge pull request #12217 from thejcannon/jcannon/issue12215
2023-09-06 15:28:46 +08:00
ddelange
510c6acf69
Filter out yanked links from available versions error message
2023-08-26 12:17:40 +02:00
Danny McClanahan
8704c7a5db
remove unnecessary fixture
2023-08-12 10:51:33 -04:00
Danny McClanahan
8e305f262f
add test for the *existing* `install --dry-run` functionality
2023-08-12 10:01:30 -04:00
Joshua
864139adb0
add tests
2023-08-08 14:32:59 -05:00
Tzu-ping Chung
60d3c0447e
Skip tests that do not make sense on Python 3.12+
2023-07-04 17:04:09 +08:00
Paul Moore
6aa4d48b23
Fix the test failure
2023-06-05 11:53:43 +01:00
Tzu-ping Chung
c3160c5423
Avoid importing things from conftest
...
It is generally discouraged to import from conftest. Things are now
moved to tests.lib and imported from there instead.
Also did some cleanup to remove the no-longer-needed nullcontext shim.
2023-05-09 15:43:53 +08:00
Stéphane Bidoul
4beca6b4c9
Improve test
2023-04-14 08:03:49 +02:00
Stéphane Bidoul
40cd79d6e5
Check hashes of cached built wheels agains origin source archive
2023-04-14 08:03:48 +02:00
Stéphane Bidoul
453a5a7e07
Add test for combination of invalid link hash and good --hash
2023-04-10 13:21:00 +02:00
Stéphane Bidoul
0ffc54dca3
Add tests about link hashes validation
2023-04-10 13:21:00 +02:00
Stéphane Bidoul
849dcbd6a8
Remove more traces of setup.py install
2023-03-31 09:47:09 +02:00
Stéphane Bidoul
e5deb4dd8d
Adapt test to the removal of setup.py install code path
2023-03-31 09:47:09 +02:00
Stéphane Bidoul
8f0201f67a
Remove no-binary disabling the cache of locally built wheels
2023-03-29 08:41:09 +02:00
Pradyun Gedam
78ab4cf071
Bump all linters other than mypy ( #11901 )
2023-03-27 20:03:11 +01:00
Stéphane Bidoul
2cf9db2b5d
Merge pull request #11861 from sbidoul/deprecate-build-global-option-sbi
...
Deprecate --build-option and --global-option
2023-03-27 17:52:53 +02:00
Stéphane Bidoul
6adb7af0aa
Deprecate --build-option and --global-option
2023-03-27 11:56:16 +01:00
Stéphane Bidoul
3fd8fde14b
Remove with_wheel fixture
...
We install wheel by default in our test env.
2023-03-27 11:55:20 +01:00
Stéphane Bidoul
a38865597d
Update test_install_subprocess_output_handling
2023-03-27 11:55:20 +01:00
Stéphane Bidoul
b11e8e4343
Test presence of dist-info instead of egg-info
2023-03-27 11:55:20 +01:00
Stéphane Bidoul
1a0b7f47a0
Remove test_installed_files_recorded_in_deterministic_order
...
This test will become useless anyway when we remove setup.py install
support.
2023-03-27 11:55:20 +01:00
Stéphane Bidoul
8a1a8d7915
Always use pep 517 when the 'wheel' package is absent
2023-03-27 11:55:20 +01:00
Stéphane Bidoul
a04748db8e
Remove support for the deprecated --install-options
2023-03-18 11:20:51 +01:00
Stéphane Bidoul
5189a6e0f4
--no-binary does not imply setup.py install anymore
2023-03-12 17:18:53 +01:00
Guillaume Seguin
c546c99480
Display dependency chain on each Collecting line
...
This tremendously helps understand why a package is being fetched and
can help investigate and fix dependency resolver backtracking issues
when incoherent constraints/package sets are provided or when new
versions of a package trigger a completely different backtracking
strategy, leading to very hard to debug situations.
2023-02-23 18:12:08 -08:00
Daniil Konovalenko
15b2cc993e
fix mypy
2023-01-14 12:27:51 +01:00
Daniil Konovalenko
ed7dbe9843
fix formatting
2023-01-14 12:27:51 +01:00
Daniil Konovalenko
8374d818ac
add test
2023-01-14 12:27:51 +01:00
Tzu-ping Chung
6d1f25b222
Skip tests using custom SSL on 3.7 + Linux
...
This combination does not work well on CI, and since 3.7 support is on
its last days anyway, let's just ignore those tests.
2022-12-13 14:33:56 +08:00
Miro Hrončok
f7589d6ec0
Don't maintain 2 copies of change_root
...
The change_root function was added twice:
In ae324d1703
and in 36a9b36523
2022-11-16 13:28:17 +01:00
Tzu-ping Chung
50e194f107
Selectively enable user site
...
The modern virtual environment structure does not allow us to enable
"fake user site" while disabling the global site, so we need to do more
fine-grained configuration to correctly set up test environments for
each test case.
With this done, we can also properly support the stdlib venv ad the test
environment backend, since it basically works identically with modern
virtualenv. The incompatible_with_test_venv is thus removed.
2022-10-28 01:51:13 +08:00
Miro Hrončok
fe7948a4a2
Avoid distutils imports in tests
...
The tests still don't run without distutils
because they require virtualenv < 20 (and virtualenv 16 uses distutils),
but at least they don't import distutils directly now.
Fixes https://github.com/pypa/pip/issues/11521
2022-10-17 19:33:03 +02:00
Stéphane Bidoul
51c78b4b83
Add tests for --xxx-options warnings and deprecation
2022-09-25 11:21:36 +02:00
Stéphane Bidoul
be718ff59e
Fix tests that relied on setuptools not supporting PEP 660
2022-08-12 12:57:39 +02:00
Stéphane Bidoul
ee7bcae0d9
Merge pull request #11331 from sbidoul/8559-take-2-sbi
...
Deprecate setup.py install fallback when wheel package is absent
2022-08-10 18:43:25 +02:00
Stéphane Bidoul
afe136c42b
Add test for issue 8559 deprecation
2022-08-06 19:29:31 +02:00
Stéphane Bidoul
1800635e4c
Fix tests with indented errors and warning
2022-08-05 09:35:00 +02:00
Stéphane Bidoul
99818e1e9a
Merge pull request #10692 from t20100/fix-install-pre
...
Fix `pip install --pre` for packages with dependencies defined in `pyproject.toml` and `setup.py`
2022-07-10 13:17:57 +02:00
Stéphane Bidoul
3726f71720
Add a --dry-run option to pip install
2022-06-23 19:33:18 +02:00
q0w
c8c88ce520
Adapt tests
2022-06-23 19:20:18 +03:00
Tzu-ping Chung
42359a9605
Migrate tests to use pathlib.Path
...
The pip-specific Path implementation has been removed, and all its
usages replaced by pathlib.Path. The tmpdir and tmpdir_factory fixtures
are also removed, and all usages are replaced by tmp_path and
tmp_path_factory, which use pathlib.Path.
The pip() function now also accepts pathlib.Path so we don't need to put
str() everywhere. Path arguments are coerced with os.fspath() into str.
2022-06-08 19:58:46 +08:00
Stéphane Bidoul
e7449498d3
Record origin url in wheel cache
2022-05-22 22:46:35 +02:00
Pradyun Gedam
428e886ad6
Drop out-of-tree/in-tree build transition flags
...
These were intended to help users transition when the default behaviour
changed to no longer perform out-of-tree builds. The transition is now
considered complete.
2022-04-08 12:20:36 +01:00
q0w
db71def50f
replace git scheme with https
2022-03-19 14:17:05 +03: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
42075efa61
Annotate an unannotated test
2022-01-25 01:32:34 +00:00