Ejemplo n.º 1
0
    def test_all_module_summary(self):

        fLOG(__file__,
             self._testMethodName,
             OutputPrint=__name__ == "__main__")

        mod = ensae_fullset()
        mod.sort()
        df = pandas.DataFrame(_.as_dict(rst_link=True) for _ in mod)
        df = df[[
            "usage", "rst_link", "kind", "version", "installed", "license",
            "purpose", "classifier"
        ]]
        df.columns = [
            "usage", "name", "kind", "version", "installed", "license",
            "purpose", "classifier"
        ]
        lic = df[~df.license.isnull()]
        # fLOG(lic[["name","license"]])
        fLOG("license", lic.shape)
        nolic = df[df.license.isnull()]
        fLOG("no license", nolic.shape)
        fLOG(nolic[["name", "license"]])
        assert lic.shape[0] > 0

        rst = df2rst(df)
        # fLOG(rst)
        assert len(rst) > 1000
    def test_all_module_summary(self):

        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        mod = ensae_fullset()
        mod.sort()
        df = pandas.DataFrame(_.as_dict(rst_link=True) for _ in mod)
        df = df[["usage", "rst_link", "kind", "version", "installed",
                 "license", "purpose", "classifier"]]
        df.columns = ["usage", "name", "kind", "version", "installed",
                      "license", "purpose", "classifier"]
        lic = df[~df.license.isnull()]
        # fLOG(lic[["name","license"]])
        fLOG("license", lic.shape)
        nolic = df[df.license.isnull()]
        fLOG("no license", nolic.shape)
        fLOG(nolic[["name", "license"]])
        assert lic.shape[0] > 0

        rst = df2rst(df)
        # fLOG(rst)
        assert len(rst) > 1000
    def test_ensae_fullset(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        nb = self.walk_text(ensae_fullset())
        fLOG(self._testMethodName, nb)
    def test_all_pipy_version(self):
        fLOG(__file__,
             self._testMethodName,
             OutputPrint=__name__ == "__main__")

        if sys.version_info[0] == 2:
            return

        mods = ensae_fullset()
        self._pipy_version(mods)
    def test_all_pipy_version(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        if sys.version_info[0] == 2:
            return

        mods = ensae_fullset()
        self._pipy_version(mods)
Ejemplo n.º 6
0
    def test_diff2(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")
        res = ensae_fullset()
        count = {}
        for mod in res:
            count[mod.name] = 1

        assert "pyquickhelper" in count
        assert "code_beatrix" in count
    def test_pipy_version(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        if sys.version_info[0] == 2:
            return

        subset = {"cubehelix", "dataspyre", "ete3", "heapdict", "libpython", "natgrid", "onedrive-sdk-python",
                  "orange3", "orange3-associate", "orange3-network", "orange3-text",
                  "py-earth", "pyexecjs", "pymc3", "pyreact", "pythonqwt", "qtpy", "xgboost"}

        mods = ensae_fullset()
        mods = [_ for _ in mods if _.name in subset]
        self._pipy_version(mods, nbmax=8)
Ejemplo n.º 8
0
    def test_batch(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        temp = get_temp_folder(__file__, "temp_batch")
        list_modules = ensae_fullset()
        folders = dict(tools=temp, config=temp)
        op = create_win_batches(
            folders, selection={"r", "julia"}, fLOG=fLOG, module_list=list_modules)
        for _ in op:
            fLOG(_)
        assert len(op) > 0
        for a, b in op:
            assert os.path.exists(b)
Ejemplo n.º 9
0
    def test_batch(self):
        fLOG(__file__,
             self._testMethodName,
             OutputPrint=__name__ == "__main__")

        temp = get_temp_folder(__file__, "temp_batch")
        list_modules = ensae_fullset()
        folders = dict(tools=temp, config=temp)
        op = create_win_batches(folders,
                                selection={"r", "julia"},
                                fLOG=fLOG,
                                module_list=list_modules)
        for _ in op:
            fLOG(_)
        assert len(op) > 0
        for a, b in op:
            assert os.path.exists(b)
    def test_pipy_version(self):
        fLOG(__file__,
             self._testMethodName,
             OutputPrint=__name__ == "__main__")

        if sys.version_info[0] == 2:
            return

        subset = {
            "cubehelix", "dataspyre", "ete3", "heapdict", "libpython",
            "natgrid", "onedrive-sdk-python", "orange3", "orange3-associate",
            "orange3-network", "orange3-text", "py-earth", "pyexecjs", "pymc3",
            "pyreact", "pythonqwt", "qtpy"
        }

        mods = ensae_fullset()
        mods = [_ for _ in mods if _.name in subset]
        self._pipy_version(mods, nbmax=15)