Skip to content

Commit d9db346

Browse files
authored
Merge pull request #4533 from pypa/vendor/update
Update vendored dependencies
2 parents 3d3e62d + a95ed52 commit d9db346

File tree

161 files changed

+6836
-3099
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+6836
-3099
lines changed

docs/advanced.rst

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ Alternatively, you can set the ``PIPENV_PYPI_MIRROR`` environment variable.
5858
☤ Injecting credentials into Pipfiles via environment variables
5959
-----------------------------------------------------------------
6060

61-
6261
Pipenv will expand environment variables (if defined) in your Pipfile. Quite
6362
useful if you need to authenticate to a private PyPI::
6463

@@ -76,6 +75,17 @@ If your credentials contain a special character, surround the references to the
7675
[[source]]
7776
url = "https://$USERNAME:'${PASSWORD}'@mypypi.example.com/simple"
7877

78+
Environment variables may be specified as ``${MY_ENVAR}`` or ``$MY_ENVAR``.
79+
80+
On Windows, ``%MY_ENVAR%`` is supported in addition to ``${MY_ENVAR}`` or ``$MY_ENVAR``.
81+
82+
Environment variables in the URL part of requirement specifiers can also be expanded, where the variable must be in the form of ``${VAR_NAME}``. Neither ``$VAR_NAME`` nor ``%VAR_NAME%`` is acceptable::
83+
84+
[[package]]
85+
requests = {git = "git://${USERNAME}:${PASSWORD}@private.git.com/psf/requests.git", ref = "2.22.0"}
86+
87+
Keep in mind that environment variables are expanded in runtime, leaving the entries in ``Pipfile`` or ``Pipfile.lock`` untouched. This is to avoid the accidental leakage of credentials in the source code.
88+
7989

8090
☤ Specifying Basically Anything
8191
-------------------------------
@@ -436,32 +446,6 @@ You can then display the names and commands of your shortcuts by running ``pipen
436446
command script
437447
echospam echo I am really a very silly example
438448

439-
440-
☤ Support for Environment Variables
441-
-----------------------------------
442-
443-
Pipenv supports the usage of environment variables in place of authentication fragments
444-
in your Pipfile. These will only be parsed if they are present in the ``[[source]]``
445-
section. For example:
446-
447-
.. code-block:: toml
448-
449-
[[source]]
450-
url = "https://${PYPI_USERNAME}:${PYPI_PASSWORD}@my_private_repo.example.com/simple"
451-
verify_ssl = true
452-
name = "pypi"
453-
454-
[dev-packages]
455-
456-
[packages]
457-
requests = {version="*", index="home"}
458-
maya = {version="*", index="pypi"}
459-
records = "*"
460-
461-
Environment variables may be specified as ``${MY_ENVAR}`` or ``$MY_ENVAR``.
462-
463-
On Windows, ``%MY_ENVAR%`` is supported in addition to ``${MY_ENVAR}`` or ``$MY_ENVAR``.
464-
465449
.. _configuration-with-environment-variables:
466450

467451
☤ Configuration With Environment Variables

news/3516.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Support expanding environment variables in requirement URLs.

news/4533.vendor.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Update vendored dependencies:
2+
- ``colorama`` from ``0.4.3`` to ``0.4.4``
3+
- ``python-dotenv`` from ``0.10.3`` to ``0.15.0``
4+
- ``first`` from ``2.0.1`` to ``2.0.2``
5+
- ``iso8601`` from ``0.1.12`` to ``0.1.13``
6+
- ``parse`` from ``1.15.0`` to ``1.18.0``
7+
- ``pipdeptree`` from ``0.13.2`` to ``1.0.0``
8+
- ``requests`` from ``2.23.0`` to ``2.25.0``
9+
- ``idna`` from ``2.9`` to ``2.10``
10+
- ``urllib3`` from ``1.25.9`` to ``1.26.1``
11+
- ``certifi`` from ``2020.4.5.1`` to ``2020.11.8``
12+
- ``requirementslib`` from ``1.5.15`` to ``1.5.16``
13+
- ``attrs`` from ``19.3.0`` to ``20.3.0``
14+
- ``distlib`` from ``0.3.0`` to ``0.3.1``
15+
- ``packaging`` from ``20.3`` to ``20.4``
16+
- ``six`` from ``1.14.0`` to ``1.15.0``
17+
- ``semver`` from ``2.9.0`` to ``2.13.0``
18+
- ``toml`` from ``0.10.1`` to ``0.10.2``
19+
- ``cached-property`` from ``1.5.1`` to ``1.5.2``
20+
- ``yaspin`` from ``0.14.3`` to ``1.2.0``
21+
- ``resolvelib`` from ``0.3.0`` to ``0.5.2``
22+
- ``pep517`` from ``0.8.2`` to ``0.9.1``
23+
- ``zipp`` from ``0.6.0`` to ``1.2.0``
24+
- ``importlib-metadata`` from ``1.6.0`` to ``2.0.0``
25+
- ``importlib-resources`` from ``1.5.0`` to ``3.3.0``

pipenv/vendor/attr/__init__.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
from __future__ import absolute_import, division, print_function
22

3+
import sys
4+
35
from functools import partial
46

5-
from . import converters, exceptions, filters, validators
7+
from . import converters, exceptions, filters, setters, validators
68
from ._config import get_run_validators, set_run_validators
7-
from ._funcs import asdict, assoc, astuple, evolve, has
9+
from ._funcs import asdict, assoc, astuple, evolve, has, resolve_types
810
from ._make import (
911
NOTHING,
1012
Attribute,
@@ -19,7 +21,7 @@
1921
from ._version_info import VersionInfo
2022

2123

22-
__version__ = "19.3.0"
24+
__version__ = "20.3.0"
2325
__version_info__ = VersionInfo._from_version_string(__version__)
2426

2527
__title__ = "attrs"
@@ -39,7 +41,6 @@
3941
ib = attr = attrib
4042
dataclass = partial(attrs, auto_attribs=True) # happy Easter ;)
4143

42-
4344
__all__ = [
4445
"Attribute",
4546
"Factory",
@@ -61,8 +62,15 @@
6162
"has",
6263
"ib",
6364
"make_class",
65+
"resolve_types",
6466
"s",
6567
"set_run_validators",
68+
"setters",
6669
"validate",
6770
"validators",
6871
]
72+
73+
if sys.version_info[:2] >= (3, 6):
74+
from ._next_gen import define, field, frozen, mutable
75+
76+
__all__.extend((define, field, frozen, mutable))

0 commit comments

Comments
 (0)