§ x<ˆj,ãóX—dZddlZddlZddlmZmZddlmZddlm Z m Z m Z m Z ddl mZddlmZdd lmZmZ d6ddded œd e ed e ed e ede ede edef d„Zedde¬¦«dededefd„¦«Zed¬¦«d„¦«Zedd¬¦«d„¦«Zed¬¦«d„¦«Zedd ¬¦«d!„¦«Zed"d ¬¦«d#„¦«Zed$d¬¦«d7d%„¦«Z ed¬¦«d&„¦«Z!ed¬¦«d'„¦«Z"ed¬¦«d(„¦«Z#ed¬¦«d8d*„¦«Z$ed¬¦«d9d,„¦«Z%ed¬¦«d-„¦«Z&ed¬¦«d.„¦«Z'eej(d/d¬¦«Z(eej)d0d¬¦«Z)eej*d1d¬¦«Z*eej+d2d¬¦«Z+eej,d3d¬¦«Z,eej-d4d¬¦«Z-eej.d5d¬¦«Z.dS):zA Contains all deprecated functions. .. autofunction: deprecated éN)ÚpartialÚwraps)Ú FrameType)ÚTypeÚCallableÚOptionalÚcasté)Úcli)ÚVersion)Ú DecoratorÚF©ÚreplaceÚversionÚremoveÚcategoryÚfuncrrrrÚreturnc󬇇‡‡‡—‰€tt‰‰‰‰¬¦«St‰¦«dtdtffˆˆˆˆˆfd„ ¦«}|S)aN Decorates a function to output a deprecation warning. :param func: the function to decorate :param replace: the function to replace (use the full qualified name like ``semver.version.Version.bump_major``. :param version: the first version when this function was deprecated. :param category: allow you to specify the deprecation warning class of your choice. By default, it's :class:`DeprecationWarning`, but you can choose :class:`PendingDeprecationWarning` or a custom class. :return: decorated function which is marked as deprecated Nrr.cóŽ•—dg}‰ r| d¦«‰ s| d¦«n"| t‰ ¦«¦«‰ r| d¦«n| d¦«tt‰¦«j}‰ p|}tt tt t j¦«¦«j¦«}d  |¦«}tj |  ||‰ ¬¦«‰t j |j¦«|j¬¦«~‰|i|¤ŽS) Nz$Function 'semver.{f}' is deprecated.zDeprecated since version {v}. z*This function will be removed in semver 3.zUse {r!r} instead.z0Use the respective 'semver.Version.{r}' instead.ú )ÚfÚrÚv)rÚfilenameÚlineno)ÚappendÚstrr rÚ __qualname__rÚinspectÚ currentframeÚf_backÚjoinÚwarningsÚ warn_explicitÚformatÚgetfileÚf_codeÚf_lineno) ÚargsÚkwargsÚmsg_listrrÚframeÚmsgrrrrrs €€€€€úd/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/semver/_deprecated.pyÚwrapperzdeprecated..wrapper/s=ø€à:Ð;ˆà ð >Ø �OŠOÐ<Ñ =Ô =Ð =àð )Ø �OŠOÐHÑ IÔ IÐ IÐ Ià �OŠO�C ™KœKÑ (Ô (Ð (à ð PØ �OŠOÐ0Ñ 1Ô 1Ð 1Ð 1à �OŠOÐNÑ OÔ OÐ Oå •�D‰MŒMÔ &ˆØ ˆL�qˆå•Y¥¥YµÔ0DÑ0FÔ0FÑ GÔ GÔ NÑOÔOˆà�hŠh�xÑ Ô ˆÝÔØ �JŠJ˜˜a 7ˆJÑ +Ô +ØÝ”_ U¤\Ñ2Ô2Ø”>ð  ñ ô ð ð Øˆt�TÐ$˜VÐ$Ð$Ð$ó)rÚ deprecatedrrr)rrrrrr1s````` r0r3r3s�øøøøø€ð* €|ÝÝ ØØØØð  ñ ô ð õ ˆ4�[„[ð %¥H¨Sµ!¨VÔ$4ð %ð %ð %ð %ð %ð %ð %ð %ð %ñ„[ð %ðD €Nr2z3.0.0z$Still under investigation, see #258.)rrrÚver1Úver2cóP—tj|¦« |¦«S)a` Compare two versions strings. .. deprecated:: 3.0.0 The situation of this function is unclear and it might disappear in the future. If possible, use :meth:`semver.version.Version.compare`. See :gh:`258` for details. :param ver1: first version string :param ver2: second version string :return: The return value is negative if ver1 < ver2, zero if ver1 == ver2 and strictly positive if ver1 > ver2 >>> semver.compare("1.0.0", "2.0.0") -1 >>> semver.compare("2.0.0", "1.0.0") 1 >>> semver.compare("2.0.0", "2.0.0") 0 )r ÚparseÚcompare©r4r5s r0r8r8Us"€õ6 Œ=˜Ñ Ô × &Ò & tÑ ,Ô ,Ð,r2z2.10.0©rcóN—tj|¦« ¦«S)aP Parse version to major, minor, patch, pre-release, build parts. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.parse` instead. :param version: version string :return: dictionary with the keys 'build', 'major', 'minor', 'patch', and 'prerelease'. The prerelease or build keys can be None if not provided :rtype: dict >>> ver = semver.parse('3.4.5-pre.2+build.4') >>> ver['major'] 3 >>> ver['minor'] 4 >>> ver['patch'] 5 >>> ver['prerelease'] 'pre.2' >>> ver['build'] 'build.4' )r r7Úto_dictr:s r0r7r7ss €õ4 Œ=˜Ñ !Ô !× )Ò )Ñ +Ô +Ð+r2zsemver.version.Version.parse)rrcó*—tj|¦«S)a# Parse version string to a Version instance. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.parse` instead. .. versionadded:: 2.7.2 Added :func:`semver.parse_version_info` :param version: version string :return: a :class:`VersionInfo` instance >>> version_info = semver.Version.parse("3.4.5-pre.2+build.4") >>> version_info.major 3 >>> version_info.minor 4 >>> version_info.patch 5 >>> version_info.prerelease 'pre.2' >>> version_info.build 'build.4' )r r7r:s r0Úparse_version_infor>�s€õ2 Œ=˜Ñ !Ô !Ð!r2cóT—tj|¦«}| |¦«S)aj Compare two versions strings through a comparison. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.match` instead. :param str version: a version string :param str match_expr: operator and version; valid operators are < smaller than > greater than >= greator or equal than <= smaller or equal than == equal != not equal :return: True if the expression matches the version, otherwise False :rtype: bool >>> semver.match("2.0.0", ">=1.0.0") True >>> semver.match("1.0.0", ">1.0.0") False )r r7Úmatch)rÚ match_exprÚvers r0r@r@¬s%€õ0 Œ-˜Ñ Ô €CØ �9Š9�ZÑ Ô Ð r2Úmaxz2.10.2cóT—tt||tj¬¦«¦«S)a> Returns the greater version of two versions strings. .. deprecated:: 2.10.2 Use :func:`max` instead. :param ver1: version string 1 :param ver2: version string 2 :return: the greater version of the two :rtype: :class:`Version` >>> semver.max_ver("1.0.0", "2.0.0") '2.0.0' ©Úkey)rrCr r7r9s r0Úmax_verrGÈó#€õ �s�4˜¥7¤=Ð1Ñ1Ô1Ñ 2Ô 2Ð2r2ÚmincóT—tt||tj¬¦«¦«S)aB Returns the smaller version of two versions strings. .. deprecated:: 2.10.2 Use Use :func:`min` instead. :param ver1: version string 1 :param ver2: version string 2 :return: the smaller version of the two :rtype: :class:`Version` >>> semver.min_ver("1.0.0", "2.0.0") '1.0.0' rE)rrIr r7r9s r0Úmin_verrKÛrHr2zstr(versionobject)c óB—tt|||||¦«¦«S)aX Format a version string according to the Semantic Versioning specification. .. deprecated:: 2.10.0 Use ``str(Version(VERSION)`` instead. :param int major: the required major part of a version :param int minor: the required minor part of a version :param int patch: the required patch part of a version :param str prerelease: the optional prerelease part of a version :param str build: the optional build part of a version :return: the formatted string :rtype: str >>> semver.format_version(3, 4, 5, 'pre.2', 'build.4') '3.4.5-pre.2+build.4' )rr )ÚmajorÚminorÚpatchÚ prereleaseÚbuilds r0Úformat_versionrRîs"€õ& �w�u˜e U¨J¸Ñ>Ô>Ñ ?Ô ?Ð?r2cóh—ttj|¦« ¦«¦«S)a Raise the major part of the version string. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.bump_major` instead. :param: version string :return: the raised version string :rtype: str >>> semver.bump_major("3.4.5") '4.0.0' )rr r7Ú bump_majorr:s r0rTrTó(€õ �wŒ}˜WÑ%Ô%×0Ò0Ñ2Ô2Ñ 3Ô 3Ð3r2cóh—ttj|¦« ¦«¦«S)a Raise the minor part of the version string. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.bump_minor` instead. :param: version string :return: the raised version string :rtype: str >>> semver.bump_minor("3.4.5") '3.5.0' )rr r7Ú bump_minorr:s r0rWrWrUr2cóh—ttj|¦« ¦«¦«S)a Raise the patch part of the version string. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.bump_patch` instead. :param: version string :return: the raised version string :rtype: str >>> semver.bump_patch("3.4.5") '3.4.6' )rr r7Ú bump_patchr:s r0rYrY(rUr2Úrccój—ttj|¦« |¦«¦«S)aZ Raise the prerelease part of the version string. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.bump_prerelease` instead. :param version: version string :param token: defaults to 'rc' :return: the raised version string :rtype: str >>> semver.bump_prerelease('3.4.5', 'dev') '3.4.5-dev.1' )rr r7Úbump_prerelease©rÚtokens r0r\r\:s*€õ �wŒ}˜WÑ%Ô%×5Ò5°eÑ<Ô<Ñ =Ô =Ð=r2rQcój—ttj|¦« |¦«¦«S)a\ Raise the build part of the version string. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.bump_build` instead. :param version: version string :param token: defaults to 'build' :return: the raised version string :rtype: str >>> semver.bump_build('3.4.5-rc.1+build.9') '3.4.5-rc.1+build.10' )rr r7Ú bump_buildr]s r0r`r`Ms*€õ �wŒ}˜WÑ%Ô%×0Ò0°Ñ7Ô7Ñ 8Ô 8Ð8r2cól—tj|¦«}t| ¦«¦«S)aˆ Remove any prerelease and build metadata from the version string. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.finalize_version` instead. .. versionadded:: 2.7.9 Added :func:`finalize_version` :param version: version string :return: the finalized version string :rtype: str >>> semver.finalize_version('1.2.3-rc.5') '1.2.3' )r r7rÚfinalize_version)rÚverinfos r0rbrb`s-€õ$Œm˜GÑ$Ô$€GÝ ˆw×'Ò'Ñ)Ô)Ñ *Ô *Ð*r2c óZ—ttj|¦«jdi|¤Ž¦«S)aH Replace one or more parts of a version and return the new string. .. deprecated:: 2.10.0 Use :meth:`~semver.version.Version.replace` instead. .. versionadded:: 2.9.0 Added :func:`replace` :param version: the version string to replace :param parts: the parts to be updated. Valid keys are: ``major``, ``minor``, ``patch``, ``prerelease``, or ``build`` :return: the replaced version string :raises TypeError: if ``parts`` contains invalid keys >>> import semver >>> semver.replace("1.2.3", major=2, patch=10) '2.2.10' ©)rr r7r)rÚpartss r0rrvs0€õ( Ð-�wŒ}˜WÑ%Ô%Ô-Ð6Ð6°Ð6Ð6Ñ 7Ô 7Ð7r2zsemver.cli.cmd_bumpzsemver.cli.cmd_checkzsemver.cli.cmd_comparezsemver.cli.cmd_nextverzsemver.cli.createparserzsemver.cli.processzsemver.cli.main)N)NN)rZ)rQ)/Ú__doc__r!r%Ú functoolsrrÚtypesrÚtypingrrrr Úr rr Ú_typesr rÚDeprecationWarningrÚWarningr3ÚPendingDeprecationWarningÚintr8r7r>r@rGrKrRrTrWrYr\r`rbrÚcmd_bumpÚ cmd_checkÚ cmd_compareÚ cmd_nextverÚ createparserÚprocessÚmainrer2r0úrxs•ðððð €€€Ø€€€Ø$Ð$Ð$Ð$Ð$Ð$Ð$Ð$ØÐÐÐÐÐØ1Ð1Ð1Ð1Ð1Ð1Ð1Ð1Ð1Ð1Ð1Ð1àÐÐÐÐÐØÐÐÐÐÐØ Ð Ð Ð Ð Ð Ð Ð ððAð"Ø!Ø Ø0ð AðAðAØ �1Œ+ðAð�cŒ]ðAð�cŒ]ð Að �SŒMð Að �7Œmð AððAðAðAðAðH €Ø Ø 1Ø &ðñôð -�#ð-˜Sð- Sð-ð-ð-ñ ôð -ð2 €�HÐÑÔð,ð,ñÔð,ð8 €Ð2¸HÐEÑEÔEð"ð"ñFÔEð"ð6 €�HÐÑÔð!ð!ñÔð!ð6 €�E 8Ð,Ñ,Ô,ð3ð3ñ-Ô,ð3ð$ €�E 8Ð,Ñ,Ô,ð3ð3ñ-Ô,ð3ð$ €Ð(°(Ð;Ñ;Ô;ð@ð@ð@ñ<Ô;ð@ð* €�HÐÑÔð4ð4ñÔð4ð" €�HÐÑÔð4ð4ñÔð4ð" €�HÐÑÔð4ð4ñÔð4ð" €�HÐÑÔð>ð>ð>ñÔð>ð$ €�HÐÑÔð9ð9ð9ñÔð9ð$ €�HÐÑÔð+ð+ñÔð+ð* €�HÐÑÔð8ð8ñÔð8ð. ˆ:�c”lÐ,AÈ7Ð SÑ SÔ S€Ø ˆJ�s”}Ð.DÈgÐ VÑ VÔ V€ ؈jØ„OÐ5¸wðñô€ ðˆjØ„OÐ5¸wðñô€ ðˆzØÔÐ7Àðñô€ ð ˆ*�S”[Ð*>ÈÐ PÑ PÔ P€Ø€z�#”(Ð$5¸wÐGÑGÔG€€€r2