Commit Graph

5363 Commits

Author SHA1 Message Date
Dan Ryan e462444d15 Export CA bundle properly
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-22 02:53:43 -04:00
Dan Ryan b0085bbd97 configure cert bundle
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-22 02:50:58 -04:00
Dan Ryan e934ccc73c Minor adjustments to get CI passing
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-22 02:24:51 -04:00
Giorgio Sironi 7c512a5eb9 Add news fragment for --system Docker recommendation 2018-08-20 13:57:32 +01:00
Giorgio Sironi 45b5e7d789 Do not recommend --system for a Docker context
Despite an application's Docker container not usually running other Python processes than the application itself, it still has a system Python whose packages should not necessarily be overwritten or upgraded by an application's choices.

For example, `python3-software-properties` in Ubuntu contains utilities
written in Python like `add-apt-repository` whose [use is widespread in
Dockerfiles](https://github.com/search?l=Dockerfile&q=%22add-apt-repository%22&type=Code).

By inadvertently applying an application's dependency onto the the container's Python, it is possible to:

- subtly break system-level software like these that is still present in the container image
- run into errors where that software is executed while extending the image with another Dockerfile
- run into errors when `docker run|exec ... COMMAND` is used to run another process inside the same container for debugging purposes

I realize this is not necessarily a likely use case, but we have seen
enough projects/tools vendoring `Requests` in fear of a conflict.

Very open on the wording and whether `system Python` is the correct term
to designate the global Python for that OS/container image.
2018-08-20 13:38:14 +01:00
Dan Ryan ced489c39e Merge branch 'master' into master 2018-08-19 21:29:18 -04:00
Dan Ryan 5da09fd24e Merge pull request #2745 from orn688/patch-2
Move misformatted comments
2018-08-17 19:31:45 -04:00
Dan Ryan a79eca759c Merge branch 'master' into patch-2 2018-08-17 19:31:30 -04:00
Dan Ryan a4ad13e52b Update readme images, port readme add news
Signed-off-by: Dan Ryan <dan@danryan.co>
2018-08-17 16:34:28 -04:00
Dan Ryan 32ab20e18d Merge pull request #2696 from gzagatti/improve-error-msg
Improves message when dependencies could not be resolved.
2018-08-17 15:40:13 -04:00
Dan Ryan 57e530f0ad Merge branch 'master' into improve-error-msg 2018-08-17 15:29:25 -04:00
Dan Ryan 2574434705 Merge pull request #2702 from jeremytiki/master
Added an example to README.md for installing from git
2018-08-17 15:18:36 -04:00
Dan Ryan 0a680f5d46 Merge branch 'master' into master 2018-08-17 14:50:01 -04:00
Oliver Newman 438fc60397 Move misformatted comments
Black moved a couple comments to some funky places; this moves them back to the lines to which they refer.
2018-08-15 16:22:45 -07:00
Dan Ryan 3a8f144309 Merge branch 'master' into windows-run-non-executable 2018-08-14 19:30:56 -04:00
Jeremy Spencer 1188a3de34 Updated for PR #2702. Added in request from user @uranusjr for pip documentation on vcs support and @slhck request for more consistent formatting of code blocks and more explict instructions for editable mode when installing from vcs 2018-08-13 08:51:39 -04:00
Jeremy Spencer a3162945be mend 2018-08-12 16:15:17 -04:00
Dan Ryan 541b87abd5 Merge pull request #2732 from pypa/bugfix/pass-verbosity-to-resolver
Correctly pass verbosity to resolver
2018-08-12 03:09:31 -04:00
Tzu-ping Chung f4f8f10f2e News 2018-08-12 04:36:46 +08:00
Tzu-ping Chung a646b836bf Correctly pass verbosity to resolver 2018-08-12 04:29:20 +08:00
Dan Ryan 45c337a40f Merge pull request #2712 from pypa/bugfix/python-version-warning
Bugfix/python version warning
2018-08-10 04:53:01 -04:00
Dan Ryan 0ab5717a29 Merge branch 'master' into bugfix/python-version-warning 2018-08-10 04:52:17 -04:00
Dan Ryan c79507b214 Merge pull request #2671 from HopeForToday/master
Update basics.rst with `$SHELL`.
2018-08-10 04:41:51 -04:00
Dan Ryan 69d8a20bc2 Merge branch 'master' into master 2018-08-10 04:41:34 -04:00
Dan Ryan 92caefcb96 Add news entry for #2671 2018-08-10 04:41:12 -04:00
Dan Ryan 6e6568e9d9 Merge branch 'master' into master 2018-08-10 04:38:34 -04:00
Dan Ryan da5de45816 Merge pull request #2709 from svanburen/patch-3
Fix typo
2018-08-10 04:35:45 -04:00
Dan Ryan 0f3793c496 Merge branch 'master' into patch-3 2018-08-10 04:35:38 -04:00
Dan Ryan d6c8201236 Merge pull request #2688 from AltSchool/test/deplinks
Add test for setup.py::dependency-link field
2018-08-10 04:32:41 -04:00
Tzu-ping Chung 87ab5e8a93 Better comment 2018-08-10 13:16:08 +08:00
Tzu-ping Chung 559903f00e Improve "run" behavior on Windows
Some Windows users are used to launch files without specifying a command,
e.g.::

    > my-script.py

This works in the shell because Windows will automatically choose an
command based on file association, and with newer Python versions, the Py
Launcher (py.exe) automatically chooses the correct Python based on
shebang-parsing.

A similar syntax, unfortunately, does not currently work in Pipenv::

    > pipenv run my-script.py

Since my-script.py will be treated as a real application by the subprocess
module.

This patch catch Windows error 193 during subprocess initialization, and
fall back to use COMSPEC (shell=True) when it happens, to provide better
support for this use case.
2018-08-10 13:03:34 +08:00
Tzu-ping Chung 908ad9d1bc Split the message into multiple lines 2018-08-07 12:21:49 +08:00
Tzu-ping Chung 1a5133c6f8 Fix spaces in the warning message 2018-08-07 12:14:35 +08:00
Tzu-ping Chung f9471d8e7e Fix Jinja2 mismatching 2018-08-07 12:13:14 +08:00
零件 c91cce1233 Merge branch 'master' into master 2018-08-07 09:34:21 +08:00
零件 c6742a8430 Minor tense changes with basics.rst 2018-08-07 09:33:21 +08:00
MarkKoz 86f9f4fccc add test for venv file with a relative path 2018-08-06 12:36:40 -07:00
MarkKoz e4a845fb31 update docstrings for tests 2018-08-06 12:32:54 -07:00
MarkKoz 1fa14eaffd add missing decorator for test_venv_file_with_name 2018-08-06 12:31:58 -07:00
MarkKoz 4844a0b7a1 remove requests package install in tests
We're only interested in testing if the virtual environment can be
successfully created.
2018-08-06 12:31:38 -07:00
MarkKoz 93d158b556 simplify venv location retrieval in tests 2018-08-06 12:30:42 -07:00
MarkKoz bab6429bd9 switch test_venv_file_exists back to test_venv_file_with_name 2018-08-06 12:29:34 -07:00
Mark 4346d36cd8 Merge branch 'master' into master 2018-08-06 12:26:50 -07:00
Alexandros Tzannes 86bbec18d9 Factor-out decorators for class tests 2018-08-06 10:44:10 -07:00
Alexandros Tzannes dd3b210862 Wrap two tests and helpers in a class 2018-08-06 10:41:16 -07:00
Alexandros Tzannes 3cc02ebd5d Break dependency-links test into two separate tests
Use helper functions to reduce code duplication since these two tests
are quasi-identical
2018-08-06 10:30:04 -07:00
Alexandros Tzannes 210a9d46fb Add back git+ssh version of dep-links test
See if it fails n build Kite
2018-08-06 10:04:16 -07:00
Stefan VanBuren 2c39cdb404 Fix typo 2018-08-06 10:24:37 -04:00
Guilherme Zagatti 104a7c0f8c Merge branch 'master' into improve-error-msg 2018-08-06 09:29:30 -04:00
Dan Ryan d93d571d5e Merge branch 'master' into test/deplinks 2018-08-05 02:56:01 -04:00