Skip to content

Commit

Permalink
Re-add rez.vendor.version with redirects and a deprecation warning
Browse files Browse the repository at this point in the history
Signed-off-by: Jean-Christophe Morin <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso committed Oct 28, 2023
1 parent 1f8b10e commit 2b7d5ea
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/rez/vendor/version/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the Rez Project


import warnings

warnings.warn(
"module 'rez.vendor.version' is deprecated and will be removed in 3.0.0. Use 'rez.version' instead.",
DeprecationWarning,
stacklevel=2
)
5 changes: 5 additions & 0 deletions src/rez/vendor/version/requirement.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the Rez Project


from rez.version._requirement import *
5 changes: 5 additions & 0 deletions src/rez/vendor/version/util.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the Rez Project


from rez.version._util import *
5 changes: 5 additions & 0 deletions src/rez/vendor/version/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the Rez Project


from rez.version._version import *

0 comments on commit 2b7d5ea

Please sign in to comment.