Пример #1
0
def integrate():
    # From the newly-included 'daf_fruit_dist' module, import the
    # standard CI run.
    from daf_fruit_dist.ci_utils import standard_sdist_run

    # Test this package, then create a source distribution of it.
    standard_sdist_run()
Пример #2
0
import logging
from daf_fruit_dist.ci_utils import standard_sdist_run

if __name__ == '__main__':
    logging.basicConfig(level=logging.DEBUG,
                        format='%(asctime)s - %(levelname)s - %(message)s')

    standard_sdist_run(submodule_order=('daf_apple', 'daf_citrus'))
Пример #3
0
import logging
from daf_fruit_dist.ci_utils import standard_sdist_run

if __name__ == '__main__':
    logging.basicConfig(
        level=logging.DEBUG,
        format='%(asctime)s - %(levelname)s - %(message)s')

    standard_sdist_run()
Пример #4
0
    return abs_path


def _cwd_as(path):
    class Context(object):
        def __enter__(self):
            self.old_cwd = os.getcwd()
            os.chdir(path)

        def __exit__(self, exc_type, exc_val, exc_tb):
            os.chdir(self.old_cwd)

    return Context()


def _run_integration_tests():
    install_dev()

    test_dir = _path_from_here('..', 'pypi_redirect_integration', 'tests')

    with _cwd_as(test_dir):
        subprocess.check_call(['nosetests'])


if __name__ == '__main__':
    logging.basicConfig(
        level=logging.DEBUG,
        format='%(asctime)s - %(levelname)s - %(message)s')

    standard_sdist_run(integration_tests_fn=_run_integration_tests)
Пример #5
0
    abs_path = os.path.abspath(rel_path)
    return abs_path


def _cwd_as(path):
    class Context(object):
        def __enter__(self):
            self.old_cwd = os.getcwd()
            os.chdir(path)

        def __exit__(self, exc_type, exc_val, exc_tb):
            os.chdir(self.old_cwd)

    return Context()


def _run_integration_tests():
    install_dev()

    test_dir = _path_from_here('..', 'pypi_redirect_integration', 'tests')

    with _cwd_as(test_dir):
        subprocess.check_call(['nosetests'])


if __name__ == '__main__':
    logging.basicConfig(level=logging.DEBUG,
                        format='%(asctime)s - %(levelname)s - %(message)s')

    standard_sdist_run(integration_tests_fn=_run_integration_tests)
Пример #6
0
import logging
from daf_fruit_dist.ci_utils import standard_sdist_run

if __name__ == "__main__":
    logging.basicConfig(level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(message)s")

    standard_sdist_run(submodule_order=("daf_apple", "daf_citrus"))
Пример #7
0
def integrate():
    standard_sdist_run(submodule_order=(
        'daf_fruit_dist',
        'daf_fruit_seed',
        'daf_fruit_orchard'))