403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.224
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/dulwich/contrib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/dulwich/contrib/__pycache__/release_robot.cpython-313.pyc
�

mEdg�����SrSSKrSSKrSSKrSSKrSSKJr SrSr\4Sjr	\\S4Sjr
\S	:Xa5\"\R5S
:�a\RS
rO\r\"\
"\S95 gg)a�Determine last version string from tags.

Alternate to `Versioneer <https://pypi.python.org/pypi/versioneer/>`_ using
`Dulwich <https://pypi.python.org/pypi/dulwich>`_ to sort tags by time from
newest to oldest.

Copy the following into the package ``__init__.py`` module::

    from dulwich.contrib.release_robot import get_current_version
    __version__ = get_current_version()

This example assumes the tags have a leading "v" like "v0.3", and that the
``.git`` folder is in a project folder that contains the package folder.

EG::

    * project
    |
    * .git
    |
    +-* package
      |
      * __init__.py  <-- put __version__ here


�N�)�Repo�.z[ a-zA-Z_\-]*([\d\.]+[\-\w\.]*)c�j�[U5nUR5n0nUR5GH:upEURS5nUR	U5nSU;aM0URSS5upxURn	[R"[R"UR5SS6URRS5URRS54n
UR	U	S5n	[R"[R"U	R5SS6U	RRS5U	RRS5U
/X8'GM= SSS5 [!WR5SSS	9$![a Un	Sn
N�f=f!,(df   N<=f)
a�Get list of tags in order from newest to oldest and their datetimes.

Args:
  projdir: path to ``.git``
Returns:
  list of tags sorted by commit time from newest to oldest

Each tag in the list contains the tag name, commit time, commit id, author
and any tag meta. If a tag isn't annotated, then its tag meta is ``None``.
Otherwise the tag meta is a tuple containing the tag time, tag id and tag
name. Time is in UTC.
zutf-8�tags�/�N�c��USS$)Nr	r�)�tags �?/usr/lib/python3/dist-packages/dulwich/contrib/release_robot.py�<lambda>�!get_recent_tags.<locals>.<lambda>os���A��q�	�T)�key�reverse)r�get_refs�items�decode�
get_object�rsplit�object�datetime�time�gmtime�tag_time�id�name�AttributeError�commit_time�author�sorted)�projdir�project�refsrr�value�obj�_r
�commit�tag_metas           r�get_recent_tagsr,<su��
�g��'����!�����*�*�,�J�C��*�*�W�%�C��$�$�U�+�C��S� ���Z�Z��Q�'�F�A�
7������%�%�t�{�{�3�<�<�'@��!�'D�E��F�F�M�M�'�*��H�H�O�O�G�,���
!�+�+�F�1�I�6��
�!�!�4�;�;�v�/A�/A�#B�2�A�#F�G��	�	� � ��)��
�
�$�$�W�-��	�D�I�5'�	
�L�$�*�*�,�$9�4�H�H��+"�
 �����
 ��#
��s1�A'F$�4F�C.F$�F!�F$� F!�!F$�$
F2c��[U5nUSSn[R"X5nUR	S5nU$![a gf=f![[
4a$nU(aUR
U5 UsSnA$SnAff=f)aReturn the most recent tag, using an options regular expression pattern.

The default pattern will strip any characters preceding the first semantic
version. *EG*: "Release-0.2.1-rc.1" will be come "0.2.1-rc.1". If no match
is found, then the most recent tag is return without modification.

Args:
  projdir: path to ``.git``
  pattern: regular expression pattern with group that matches version
  logger: a Python logging instance to capture exception
Returns:
  tag matching first group in regular expression pattern
rNr	)r,�
IndexError�re�match�groupr �	exception)r$�pattern�loggerrr
�matches�current_version�errs        r�get_current_versionr8rs����7�#�D���1�g�a�j���h�h�w�$�G��!�-�-��*��
��������

��'������S�!��
���s,�?�A�
A�A�B�A>�8B�>B�__main__r	)r$)�__doc__rr/�sysr�repor�PROJDIR�PATTERNr,r8�__name__�len�argv�_PROJDIR�printrrr�<module>rDs���*�6�	�
�����
,��$�3I�l!(����:�z��
�3�8�8�}�q���8�8�A�;����	�
�h�
/�0�r

Youez - 2016 - github.com/yon3zu
LinuXploit