Pradyun Gedam
a00e7bcd88
Implement diagnostic errors for build-system.requires
issues
...
This demonstrates how the new diagnostic errors are to implement, and
how they get presented to users.
2021-10-22 13:47:53 +01:00
Stéphane Bidoul
619b257ed9
Add failing tests for issue 10573
2021-10-18 14:31:11 +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
Pradyun Gedam
a07bfb33a0
Merge pull request #10495 from sbidoul/out-of-tree-build-flag
2021-10-02 12:34:24 +01:00
Stéphane Bidoul
e5be3f796e
Add PEP 660 support (build_editable)
2021-09-28 23:04:51 +02:00
Stéphane Bidoul
040cc391ba
Make in-tree-build the default
...
Add an out-of-tree-build feature flag to ease the transition.
2021-09-25 13:11:01 +02:00
Jon Dufresne
fa0804b98c
Use @pytest.mark.usefixture("with_wheel") in tests
...
The with_wheel fixture doesn't have a value and isn't ever referenced
within a test function.
To avoid typing it every test function, change tests to use
pytest.mark.usefixture. It will no longer appear as an argument.
https://docs.pytest.org/en/latest/how-to/fixtures.html#use-fixtures-in-classes-and-modules-with-usefixtures
2021-09-20 21:44:29 -07:00
Jon Dufresne
ad25b61e07
Remove unused tmpdir fixtures from tests
...
There was also one unused monkeypatch fixture removed.
2021-09-05 07:08:06 -07:00
Pradyun Gedam
585037a80a
Cleanup implicit string concatenation
2021-08-20 13:37:52 +01:00
Pradyun Gedam
94999255d5
Reformat the codebase, with black
2021-08-20 13:37:49 +01:00
Pradyun Gedam
a196b3bf01
Minor formatting tweaks ( #10190 )
...
Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
2021-07-24 03:55:14 +08:00
Nikita Chepanov
f2ce7741ab
Suppress "not on PATH" warning when --prefix
is given
...
Similar to how it works with `--target`, avoid printing the
warning since it's clear from the context that the final
destionation of the executables is unlikely to be in the PATH.
2021-07-12 11:39:56 +08:00
Pradyun Gedam
724bf3df0c
Drop pytest-timeout
...
It is incompatible with pytest-xdist and causes crashes when used with
it. Also removes the marker from the only test that uses it.
2021-03-26 08:03:04 +00:00
KOLANICH
7a95720e79
Fixed --editable install for setuptools projects without setup.py.
...
Co-Authored-By: Tzu-ping Chung <uranusjr@gmail.com>
Co-Authored-By: Pradyun Gedam <3275593+pradyunsg@users.noreply.github.com>
2021-03-03 21:24:29 +03:00
Tzu-ping Chung
550270c7ff
Merge pull request #9636 from dwt/master
2021-02-28 22:16:28 +08:00
Pradyun Gedam
baaf66f70d
Merge pull request #9591 from hexagonrecursion/open
...
Replace `open(file, 'r')` with `open(file)`
2021-02-23 13:37:25 +00:00
Andrey Bienkowski
e4e9af1d27
Drop python2 related stuff in tests
2021-02-23 13:49:59 +03:00
David Hewitt
838988cb44
Build local directories in-place with feature flag
2021-02-22 23:31:47 +00:00
Pradyun Gedam
c2ba7c043b
Merge pull request #9606 from hexagonrecursion/fstr
2021-02-21 08:30:00 +00:00
Martin Häcker
9485c4e6a0
Fix --target not working with --editable as setup.py develop does not understand --home but instead requires the --install-dir option.
...
Parially fixes #4390
2021-02-20 16:10:21 +01:00
Andrey Bienkowski
9b2cb894ba
Convert more str.format() calls to f-strings
2021-02-13 09:27:17 +03:00
Andrey Bienkowski
08bc2ab7f9
Add reminders to revert python3.7 compat fixes
2021-02-11 09:48:14 +03:00
Andrey Bienkowski
f30f515a6a
Fix test_install_sends_client_cert
2021-02-10 22:03:20 +03:00
Andrey Bienkowski
20688ee8e8
Don't forget to close an open file
2021-02-10 16:14:42 +03:00
Andrey Bienkowski
f13e10c915
Replace open(file, 'r')
with open(file)
2021-02-10 13:20:11 +03:00
Tzu-ping Chung
6c0e484703
Include both sources in inconsistency error
2021-01-18 19:00:52 +08:00
Jon Dufresne
cdcf74fb8e
Use f-strings for simple string formatting
...
Use pyupgrade to convert simple string formatting to use f-string
syntax. pyupgrade is intentionally timid and will not create an f-string
if it would make the expression longer or if the substitution parameters
are anything but simple names or dotted names.
2020-12-25 16:21:20 -08:00
Hugo van Kemenade
209ca8de8f
Remove default allow_stderr_warning=False
2020-12-22 16:40:01 +02:00
Hugo van Kemenade
817ee23051
Remove redundant Python 2.7 code
2020-12-22 09:06:26 +02:00
Pradyun Gedam
64ff484c76
Skip tests that fail on Python 2
2020-10-30 23:09:00 +05:30
Pradyun Gedam
6f26fb9fee
Update tests for resolver changes
2020-10-30 23:08:31 +05:30
Pradyun Gedam
5cba61e118
Switch to resolver variants in the test suite
2020-10-30 07:16:19 +05:30
Pradyun Gedam
6028e6a0fb
Change how we skip a failing test
2020-10-30 07:16:19 +05:30
Nguyễn Gia Phong
c84ef7a67c
Mark tests using remote svn and hg as xfail
...
The source repositories for testing is no longer available.
2020-08-24 09:43:50 +07:00
Nguyễn Gia Phong
46b938349a
Allow py2 deprecation warning from setuptools
2020-08-14 17:56:15 +07:00
Pradyun Gedam
3962f9d2b8
Moar tests getting updated
2020-07-27 19:51:47 +05:30
Stéphane Bidoul
ccdfa74d79
Reduce reliance on .egg-info directories in test suite
...
Make more tests run with with_wheel and test
that a .dist-info directory is created.
2020-07-25 13:02:20 +02:00
Prashant Sharma
f7abe1f874
test(functional/test_install): Use shared_data for installing package
2020-07-10 16:20:30 +05:30
gutsytechster
0ccbad8367
feat(): Add logs for pip environment when installing
2020-07-09 18:15:43 +05:30
Devesh Kumar Singh
2bdec6c9fd
Parametrize unit test
2020-07-06 13:32:09 +05:30
Devesh Kumar Singh
40261a475f
Add unit tests to verify pkg name normalization
2020-07-06 13:32:09 +05:30
Pradyun Gedam
79de2c8911
Switch to --use-feature for determining which resolver to use
...
Also changes all invocations in the tests, to the new flag.
2020-07-03 18:49:56 +05:30
Paul Moore
3dad80a314
Lint fix
2020-06-25 13:00:11 +01:00
Paul Moore
cdc4e40dad
Test is checking the old resolver's broken behaviour
2020-06-25 13:00:11 +01:00
Paul Moore
a7e3f8d088
Test message check fixes
2020-06-18 18:05:51 +01:00
Tzu-ping Chung
5ee2eeda21
Make the failing tests fail
2020-06-15 16:38:10 +08:00
Paul Moore
e97b365529
Mark a few more tests as working under the new resolver
2020-06-10 13:08:37 +01:00
Stéphane Bidoul
63cc26792d
Merge pull request #8357 from ssurbhi560/add_helper_methods
...
Add methods for path lookups in test_install.py and test_install_compat.py
2020-06-09 22:14:30 +02:00
Stéphane Bidoul
3c6a25c638
Merge pull request #8398 from deveshks/add-flake8-bugbear
...
Add flake8-bugbear plugin to pre-commit and fix "tests" accordingly
2020-06-05 20:18:23 +02:00
Paul Moore
6b10b1d2a2
Merge pull request #8402 from deveshks/parametrize-tests
...
Parametrize test_install_package_to_usersite_with_target_must_fail
2020-06-05 16:39:23 +01:00