This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add function create_folder_setup, documentation, API
- Loading branch information
Showing
11 changed files
with
390 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Distribution | ||
============ | ||
|
||
.. autosignature:: pymyinstall.win_installer.win_setup_main.win_python_setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Fix | ||
=== | ||
|
||
.. autosignature:: pymyinstall.fix.releases.fix_scipy10_for_statsmodels08 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
API | ||
=== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
fix | ||
install | ||
setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
Installation | ||
============ | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Modules | ||
+++++++ | ||
|
||
.. autosignature:: pymyinstall.installhelper.install_cmd_helper.add_shortcut_to_desktop_for_module | ||
|
||
.. autosignature:: pymyinstall.installhelper.install_cmd_helper.create_virtual_env | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install_version.get_module_dependencies | ||
|
||
.. autosignature:: pymyinstall.installhelper.from .status_helper.get_installed_modules | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install_version.get_module_metadata | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install_version.get_module_version | ||
|
||
.. autosignature:: pymyinstall.installhelper.install_cmd_helper.get_pip_program | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install_version.get_pypi_version | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install_version.get_wheel_version | ||
|
||
.. autosignature:: pymyinstall.installhelper.install_cmd_helper.has_pip | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install_version.is_installed | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install_version.numeric_version | ||
|
||
.. autosignature:: pymyinstall.installhelper.install_cmd_helper.run_cmd | ||
|
||
.. autosignature:: pymyinstall.installhelper.install_venv_helper.run_cmd_path | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_dependencies.missing_dependencies | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install.ModuleInstall | ||
|
||
.. autosignature:: pymyinstall.installhelper.install_cmd_helper.run_venv_script | ||
|
||
.. autosignature:: pymyinstall.installhelper.install_cmd_helper.update_pip | ||
|
||
.. autosignature:: pymyinstall.installhelper.install_cmd_helper.venv_install | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install_version.version_consensus | ||
|
||
.. autosignature:: pymyinstall.installhelper.module_install_version.compare_version | ||
|
||
Install | ||
+++++++ | ||
|
||
.. autosignature:: pymyinstall.packaged.packaged_config.classifiers2string | ||
|
||
.. autosignature:: pymyinstall.packaged.automate_install.download_module | ||
|
||
.. autosignature:: pymyinstall.packaged.automate_install.find_module_install | ||
|
||
.. autosignature:: pymyinstall.packaged.packaged_config.get_package_set | ||
|
||
.. autosignature:: pymyinstall.packaged.automate_install.install_module | ||
|
||
.. autosignature:: pymyinstall.packaged.automate_install.install_module_deps | ||
|
||
.. autosignature:: pymyinstall.packaged.automate_install.install_all | ||
|
||
.. autosignature:: pymyinstall.packaged.config_helper.is_64bit | ||
|
||
.. autosignature:: pymyinstall.packaged.packaged_config.name_sets_dataframe | ||
|
||
.. autosignature:: pymyinstall.packaged.automate_install.update_all | ||
|
||
.. autosignature:: pymyinstall.packaged.automate_install.update_module | ||
|
||
Tools | ||
+++++ | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom.download_page | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom.download_page | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_7z.install_7z | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_chromedriver.install_chromedriver | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_git.install_git | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_graphviz.install_graphviz | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_inkscape.install_inkscape | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_javajdk.install_javajdk | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_jenkins.install_jenkins | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_julia.install_julia | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_miktex.install_miktex | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_mingw.install_mingw | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_operadriver.install_operadriver | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_pandoc.install_pandoc | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_putty.install_putty | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_python.install_python | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_R.install_R | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_scite.install_scite | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_sqlitespy.install_sqlitespy | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_sbt.install_scala_sbt | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom_scite.modify_scite_properties | ||
|
||
.. autosignature:: pymyinstall.installcustom.install_custom.where_in_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
@brief test log(time=25s) | ||
""" | ||
|
||
import sys | ||
import os | ||
import unittest | ||
|
||
try: | ||
import src | ||
except ImportError: | ||
path = os.path.normpath( | ||
os.path.abspath( | ||
os.path.join( | ||
os.path.split(__file__)[0], | ||
"..", | ||
".."))) | ||
if path not in sys.path: | ||
sys.path.append(path) | ||
import src | ||
|
||
try: | ||
import pyquickhelper as skip_ | ||
except ImportError: | ||
path = os.path.normpath( | ||
os.path.abspath( | ||
os.path.join( | ||
os.path.split(__file__)[0], | ||
"..", | ||
"..", | ||
"..", | ||
"pyquickhelper", | ||
"src"))) | ||
if path not in sys.path: | ||
sys.path.append(path) | ||
if "PYQUICKHELPER" in os.environ and len(os.environ["PYQUICKHELPER"]) > 0: | ||
sys.path.append(os.environ["PYQUICKHELPER"]) | ||
import pyquickhelper as skip_ | ||
|
||
|
||
from src.pymyinstall.setuphelper import create_folder_setup | ||
from pyquickhelper.loghelper import fLOG | ||
from pyquickhelper.pycode import get_temp_folder, ExtTestCase | ||
|
||
|
||
class TestSetupFolder(ExtTestCase): | ||
|
||
def test_setup_folder(self): | ||
fLOG( | ||
__file__, | ||
self._testMethodName, | ||
OutputPrint=__name__ == "__main__") | ||
|
||
temp = get_temp_folder(__file__, "temp_setup_folder", clean=False) | ||
|
||
import pandas | ||
self.assertTrue(pandas is not None) | ||
st = create_folder_setup('pandas', fLOG=fLOG, output_path=temp) | ||
self.assertEqual(len(st), 1) | ||
self.assertExists(st[0]) | ||
exp = os.path.join(temp, 'dist') | ||
found = os.listdir(exp) | ||
self.assertEqual(len(found), 1) | ||
self.assertIn(".whl", found[0]) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.