1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

56 commits

Author SHA1 Message Date
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
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
Nguyễn Gia Phong d363b4a427 Replace tabs by spaces for consistency 2020-07-18 17:00:59 +07:00
Chris Hunt a9c7f229b0 Create sample project wheel inline 2020-07-05 20:16:36 -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
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
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
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
Paul Moore 73a5847b26 Added unit tests for use_pep517 flag 2018-07-31 16:21:20 +01:00
Pradyun Gedam 9a076e73ab
Add test for rejecting pyproject.toml with empty build-system table 2018-07-21 16:23:59 +05:30
Pradyun Gedam 0bd01d9462
Merge pull request #5336 from benoit-pierre/src_build_reqs_in_pep518
PEP 518: enable source installs for build dependencies
2018-07-20 09:36:52 +05:30
Pradyun Gedam 8a565aac75
Sort imports as per newer isort 2018-06-27 12:53:31 +05:30
Benoit Pierre 43b8ed4945 detect fork-bombs during build dependencies installs 2018-06-26 10:40:23 +02:00
Pradyun Gedam e8a56683d3
Merge pull request #5512 from pradyunsg/feature/refuse-non-compliant-pyproject
Start warning on non compliant pyproject.toml files and rejecting obviously incorrect ones
2018-06-20 15:25:04 +05:30
Pradyun Gedam fdd5101128
Cleanup Tests 2018-06-19 16:27:07 +05:30
Pradyun Gedam a25cb53d02
Add tests to verify refusal of non PEP 518 compliant pyproject.toml 2018-06-19 16:27:07 +05:30
Jon Dufresne 9c4bd6d5eb Update doc and comment URLs to https where available 2018-06-13 09:00:42 -07:00
Łukasz Langa 39817bd302 Open pyproject.toml with UTF-8 encoding in all environments 2018-06-07 11:16:47 -07:00
Benoit Pierre ca4e2ad6ad improve handling of PEP 518 build requirements
Offload more work to the underlying pip command used to install the
build requirements, so there's no need to duplicate code to handle
environment markers/extras. This is done by setting the correct options
from the finder passed in argument to `_install_build_reqs`.
2018-05-18 23:45:55 +02:00
Benoit Pierre 04874e24fd tests: improve PEP 518 tests
- avoid hitting the index: use `common_wheels`/`script.pip_install_local`
- use `script.pip(..., use_module=True)` to simplify some tests
- improve `test_pep518_uses_build_env` parametrization
- simplify `test_pep518_with_user_pip`: we only need to check build
  requirements can be installed, so no need for testing with both
  `install` and `wheel` command
- fix `test_pip_wheel_with_pep518_build_reqs_no_isolation`: building
  pep518-3.0 without isolation should fail if the build requirements
  are not installed.
2018-05-18 23:45:55 +02:00
Benoit Pierre 3de9bdb7f2 tests: tweak simplewheel test distribution
- change module name to prevent conflicts with other distributions
- add a `__version__` field for version checks
2018-05-18 23:40:15 +02:00
Paul Moore 17e0d115e8 Fix for issue 5085 (--user set in config causes pip wheel to fail) 2018-03-25 18:22:18 +01:00
xoviat 163149fff3 Install build requirements before calling setup.py (#4799)
Setup build environment before first invocation of setup.py and improve test to actually make check that build requirements are installed upon invocation.
2018-03-01 14:20:06 +05:30
Pradyun S. Gedam 9923c1ad7e Sort imports and minor Flake8 changes (#4520)
* Run isort on the codebase

Command: isort --recursive --skip __main__.py --skip _vendor -o pip._vendor -sd THIRDPARTY -m 5 -p pip -p tests ./pip ./tests

* 📰
2017-06-13 14:17:00 +02:00
Thomas Kluyver 20955812bf Merge branch 'master' into pep518 2017-05-19 11:04:32 +01:00
Pradyun S. Gedam 1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Thomas Kluyver 9a79fb5ac4 Allow build-system requirements to be empty 2017-04-12 17:41:23 +01:00
Thomas Kluyver 653e291846 Add source of sample distribution for tests 2017-04-01 19:29:47 +01:00
fiber-space fa7aeb6cc8 Fixes destination directory of data_files when 'pip install --target' is used (#4092) (#4152) 2017-03-26 23:55:50 +02:00
Donald Stufft 59cb562d59 Fix up some bookkeeping 2017-03-18 14:52:14 -04:00
Donald Stufft f1d0939d63 Revert "Normalize file URLs" (#4071) 2016-11-03 11:24:34 -04:00
stepshal 9eca3c1729 Remove extraneous whitespace. 2016-10-15 22:18:11 +02:00
stepshal e1408688ac Remove whitespace around parameter = sign. 2016-10-15 18:00:58 +02:00
YAMAMOTO Takashi 742b9258d2 Normalize file URLs
It seems pip distinguishes paths with .. or extra / for constraints.
For example, the following directories are considered different.

    /path/to/dir
    /path/to//dir
    /path/to/dir/subdir/..

It can lead "Could not satisfy constraints for 'xxxx':
installation from path or url cannot be constrained to a version"
error, whose cause is not obvious to users. [1]

This commit tries to normalize the given directory name to avoid
the error.

[1] https://bugs.launchpad.net/devstack/+bug/1542545
2016-03-22 21:17:55 +09:00
Xavier Fernandez 34f3f27b36 Merge pull request #3505 from njsmith/fix-verbose-subprocess-output
Fix display of subprocess output when --verbose is given
2016-02-24 23:15:21 +01:00
Marcus Smith 39c4386748 move pkg src to the src dir 2015-04-01 16:37:15 -07:00
Marc Abramowitz 291bb12d07 test_install_package_with_target: No network
and also fix intermittent failures reported in
https://github.com/pypa/pip/issues/2580
2015-03-22 23:09:38 -07:00