Ejemplo n.º 1
0
    def test_pip(self):
        install_required = pip_translator.get_install_required(self.dep_libs)
        print(install_required)
        self.assertTrue(install_required == [])

        test_required = pip_translator.get_test_required(self.dep_libs)
        print(test_required)
        self.assertTrue(test_required == [
            'coverage==5.3', 'pipdeptree==1.0.0', 'coverage-badge',
            'rich @ github+https://github.com/willmcgugan/rich.git'
        ])

        python_requires = pip_translator.get_python_requires(self.dep_libs)
        print(python_requires)
        self.assertTrue(python_requires == '>=3.5')
Ejemplo n.º 2
0
    Dependency(name='pipdeptree', scope=DEV, installer=PIP),
    Dependency(name='coverage-badge'),  # default to DEV and PIP automatically.
    Dependency(name='twine'),  # uploading to pypi
    Dependency(name='conda-build', installer=CONDA),
    Dependency(name='conda-verify', installer=CONDA),
    Dependency(name='anaconda-client', installer=CONDA),
]

# ##############################################################################
# No need change below, unless you want to customize
# ##############################################################################

# used by setup.py, hide details - how we compute these values.
install_required = pip_translator.get_install_required(dependent_libs)

test_required = pip_translator.get_test_required(dependent_libs)

python_required = pip_translator.get_python_requires(dependent_libs)


def app_name():
    return __app_name


def app_version():
    return __app_version


if __name__ == "__main__":
    dep_manager.main(sys.argv, dependent_libs)