Skip to content

Commit aa92ec6

Browse files
matteiusoz123
authored andcommitted
Upgrade pythonfinder to 2.0.0 which brings in pydantic (#5677)
* Upgrade pyhonfinder to 2.0.0 which brings in pydantic * Add news fragment. * Add typing extensions.
1 parent d54e975 commit aa92ec6

Some content is hidden

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

59 files changed

+16376
-1854
lines changed

news/5677.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade ``pythonfinder==2.0.0`` which also brings in ``pydantic==1.10.7``.

pipenv/vendor/click/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from .utils import PacifyFlushWrapper
3939

4040
if t.TYPE_CHECKING:
41-
import typing_extensions as te
41+
import pipenv.vendor.typing_extensions as te
4242
from .shell_completion import CompletionItem
4343

4444
F = t.TypeVar("F", bound=t.Callable[..., t.Any])

pipenv/vendor/click/globals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from threading import local
33

44
if t.TYPE_CHECKING:
5-
import typing_extensions as te
5+
import pipenv.vendor.typing_extensions as te
66
from .core import Context
77

88
_local = local()

pipenv/vendor/click/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
from .exceptions import UsageError
3333

3434
if t.TYPE_CHECKING:
35-
import typing_extensions as te
35+
import pipenv.vendor.typing_extensions as te
3636
from .core import Argument as CoreArgument
3737
from .core import Context
3838
from .core import Option as CoreOption

pipenv/vendor/click/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from .utils import safecall
1414

1515
if t.TYPE_CHECKING:
16-
import typing_extensions as te
16+
import pipenv.vendor.typing_extensions as te
1717
from .core import Context
1818
from .core import Parameter
1919
from .shell_completion import CompletionItem

pipenv/vendor/click/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from .globals import resolve_color_default
2020

2121
if t.TYPE_CHECKING:
22-
import typing_extensions as te
22+
import pipenv.vendor.typing_extensions as te
2323

2424
F = t.TypeVar("F", bound=t.Callable[..., t.Any])
2525

pipenv/vendor/markupsafe/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import typing as t
55

66
if t.TYPE_CHECKING:
7-
import typing_extensions as te
7+
import pipenv.vendor.typing_extensions as te
88

99
class HasHTML(te.Protocol):
1010
def __html__(self) -> str:

pipenv/vendor/pythonfinder/LICENSE renamed to pipenv/vendor/pydantic/LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The MIT License (MIT)
22

3-
Copyright (c) 2016 Steve Dower
3+
Copyright (c) 2017, 2018, 2019, 2020, 2021 Samuel Colvin and other contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

pipenv/vendor/pydantic/__init__.py

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
# flake8: noqa
2+
from . import dataclasses
3+
from .annotated_types import create_model_from_namedtuple, create_model_from_typeddict
4+
from .class_validators import root_validator, validator
5+
from .config import BaseConfig, ConfigDict, Extra
6+
from .decorator import validate_arguments
7+
from .env_settings import BaseSettings
8+
from .error_wrappers import ValidationError
9+
from .errors import *
10+
from .fields import Field, PrivateAttr, Required
11+
from .main import *
12+
from .networks import *
13+
from .parse import Protocol
14+
from .tools import *
15+
from .types import *
16+
from .version import VERSION, compiled
17+
18+
__version__ = VERSION
19+
20+
# WARNING __all__ from .errors is not included here, it will be removed as an export here in v2
21+
# please use "from pydantic.errors import ..." instead
22+
__all__ = [
23+
# annotated types utils
24+
'create_model_from_namedtuple',
25+
'create_model_from_typeddict',
26+
# dataclasses
27+
'dataclasses',
28+
# class_validators
29+
'root_validator',
30+
'validator',
31+
# config
32+
'BaseConfig',
33+
'ConfigDict',
34+
'Extra',
35+
# decorator
36+
'validate_arguments',
37+
# env_settings
38+
'BaseSettings',
39+
# error_wrappers
40+
'ValidationError',
41+
# fields
42+
'Field',
43+
'Required',
44+
# main
45+
'BaseModel',
46+
'create_model',
47+
'validate_model',
48+
# network
49+
'AnyUrl',
50+
'AnyHttpUrl',
51+
'FileUrl',
52+
'HttpUrl',
53+
'stricturl',
54+
'EmailStr',
55+
'NameEmail',
56+
'IPvAnyAddress',
57+
'IPvAnyInterface',
58+
'IPvAnyNetwork',
59+
'PostgresDsn',
60+
'CockroachDsn',
61+
'AmqpDsn',
62+
'RedisDsn',
63+
'MongoDsn',
64+
'KafkaDsn',
65+
'validate_email',
66+
# parse
67+
'Protocol',
68+
# tools
69+
'parse_file_as',
70+
'parse_obj_as',
71+
'parse_raw_as',
72+
'schema_of',
73+
'schema_json_of',
74+
# types
75+
'NoneStr',
76+
'NoneBytes',
77+
'StrBytes',
78+
'NoneStrBytes',
79+
'StrictStr',
80+
'ConstrainedBytes',
81+
'conbytes',
82+
'ConstrainedList',
83+
'conlist',
84+
'ConstrainedSet',
85+
'conset',
86+
'ConstrainedFrozenSet',
87+
'confrozenset',
88+
'ConstrainedStr',
89+
'constr',
90+
'PyObject',
91+
'ConstrainedInt',
92+
'conint',
93+
'PositiveInt',
94+
'NegativeInt',
95+
'NonNegativeInt',
96+
'NonPositiveInt',
97+
'ConstrainedFloat',
98+
'confloat',
99+
'PositiveFloat',
100+
'NegativeFloat',
101+
'NonNegativeFloat',
102+
'NonPositiveFloat',
103+
'FiniteFloat',
104+
'ConstrainedDecimal',
105+
'condecimal',
106+
'ConstrainedDate',
107+
'condate',
108+
'UUID1',
109+
'UUID3',
110+
'UUID4',
111+
'UUID5',
112+
'FilePath',
113+
'DirectoryPath',
114+
'Json',
115+
'JsonWrapper',
116+
'SecretField',
117+
'SecretStr',
118+
'SecretBytes',
119+
'StrictBool',
120+
'StrictBytes',
121+
'StrictInt',
122+
'StrictFloat',
123+
'PaymentCardNumber',
124+
'PrivateAttr',
125+
'ByteSize',
126+
'PastDate',
127+
'FutureDate',
128+
# version
129+
'compiled',
130+
'VERSION',
131+
]

0 commit comments

Comments
 (0)