-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: deprecate poetry.core.packages.constraints and poetry.core.…
…semver
- Loading branch information
Showing
12 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from __future__ import annotations | ||
|
||
import warnings | ||
|
||
|
||
warnings.warn( | ||
"poetry.core.packages.constraints is deprecated." | ||
" Use poetry.core.constraints.generic instead.", | ||
DeprecationWarning, | ||
stacklevel=2, | ||
) | ||
|
||
from poetry.core.constraints.generic import * # noqa: E402, F401, F403 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from __future__ import annotations | ||
|
||
import warnings | ||
|
||
|
||
warnings.warn( | ||
"poetry.core.semver is deprecated. Use poetry.core.constraints.version instead.", | ||
DeprecationWarning, | ||
stacklevel=2, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version import EmptyConstraint | ||
|
||
|
||
__all__ = ["EmptyConstraint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version.exceptions import ParseConstraintError | ||
|
||
|
||
__all__ = ["ParseConstraintError"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version import parse_constraint | ||
|
||
|
||
__all__ = ["parse_constraint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version.patterns import BASIC_CONSTRAINT | ||
from poetry.core.constraints.version.patterns import CARET_CONSTRAINT | ||
from poetry.core.constraints.version.patterns import COMPLETE_VERSION | ||
from poetry.core.constraints.version.patterns import TILDE_CONSTRAINT | ||
from poetry.core.constraints.version.patterns import TILDE_PEP440_CONSTRAINT | ||
from poetry.core.constraints.version.patterns import X_CONSTRAINT | ||
|
||
|
||
__all__ = [ | ||
"COMPLETE_VERSION", | ||
"CARET_CONSTRAINT", | ||
"TILDE_CONSTRAINT", | ||
"TILDE_PEP440_CONSTRAINT", | ||
"X_CONSTRAINT", | ||
"BASIC_CONSTRAINT", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version import constraint_regions | ||
|
||
|
||
__all__ = ["constraint_regions"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version import Version | ||
|
||
|
||
__all__ = ["Version"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version import VersionConstraint | ||
|
||
|
||
__all__ = ["VersionConstraint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version import VersionRange | ||
|
||
|
||
__all__ = ["VersionRange"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version import VersionRangeConstraint | ||
|
||
|
||
__all__ = ["VersionRangeConstraint"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from __future__ import annotations | ||
|
||
from poetry.core.constraints.version import VersionUnion | ||
|
||
|
||
__all__ = ["VersionUnion"] |