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:
ó
øðuYc@s8ddlZddlZddlZddlZddlZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZmZddlmZmZmZmZmZmZmZmZddlmZdd	lmZd
efd„ƒYZdefd
„ƒYZ defd„ƒYZ!dS(iÿÿÿÿN(tDistutilsErrortDistutilsOptionError(tlog(t
TestLoader(tsix(tmaptfilter(tresource_listdirtresource_existstnormalize_pathtworking_sett_namespace_packagestadd_activation_listenertrequiret
EntryPoint(tCommand(t
unittest_maintScanningLoadercBseZdd„ZRS(cCsg}|jtj||ƒƒt|dƒrD|j|jƒƒnt|dƒréx“t|jdƒD]|}|jdƒrŸ|dkrŸ|jd|d }n-t|j|dƒrf|jd|}nqf|j|j	|ƒƒqfWnt
|ƒd	kr|j|ƒS|d
SdS(sReturn a suite of all tests cases contained in the given module

        If the module is a package, load tests from all the modules in it.
        If the module has an ``additional_tests`` function, call it and add
        the return value to the tests.
        tadditional_testst__path__ts.pys__init__.pyt.iýÿÿÿs/__init__.pyiiN(tappendRtloadTestsFromModulethasattrRRt__name__tendswithRtloadTestsFromNametlent
suiteClass(tselftmoduletpatterntteststfilet	submodule((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyRs
N(Rt
__module__tNoneR(((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyRstNonDataPropertycBseZd„Zdd„ZRS(cCs
||_dS(N(tfget(RR'((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyt__init__5scCs|dkr|S|j|ƒS(N(R%R'(Rtobjtobjtype((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyt__get__8sN(RR$R(R%R+(((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyR&4s	ttestcBsÂeZdZdZdddgZd„Zd„Zed
„ƒZd„Z	d„Z
ejgd„ƒZ
eejd„ƒƒZed„ƒZd„Zd„Zed„ƒZed„ƒZRS(s.Command to run unit tests after in-place builds#run unit tests after in-place buildstest-module=tms$Run 'test_suite' in specified modulestest-suite=tss9Run single test, case or suite (e.g. 'module.test_suite')stest-runner=trsTest runner to usecCs(d|_d|_d|_d|_dS(N(R%t
test_suitettest_modulettest_loaderttest_runner(R((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pytinitialize_optionsJs			cCsÝ|jr'|jr'd}t|ƒ‚n|jdkrj|jdkrW|jj|_qj|jd|_n|jdkr”t|jddƒ|_n|jdkr¯d|_n|jdkrÙt|jddƒ|_ndS(Ns1You may specify a module or a suite, but not boths.test_suiteR2s&setuptools.command.test:ScanningLoaderR3(R0R1RR%tdistributionR2tgetattrR3(Rtmsg((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pytfinalize_optionsPscCst|jƒƒS(N(tlistt
_test_args(R((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyt	test_argscsccs)|jrdVn|jr%|jVndS(Ns	--verbose(tverboseR0(R((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyR:gs		cCs|jƒ|ƒWdQXdS(sI
        Backward compatibility for project_on_sys_path context.
        N(tproject_on_sys_path(Rtfunc((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pytwith_project_on_sys_pathms
c	cs¨tjot|jdtƒ}|r¥|jdddƒ|jdƒ|jdƒ}t|j	ƒ}|jdd|ƒ|jdƒ|jdddƒ|jdƒn-|jdƒ|jdddƒ|jdƒ|jdƒ}t
j}t
jj
ƒ}zut|jƒ}t
jjd|ƒtjƒtd	„ƒtd
|j|jfƒ|j|gƒ
dVWdQXWd|t
j(t
jjƒt
jj|ƒtjƒXdS(Ntuse_2to3tbuild_pytinplaceitegg_infotegg_baset	build_exticSs
|jƒS(N(tactivate(tdist((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyt<lambda>˜ss%s==%s(RtPY3R6R5tFalsetreinitialize_commandtrun_commandtget_finalized_commandR	t	build_libtsystpathtmodulestcopyRDtinsertR
R(RR
tegg_nametegg_versiontpaths_on_pythonpathtcleartupdate(	Rt
include_distst	with_2to3tbpy_cmdt
build_pathtei_cmdtold_pathtold_modulestproject_path((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyR=ts8








ccsÂtƒ}tjjd|ƒ}tjjddƒ}zXtjj|ƒ}td||gƒ}tjj|ƒ}|r…|tjd<ndVWd||kr°tjjddƒn
|tjd<XdS(së
        Add the indicated paths to the head of the PYTHONPATH environment
        variable so that subprocesses will also see the packages at
        these paths.

        Do this in a context that restores the value on exit.
        t
PYTHONPATHRN(	tobjecttostenvirontgettpathseptjoinRR%tpop(tpathstnothingtorig_pythonpathtcurrent_pythonpathtprefixtto_jointnew_path((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyRV¢s
		cCs@|j|jpgƒ}|j|jp*gƒ}tj||ƒS(s†
        Install the requirements indicated by self.distribution and
        return an iterable of the dists that were built.
        (tfetch_build_eggstinstall_requirest
tests_requiret	itertoolstchain(RGtir_dttr_d((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyt
install_dists¼sc	Cs¢|j|jƒ}dj|jƒ}|jrB|jd|ƒdS|jd|ƒttjdƒ|ƒ}|j	|ƒ"|j
ƒ|jƒWdQXWdQXdS(Nt sskipping "%s" (dry run)srunning "%s"tlocation(RwR5Rgt_argvtdry_runtannounceRtoperatort
attrgetterRVR=t	run_tests(Rtinstalled_diststcmdRi((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pytrunÆs	
c	CsatjrÁt|jdtƒrÁ|jjdƒd}|tkrÁg}|tj	kre|j
|ƒn|d7}x0tj	D]%}|j|ƒry|j
|ƒqyqyWtt
tj	j|ƒƒqÁntjd
krÖin
itd6}tdd|jd|j|jƒd|j|jƒ|}|jjƒs]d	|j}|j|tjƒt|ƒ‚ndS(NR@Riiitexitt
testLoadert
testRunnersTest failed: %s(ii(RRIR6R5RJR0tsplitRRORQRt
startswithR9Rt__delitem__tversion_infoRR%Rzt_resolve_as_epR2R3tresultt
wasSuccessfulR|RtERRORR(RRtdel_modulestnamet
exit_kwargR,R7((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyRÕs*
"	
cCsdg|jS(Ntunittest(R;(R((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyRzñscCs0|dkrdStjd|ƒ}|jƒƒS(su
        Load the indicated attribute value, called, as a as if it were
        specified as an entry point.
        Nsx=(R%Rtparsetresolve(tvaltparsed((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyRŠõs(stest-module=R-s$Run 'test_suite' in specified module(stest-suite=R.s9Run single test, case or suite (e.g. 'module.test_suite')(stest-runner=R/sTest runner to use(RR$t__doc__tdescriptiontuser_optionsR4R8R&R;R:R?t
contextlibtcontextmanagerR=tstaticmethodRVRwR‚RtpropertyRzRŠ(((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyR,>s(					-
		("RcR}ROR™Rstdistutils.errorsRRt	distutilsRR‘Rtsetuptools.externRtsetuptools.extern.six.movesRRt
pkg_resourcesRRR	R
RRR
Rt
setuptoolsRtsetuptools.py31compatRRRbR&R,(((s;/tmp/pip-build-NDUwcL/setuptools/setuptools/command/test.pyt<module>s: