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

Ĺ!̏™©ã@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-7IIg1Q/wlanpi-profiler-1.0.11/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/packaging/specifiers.pyr!src@s¼eZdZejedœdd„ƒZejedœdd„ƒZeje	e
dœdd„ƒZeje
e
dœd	d
„ƒZeje
ddœd
d
„ƒZejdee
e
e
dœdd„ƒZejdeee
e
eedœdd„ƒZdS)Ú
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)zg
        Returns whether or not pre-releases as a whole are allowed by this
        specifier.
        Nr)rrrrÚprereleases<szBaseSpecifier.prereleasesN)ÚvaluercCsdS)zd
        Sets whether or not pre-releases as a whole are allowed by this
        specifier.
        Nr)rr#rrrr"Cs)Úitemr"rcCsdS)zR
        Determines if the given item is contained within this specifier.
        Nr)rr$r"rrrÚcontainsJszBaseSpecifier.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ÚfilterPszBaseSpecifier.filter)N)N)rrrÚabcÚabstractmethodÚstrrÚintrÚobjectÚboolr!Úabstractpropertyrr"Úsetterr%rrr'rrrrr'sr)Ú	metaclassc@sReZdZUiZeeefed<eeed<d+eee	ddœdd„Z
edœd	d
„Zedœdd„Ze
eeefdœd
d„ƒZedœdd„Zee	dœdd„Zeedœdd„Zeedœdd„Ze
edœdd„ƒZe
edœdd„ƒZe
ee	dœdd„ƒZeje	dd œd!d„ƒZee	d"œd#d$„Zd,eee	e	d%œd&d'„Zd-ee ee	ee d(œd)d*„Z!dS).Ú_IndividualSpecifierÚ
_operatorsÚ_regexÚN)Úspecr"rcCsH|j |¡}|s td|›dƒ‚| d¡ ¡| d¡ ¡f|_||_dS)NzInvalid specifier: 'ú'ÚoperatorÚversion)r3ÚsearchrÚgroupÚstripÚ_specÚ_prereleases)rr5r"ÚmatchrrrÚ__init___sz_IndividualSpecifier.__init__)rcCs8|jdk	rd|j›nd}d|jj›dt|ƒ›|›dS)Nz, prereleases=r4ú<ú(z)>)r=r"Ú	__class__rr*)rÚprerrrÚ__repr__lsz_IndividualSpecifier.__repr__cCsdj|jŽS)Nz{}{})Úformatr<)rrrrrusz_IndividualSpecifier.__str__cCs|jdt|jdƒfS)Nrr
)r<r)rrrrÚ_canonical_specxsz$_IndividualSpecifier._canonical_speccCs
t|jƒS)N)ÚhashrF)rrrrr|sz_IndividualSpecifier.__hash__)r rcCsPt|tƒr4y| t|ƒ¡}WqDtk
r0tSXnt||jƒsDtS|j|jkS)N)Ú
isinstancer*rBrÚNotImplementedrF)rr rrrr!s
z_IndividualSpecifier.__eq__)ÚoprcCst|d|j|›ƒ}|S)NÚ	_compare_)Úgetattrr2)rrJÚoperator_callablerrrÚ
_get_operatorŠsz"_IndividualSpecifier._get_operator)r8rcCst|ttfƒst|ƒ}|S)N)rHrrr)rr8rrrÚ_coerce_versionsz$_IndividualSpecifier._coerce_versioncCs
|jdS)Nr)r<)rrrrr7•sz_IndividualSpecifier.operatorcCs
|jdS)Nr
)r<)rrrrr8™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"rOÚ
is_prereleaserNr7r8)rr$r"Únormalized_itemrMrrrr%¨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)rOr%rQr"Úappend)rr&r"ÚyieldedÚfound_prereleasesÚkwr8Úparsed_versionrrrr'¿s




z_IndividualSpecifier.filter)r4N)N)N)"rrrr2rr*Ú__annotations__rrr-r?rDrÚpropertyr
rFr+rr,r!ÚCallableOperatorrNÚUnparsedVersionÚ
ParsedVersionrOr7r8r"r/rPr%rrr'rrrrr1Zs0

	
r1csÚ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>=r@ú>r4N)r5r"rcstƒ ||¡t dt¡dS)NzZCreating a LegacyVersion has been deprecated and will be removed in the next major release)Úsuperr?ÚwarningsÚwarnÚDeprecationWarning)rr5r")rBrrr?üszLegacySpecifier.__init__)r8rcCst|tƒstt|ƒƒ}|S)N)rHrr*)rr8rrrrOs
zLegacySpecifier._coerce_version)Úprospectiver5rcCs|| |¡kS)N)rO)rrir5rrrÚ_compare_equal
szLegacySpecifier._compare_equalcCs|| |¡kS)N)rO)rrir5rrrÚ_compare_not_equal
sz"LegacySpecifier._compare_not_equalcCs|| |¡kS)N)rO)rrir5rrrÚ_compare_less_than_equalsz(LegacySpecifier._compare_less_than_equalcCs|| |¡kS)N)rO)rrir5rrrÚ_compare_greater_than_equalsz+LegacySpecifier._compare_greater_than_equalcCs|| |¡kS)N)rO)rrir5rrrÚ_compare_less_thansz"LegacySpecifier._compare_less_thancCs|| |¡kS)N)rO)rrir5rrrÚ_compare_greater_thansz%LegacySpecifier._compare_greater_than)r4N)rrrÚ
_regex_strÚreÚcompileÚVERBOSEÚ
IGNORECASEr3r2r*rr-r?r[rrOrjrkrlrmrnroÚ
__classcell__rr)rBrr]ãs"	r]Ú	Specifier)Úfnrcs&t ˆ¡dtttdœ‡fdd„ƒ}|S)Nrv)rrir5rcst|tƒsdSˆ|||ƒS)NF)rHr)rrir5)rwrrÚwrapped"s
z)_require_version_compare.<locals>.wrapped)Ú	functoolsÚwrapsr\r*r-)rwrxr)rwrÚ_require_version_comparesr{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`rarbrcÚ	arbitrary)z~=z==z!=z<=z>=r@rdz===)rir5rcCsJd tt tt|ƒ¡ƒdd…¡}|d7}| d¡||ƒoH| d¡||ƒS)NÚ.éÿÿÿÿz.*z>=z==)ÚjoinÚlistÚ	itertoolsÚ	takewhileÚ_is_not_suffixÚ_version_splitrN)rrir5Ú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)	rrir5Ú
split_specÚsplit_prospectiveÚshortened_prospectiveÚpadded_specÚpadded_prospectiveÚspec_versionrrrrj­s


zSpecifier._compare_equalcCs| ||¡S)N)rj)rrir5rrrrkÕszSpecifier._compare_not_equalcCst|jƒt|ƒkS)N)rrŠ)rrir5rrrrlÙsz"Specifier._compare_less_than_equalcCst|jƒt|ƒkS)N)rrŠ)rrir5rrrrmász%Specifier._compare_greater_than_equal)riÚspec_strrcCs<t|ƒ}||ksdS|js8|jr8t|jƒt|jƒkr8dSdS)NFT)rrQÚbase_version)rrir”r5rrrrnë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”r5rrrros
zSpecifier._compare_greater_thancCst|ƒ ¡t|ƒ ¡kS)N)r*Úlower)rrir5rrrÚ_compare_arbitrary%szSpecifier._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‰rrQ)rr7r8rrrr"(s


zSpecifier.prereleasesN)r#rcCs
||_dS)N)r=)rr#rrrr"As)rrrrprqrrrsrtr3r2r{r\r*r-r‡rjrkrlrmrnrorr˜rYr"r/rrrrrv+s<]'z^([0-9]+)((?:a|b|c|rc)[0-9]+)$)r8rcCsDg}x:| d¡D],}t |¡}|r2| | ¡¡q| |¡qW|S)Nr~)ÚsplitÚ
_prefix_regexr9ÚextendÚgroupsrS)r8Úresultr$r>rrrr…Is
r…)Úsegmentrcst‡fdd„dDƒƒS)Nc3s|]}ˆ |¡VqdS)N)Ú
startswith)Ú.0r†)ržrrú	<genexpr>Vsz!_is_not_suffix.<locals>.<genexpr>)ÚdevÚaÚbÚrcÚpost)Úany)ržr)ržrr„Tsr„)Ú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>^óz_pad_version.<locals>.<lambda>cSs| ¡S)N)rª)r«rrrr¬_r­rr
Ú0)rSrr‚rƒr‹ÚinsertÚmaxÚchain)r¨r©Ú
left_splitÚright_splitrrrrŒZs
,,rŒc@s
eZdZd#eeeddœdd„Zedœdd„Zedœd	d
„Ze	dœdd„Z
edefdd
œdd„Ze
ed
œdd„Ze	dœdd„Zeedœdd„Zeeedœdd„ƒZejeddœdd„ƒZeedœdd„Zd$eeeedœdd„Zd%eeeeeed œd!d"„ZdS)&ÚSpecifierSetr4N)Ú
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>ssz)SpecifierSet.__init__.<locals>.<listcomp>ú,)	r™ÚsetÚaddrvrr]Ú	frozensetÚ_specsr=)rrµr"Úsplit_specifiersÚparsedÚ	specifierrrrr?ms

zSpecifierSet.__init__)rcCs.|jdk	rd|j›nd}dt|ƒ›|›dS)Nz, prereleases=r4z<SpecifierSet(z)>)r=r"r*)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)rGr¼)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.)rHr*r´rIr»r¼r=Ú
ValueError)rr r¿rrrÚ__and__”s





zSpecifierSet.__and__cCs6t|ttfƒrtt|ƒƒ}nt|tƒs*tS|j|jkS)N)rHr*r1r´rIr¼)rr rrrr!«s

zSpecifierSet.__eq__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$rrrrPÏ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>)rHrrrr"rQÚ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-rHrrrrQrS)rr&r"r5ÚfilteredrUr$rWrrrr'ïs*



zSpecifierSet.filter)r4N)N)N)rrrr*rr-r?rDrr+rrrÂr,r!rÃrr1rÅrYr"r/r[rPr%rrr'rrrrr´ls$
	
r´)+r(ryr‚rqrfÚtypingrrrrrrrr	r
rrÚutilsrr8rrrr\r*r[rr-rZrÁrÚABCMetarr1r]r{rvrrršr…r„rŒr´rrrrÚ<module>s443
=

*