Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
B

B›IvWÂã@sžddlZddlZddlZddlZddlZddlmZmZmZm	Z	m
Z
mZmZm
Z
mZmZmZddlmZddlmZmZmZeeefZeeeefZededZeeegefZGdd	„d	eƒZGd
d„dejdZ Gd
d„de ƒZ!Gdd„de!ƒZ"edeegefedeegefdœdd„Z#Gdd„de!ƒZ$e %d¡Z&ee
edœdd„Z'eedœdd„Z(e
ee
eee
ee
efdœdd„Z)Gd d!„d!e ƒZ*dS)"éN)ÚCallableÚDictÚIterableÚIteratorÚListÚOptionalÚPatternÚSetÚTupleÚTypeVarÚUnioné)Úcanonicalize_version)Ú
LegacyVersionÚVersionÚparseÚVersionTypeVar)Úboundc@seZdZdZdS)ÚInvalidSpecifierzH
    An invalid specifier was found, users should refer to PEP 440.
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__©rrú’/build/wlanpi-profiler-SHjkbd/wlanpi-profiler-1.0.8/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/packaging/specifiers.pyr!src@sÒeZdZejedœdd„ƒZejedœdd„ƒZeje	e
dœdd„ƒZeje	e
dœd	d
„ƒZej
ee
dœdd„ƒZeje
d
dœdd„ƒZejdeee
e
dœdd„ƒZejdeeee
eedœdd„ƒZd
S)Ú
BaseSpecifier)ÚreturncCsdS)zŽ
        Returns the str representation of this Specifier like object. This
        should be representative of the Specifier itself.
        Nr)ÚselfrrrÚ__str__(szBaseSpecifier.__str__cCsdS)zF
        Returns a hash value for this Specifier like object.
        Nr)rrrrÚ__hash__/szBaseSpecifier.__hash__)ÚotherrcCsdS)zq
        Returns a boolean representing whether or not the two Specifier like
        objects are equal.
        Nr)rr rrrÚ__eq__5szBaseSpecifier.__eq__cCsdS)zu
        Returns a boolean representing whether or not the two Specifier like
        objects are not equal.
        Nr)rr rrrÚ__ne__<szBaseSpecifier.__ne__cCsdS)zg
        Returns whether or not pre-releases as a whole are allowed by this
        specifier.
        Nr)rrrrÚprereleasesCszBaseSpecifier.prereleasesN)ÚvaluercCsdS)zd
        Sets whether or not pre-releases as a whole are allowed by this
        specifier.
        Nr)rr$rrrr#Js)Úitemr#rcCsdS)zR
        Determines if the given item is contained within this specifier.
        Nr)rr%r#rrrÚcontainsQszBaseSpecifier.contains)Úiterabler#rcCsdS)z•
        Takes an iterable of items and filters them so that only items which
        are contained within this specifier are allowed in it.
        Nr)rr'r#rrrÚfilterWszBaseSpecifier.filter)N)N)rrrÚabcÚabstractmethodÚstrrÚintrÚobjectÚboolr!r"Úabstractpropertyrr#Úsetterr&rrr(rrrrr's"r)Ú	metaclassc@sbeZdZUiZeeefed<eeed<d-eee	ddœdd„Z
edœd	d
„Zedœdd„Ze
eeefdœd
d„ƒZedœdd„Zee	dœdd„Zee	dœdd„Zeedœdd„Zeedœdd„Ze
edœdd„ƒZe
edœdd„ƒZe
ee	dœd d!„ƒZeje	dd"œd#d!„ƒZee	d$œd%d&„Zd.eee	e	d'œd(d)„Zd/e e!ee	e e!d*œd+d,„Z"dS)0Ú_IndividualSpecifierÚ
_operatorsÚ_regexÚN)Úspecr#rcCsH|j |¡}|s td|›dƒ‚| d¡ ¡| d¡ ¡f|_||_dS)NzInvalid specifier: 'ú'ÚoperatorÚversion)r4ÚsearchrÚgroupÚstripÚ_specÚ_prereleases)rr6r#ÚmatchrrrÚ__init__fsz_IndividualSpecifier.__init__)rcCs0|jdk	rd|j›nd}d |jjt|ƒ|¡S)Nz, prereleases=r5z<{}({!r}{})>)r>r#ÚformatÚ	__class__rr+)rÚprerrrÚ__repr__ssz_IndividualSpecifier.__repr__cCsdj|jŽS)Nz{}{})rAr=)rrrrr|sz_IndividualSpecifier.__str__cCs|jdt|jdƒfS)Nrr
)r=r)rrrrÚ_canonical_specsz$_IndividualSpecifier._canonical_speccCs
t|jƒS)N)ÚhashrE)rrrrrƒsz_IndividualSpecifier.__hash__)r rcCsPt|tƒr4y| t|ƒ¡}WqDtk
r0tSXnt||jƒsDtS|j|jkS)N)Ú
isinstancer+rBrÚNotImplementedrE)rr rrrr!†s
z_IndividualSpecifier.__eq__cCsPt|tƒr4y| t|ƒ¡}WqDtk
r0tSXnt||jƒsDtS|j|jkS)N)rGr+rBrrHr=)rr rrrr"‘s
z_IndividualSpecifier.__ne__)ÚoprcCst|d|j|›ƒ}|S)NÚ	_compare_)Úgetattrr3)rrIÚoperator_callablerrrÚ
_get_operatorœsz"_IndividualSpecifier._get_operator)r9rcCst|ttfƒst|ƒ}|S)N)rGrrr)rr9rrrÚ_coerce_version¢sz$_IndividualSpecifier._coerce_versioncCs
|jdS)Nr)r=)rrrrr8§sz_IndividualSpecifier.operatorcCs
|jdS)Nr
)r=)rrrrr9«sz_IndividualSpecifier.versioncCs|jS)N)r>)rrrrr#¯sz _IndividualSpecifier.prereleases)r$rcCs
||_dS)N)r>)rr$rrrr#³s)r%rcCs
| |¡S)N)r&)rr%rrrÚ__contains__·sz!_IndividualSpecifier.__contains__)r%r#rcCs>|dkr|j}| |¡}|jr&|s&dS| |j¡}|||jƒS)NF)r#rNÚ
is_prereleaserMr8r9)rr%r#Únormalized_itemrLrrrr&ºs

z_IndividualSpecifier.contains)r'r#rccsˆd}g}d|dk	r|ndi}xJ|D]B}| |¡}|j|f|Žr"|jrZ|sZ|jsZ| |¡q"d}|Vq"W|s„|r„x|D]
}|VqvWdS)NFr#T)rNr&rPr#Úappend)rr'r#ÚyieldedÚfound_prereleasesÚkwr9Úparsed_versionrrrr(Ñs




z_IndividualSpecifier.filter)r5N)N)N)#rrrr3rr+Ú__annotations__rrr.r@rDrÚpropertyr
rEr,rr-r!r"ÚCallableOperatorrMÚUnparsedVersionÚ
ParsedVersionrNr8r9r#r0rOr&rrr(rrrrr2as2

	
r2csÚeZdZdZe dedejejB¡Zdddddd	d
œZ	d e
eedd
œ‡fdd„
Z
eedœdd„Zee
edœdd„Zee
edœdd„Zee
edœdd„Zee
edœdd„Zee
edœdd„Zee
edœdd„Z‡ZS)!ÚLegacySpecifieraÛ
        (?P<operator>(==|!=|<=|>=|<|>))
        \s*
        (?P<version>
            [^,;\s)]* # Since this is a "legacy" specifier, and the version
                      # string can be just about anything, we match everything
                      # except for whitespace, a semi-colon for marker support,
                      # a closing paren since versions can be enclosed in
                      # them, and a comma since it's a version separator.
        )
        z^\s*z\s*$ÚequalÚ	not_equalÚless_than_equalÚgreater_than_equalÚ	less_thanÚgreater_than)z==z!=z<=z>=ú<ú>r5N)r6r#rcstƒ ||¡t dt¡dS)NzZCreating a LegacyVersion has been deprecated and will be removed in the next major release)Úsuperr@ÚwarningsÚwarnÚDeprecationWarning)rr6r#)rBrrr@szLegacySpecifier.__init__)r9rcCst|tƒstt|ƒƒ}|S)N)rGrr+)rr9rrrrNs
zLegacySpecifier._coerce_version)Úprospectiver6rcCs|| |¡kS)N)rN)rrir6rrrÚ_compare_equalszLegacySpecifier._compare_equalcCs|| |¡kS)N)rN)rrir6rrrÚ_compare_not_equalsz"LegacySpecifier._compare_not_equalcCs|| |¡kS)N)rN)rrir6rrrÚ_compare_less_than_equal"sz(LegacySpecifier._compare_less_than_equalcCs|| |¡kS)N)rN)rrir6rrrÚ_compare_greater_than_equal%sz+LegacySpecifier._compare_greater_than_equalcCs|| |¡kS)N)rN)rrir6rrrÚ_compare_less_than*sz"LegacySpecifier._compare_less_thancCs|| |¡kS)N)rN)rrir6rrrÚ_compare_greater_than-sz%LegacySpecifier._compare_greater_than)r5N)rrrÚ
_regex_strÚreÚcompileÚVERBOSEÚ
IGNORECASEr4r3r+rr.r@rZrrNrjrkrlrmrnroÚ
__classcell__rr)rBrr\õs"	r\Ú	Specifier)Úfnrcs&t ˆ¡dtttdœ‡fdd„ƒ}|S)Nrv)rrir6rcst|tƒsdSˆ|||ƒS)NF)rGr)rrir6)rwrrÚwrapped4s
z)_require_version_compare.<locals>.wrapped)Ú	functoolsÚwrapsr[r+r.)rwrxr)rwrÚ_require_version_compare1sr{c	@seZdZdZe dedejejB¡Zdddddd	d
ddœZ	e
eee
d
œdd„ƒZe
eee
d
œdd„ƒZe
eee
d
œdd„ƒZe
eee
d
œdd„ƒZe
eee
d
œdd„ƒZe
eee
dœdd„ƒZe
eee
dœdd„ƒZeee
d
œdd„Zee
dœd d!„ƒZeje
d"d#œd$d!„ƒZd"S)%rva
        (?P<operator>(~=|==|!=|<=|>=|<|>|===))
        (?P<version>
            (?:
                # The identity operators allow for an escape hatch that will
                # do an exact string match of the version you wish to install.
                # This will not be parsed by PEP 440 and we cannot determine
                # any semantic meaning from it. This operator is discouraged
                # but included entirely as an escape hatch.
                (?<====)  # Only match for the identity operator
                \s*
                [^\s]*    # We just match everything, except for whitespace
                          # since we are only testing for strict identity.
            )
            |
            (?:
                # The (non)equality operators allow for wild card and local
                # versions to be specified so we have to define these two
                # operators separately to enable that.
                (?<===|!=)            # Only match for equals and not equals

                \s*
                v?
                (?:[0-9]+!)?          # epoch
                [0-9]+(?:\.[0-9]+)*   # release
                (?:                   # pre release
                    [-_\.]?
                    (a|b|c|rc|alpha|beta|pre|preview)
                    [-_\.]?
                    [0-9]*
                )?
                (?:                   # post release
                    (?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
                )?

                # You cannot use a wild card and a dev or local version
                # together so group them with a | and make them optional.
                (?:
                    (?:[-_\.]?dev[-_\.]?[0-9]*)?         # dev release
                    (?:\+[a-z0-9]+(?:[-_\.][a-z0-9]+)*)? # local
                    |
                    \.\*  # Wild card syntax of .*
                )?
            )
            |
            (?:
                # The compatible operator requires at least two digits in the
                # release segment.
                (?<=~=)               # Only match for the compatible operator

                \s*
                v?
                (?:[0-9]+!)?          # epoch
                [0-9]+(?:\.[0-9]+)+   # release  (We have a + instead of a *)
                (?:                   # pre release
                    [-_\.]?
                    (a|b|c|rc|alpha|beta|pre|preview)
                    [-_\.]?
                    [0-9]*
                )?
                (?:                                   # post release
                    (?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
                )?
                (?:[-_\.]?dev[-_\.]?[0-9]*)?          # dev release
            )
            |
            (?:
                # All other operators only allow a sub set of what the
                # (non)equality operators do. Specifically they do not allow
                # local versions to be specified nor do they allow the prefix
                # matching wild cards.
                (?<!==|!=|~=)         # We have special cases for these
                                      # operators so we want to make sure they
                                      # don't match here.

                \s*
                v?
                (?:[0-9]+!)?          # epoch
                [0-9]+(?:\.[0-9]+)*   # release
                (?:                   # pre release
                    [-_\.]?
                    (a|b|c|rc|alpha|beta|pre|preview)
                    [-_\.]?
                    [0-9]*
                )?
                (?:                                   # post release
                    (?:-[0-9]+)|(?:[-_\.]?(post|rev|r)[-_\.]?[0-9]*)
                )?
                (?:[-_\.]?dev[-_\.]?[0-9]*)?          # dev release
            )
        )
        z^\s*z\s*$Ú
compatibler]r^r_r`rarbÚ	arbitrary)z~=z==z!=z<=z>=rcrdz===)rir6rcCsJd tt tt|ƒ¡ƒdd…¡}|d7}| d¡||ƒoH| d¡||ƒS)NÚ.éÿÿÿÿz.*z>=z==)ÚjoinÚlistÚ	itertoolsÚ	takewhileÚ_is_not_suffixÚ_version_splitrM)rrir6ÚprefixrrrÚ_compare_compatible©s
zSpecifier._compare_compatiblec	Csz| d¡rVt|jƒ}t|dd…ƒ}tt|ƒƒ}|dt|ƒ…}t||ƒ\}}||kSt|ƒ}|jsnt|jƒ}||kSdS)Nz.*éþÿÿÿ)ÚendswithrÚpublicr…r+ÚlenÚ_pad_versionÚlocal)	rrir6Ú
split_specÚsplit_prospectiveÚshortened_prospectiveÚpadded_specÚpadded_prospectiveÚspec_versionrrrrj¿s


zSpecifier._compare_equalcCs| ||¡S)N)rj)rrir6rrrrkçszSpecifier._compare_not_equalcCst|jƒt|ƒkS)N)rrŠ)rrir6rrrrlësz"Specifier._compare_less_than_equalcCst|jƒt|ƒkS)N)rrŠ)rrir6rrrrmósz%Specifier._compare_greater_than_equal)riÚspec_strrcCs<t|ƒ}||ksdS|js8|jr8t|jƒt|jƒkr8dSdS)NFT)rrPÚbase_version)rrir”r6rrrrnýszSpecifier._compare_less_thancCs^t|ƒ}||ksdS|js8|jr8t|jƒt|jƒkr8dS|jdk	rZt|jƒt|jƒkrZdSdS)NFT)rÚis_postreleaser•r)rrir”r6rrrros
zSpecifier._compare_greater_thancCst|ƒ ¡t|ƒ ¡kS)N)r+Úlower)rrir6rrrÚ_compare_arbitrary7szSpecifier._compare_arbitrary)rcCsR|jdk	r|jS|j\}}|dkrN|dkr@| d¡r@|dd…}t|ƒjrNdSdS)N)z==z>=z<=z~=z===z==z.*rˆTF)r>r=r‰rrP)rr8r9rrrr#:s


zSpecifier.prereleasesN)r$rcCs
||_dS)N)r>)rr$rrrr#Ss)rrrrprqrrrsrtr4r3r{r[r+r.r‡rjrkrlrmrnrorr˜rXr#r0rrrrrv=s<]'z^([0-9]+)((?:a|b|c|rc)[0-9]+)$)r9rcCsDg}x:| d¡D],}t |¡}|r2| | ¡¡q| |¡qW|S)Nr~)ÚsplitÚ
_prefix_regexr:ÚextendÚgroupsrR)r9Úresultr%r?rrrr…[s
r…)Úsegmentrcst‡fdd„dDƒƒS)Nc3s|]}ˆ |¡VqdS)N)Ú
startswith)Ú.0r†)ržrrú	<genexpr>hsz!_is_not_suffix.<locals>.<genexpr>)ÚdevÚaÚbÚrcÚpost)Úany)ržr)ržrr„fsr„)ÚleftÚrightrc
Csægg}}| tt dd„|¡ƒ¡| tt dd„|¡ƒ¡| |t|dƒd…¡| |t|dƒd…¡| ddgtdt|dƒt|dƒƒ¡| ddgtdt|dƒt|dƒƒ¡ttj|Žƒttj|ŽƒfS)NcSs| ¡S)N)Úisdigit)ÚxrrrÚ<lambda>póz_pad_version.<locals>.<lambda>cSs| ¡S)N)rª)r«rrrr¬qr­rr
Ú0)rRrr‚rƒr‹ÚinsertÚmaxÚchain)r¨r©Ú
left_splitÚright_splitrrrrŒls
,,rŒc@seZdZd%eeeddœdd„Zedœdd„Zedœd	d
„Ze	dœdd„Z
edefdd
œdd„Ze
ed
œdd„Ze
ed
œdd„Ze	dœdd„Zeedœdd„Zeeedœdd„ƒZejeddœdd„ƒZeedœdd„Zd&eeeedœd d!„Zd'eeeeeed"œd#d$„ZdS)(ÚSpecifierSetr5N)Ú
specifiersr#rc	Csrdd„| d¡Dƒ}tƒ}xB|D]:}y| t|ƒ¡Wq tk
rX| t|ƒ¡Yq Xq Wt|ƒ|_||_dS)NcSsg|]}| ¡r| ¡‘qSr)r<)r Úsrrrú
<listcomp>…sz)SpecifierSet.__init__.<locals>.<listcomp>ú,)	r™ÚsetÚaddrvrr\Ú	frozensetÚ_specsr>)rrµr#Úsplit_specifiersÚparsedÚ	specifierrrrr@s

zSpecifierSet.__init__)rcCs*|jdk	rd|j›nd}d t|ƒ|¡S)Nz, prereleases=r5z<SpecifierSet({!r}{})>)r>r#rAr+)rrCrrrrD—szSpecifierSet.__repr__cCsd tdd„|jDƒƒ¡S)Nr¸css|]}t|ƒVqdS)N)r+)r r¶rrrr¡¡sz'SpecifierSet.__str__.<locals>.<genexpr>)r€Úsortedr¼)rrrrr szSpecifierSet.__str__cCs
t|jƒS)N)rFr¼)rrrrr£szSpecifierSet.__hash__)r rcCs˜t|tƒrt|ƒ}nt|tƒs"tStƒ}t|j|jBƒ|_|jdkrX|jdk	rX|j|_n<|jdk	rv|jdkrv|j|_n|j|jkrŒ|j|_ntdƒ‚|S)NzFCannot combine SpecifierSets with True and False prerelease overrides.)rGr+r´rHr»r¼r>Ú
ValueError)rr r¿rrrÚ__and__¦s





zSpecifierSet.__and__cCs6t|ttfƒrtt|ƒƒ}nt|tƒs*tS|j|jkS)N)rGr+r2r´rHr¼)rr rrrr!½s

zSpecifierSet.__eq__cCs6t|ttfƒrtt|ƒƒ}nt|tƒs*tS|j|jkS)N)rGr+r2r´rHr¼)rr rrrr"Ås

zSpecifierSet.__ne__cCs
t|jƒS)N)r‹r¼)rrrrÚ__len__ÍszSpecifierSet.__len__cCs
t|jƒS)N)Úiterr¼)rrrrÚ__iter__ÐszSpecifierSet.__iter__cCs.|jdk	r|jS|jsdStdd„|jDƒƒS)Ncss|]}|jVqdS)N)r#)r r¶rrrr¡ãsz+SpecifierSet.prereleases.<locals>.<genexpr>)r>r¼r§)rrrrr#Ós

zSpecifierSet.prereleases)r$rcCs
||_dS)N)r>)rr$rrrr#ås)r%rcCs
| |¡S)N)r&)rr%rrrrOészSpecifierSet.__contains__)r%r#rcsLtˆttfƒstˆƒ‰ˆdkr$|j‰ˆs2ˆjr2dSt‡‡fdd„|jDƒƒS)NFc3s|]}|jˆˆdVqdS))r#N)r&)r r¶)r%r#rrr¡sz(SpecifierSet.contains.<locals>.<genexpr>)rGrrrr#rPÚallr¼)rr%r#r)r%r#rr&ìs
zSpecifierSet.contains)r'r#rcCs¸|dkr|j}|jr:x |jD]}|j|t|ƒd}qW|Sg}g}xX|D]P}t|ttfƒsdt|ƒ}n|}t|tƒrtqH|jrŽ|sŽ|s˜| 	|¡qH| 	|¡qHW|s°|r°|dkr°|S|SdS)N)r#)
r#r¼r(r.rGrrrrPrR)rr'r#r6ÚfilteredrTr%rVrrrr(	s*



zSpecifierSet.filter)r5N)N)N)rrrr+rr.r@rDrr,rrrÂr-r!r"rÃrr2rÅrXr#r0rZrOr&rrr(rrrrr´~s&
	
r´)+r)ryr‚rqrfÚtypingrrrrrrrr	r
rrÚutilsrr9rrrr[r+rZrr.rYrÁrÚABCMetarr2r\r{rvrrršr…r„rŒr´rrrrÚ<module>s44:=

*