Example #1
0
if "--verbose" in sys.argv:
    verbose()

if is_local() and "build_sphinx" not in sys.argv and \
        "unittests" not in sys.argv:
    pyquickhelper = import_pyquickhelper()
    r = pyquickhelper.process_standard_options_for_setup(
        sys.argv,
        __file__,
        project_var_name,
        unittest_modules=["pyquickhelper"],
        additional_notebook_path=[
            "pyquickhelper", "pyensae", "pyrsslocal", "pymyinstall"
        ],
        requirements=[
            "pyquickhelper", "pymmails", "pyensae", "pyrsslocal", "pymyinstall"
        ],
        additional_local_path=[
            "pyquickhelper", "pymmails", "pyensae", "pyrsslocal", "pymyinstall"
        ],
        blog_list=os.path.abspath(
            os.path.join("src", project_var_name,
                         package_data[project_var_name][0])))

    if "build_script" in sys.argv and sys.platform.startswith("win"):
        pres = """
            :presentation:
            %pythonexe% -u setup.py build_pres
            if %errorlevel% neq 0 exit /b %errorlevel%
            %pythonexe% -u setup.py build_pres_2A
Example #2
0
##############

if os.path.exists(readme):
    with open(readme, "r", encoding='utf-8-sig') as f:
        long_description = f.read()
else:
    long_description = ""

if "--verbose" in sys.argv:
    verbose()

if is_local():
    pyquickhelper = import_pyquickhelper()
    r = pyquickhelper.process_standard_options_for_setup(
        sys.argv, __file__, project_var_name,
        unittest_modules=["pyquickhelper"],
        requirements=["pyquickhelper"],
        additional_notebook_path=["pyquickhelper"],
        coverage_options=dict(omit=["*Parser.py", "*Listener.py", "*Lexer.py"]))
else:
    r = False

if len(sys.argv) == 1 and "--help" in sys.argv:
    pyquickhelper = import_pyquickhelper()
    pyquickhelper.process_standard_options_for_setup_help()

if not r:
    setup(
        name=project_var_name,
        version='%s%s' % (sversion, subversion),
        author='Xavier Dupré',
        author_email='xavier.dupre AT gmail.com',
Example #3
0
if os.path.exists(readme):
    if sys.version_info[0] == 2:
        from codecs import open
    with open(readme, "r", encoding='utf-8-sig') as f:
        long_description = f.read()
else:
    long_description = ""

if "--verbose" in sys.argv:
    verbose()

if is_local():
    pyquickhelper = import_pyquickhelper()
    r = pyquickhelper.process_standard_options_for_setup(
        sys.argv, __file__, project_var_name, port=8067,
        requirements=requirements, blog_list=pyquickhelper.__blog__)
else:
    r = False

if len(sys.argv) == 1 and "--help" in sys.argv:
    pyquickhelper = import_pyquickhelper()
    pyquickhelper.process_standard_options_for_setup_help()

if not r:
    setup(
        name=project_var_name,
        version='%s%s' % (sversion, subversion),
        author='Xavier Dupré',
        author_email='xavier.dupre AT gmail.com',
        url="http://www.xavierdupre.fr/app/pyquickhelper/helpsphinx/index.html",
Example #4
0
if os.path.exists(readme):
    with open(readme, "r", encoding='utf-8-sig') as f:
        long_description = f.read()
else:
    long_description = ""

if "--verbose" in sys.argv:
    verbose()

if is_local() and "build_sphinx" not in sys.argv and \
        "unittests" not in sys.argv:
    pyquickhelper = import_pyquickhelper()
    r = pyquickhelper.process_standard_options_for_setup(
        sys.argv, __file__, project_var_name,
        unittest_modules=["pyquickhelper"],
        additional_notebook_path=["pyquickhelper",
                                  "pyensae", "pyrsslocal", "pymyinstall"],
        requirements=["pyquickhelper", "pymmails",
                      "pyensae", "pyrsslocal", "pymyinstall"],
        blog_list=os.path.abspath(os.path.join("src", project_var_name, package_data[project_var_name][0])))

    if "build_script" in sys.argv and sys.platform.startswith("win"):
        pres = """
            :presentation:
            %pythonexe% -u setup.py build_pres
            if %errorlevel% neq 0 exit /b %errorlevel%
            %pythonexe% -u setup.py build_pres_2A
            if %errorlevel% neq 0 exit /b %errorlevel%
            %pythonexe% -u setup.py build_pres_3A
            if %errorlevel% neq 0 exit /b %errorlevel%
            %pythonexe% -u setup.py build_pres_1Ap
            if %errorlevel% neq 0 exit /b %errorlevel%