How to install optional python dependencies in setup.py: Difference between revisions

From razwiki
Jump to navigation Jump to search
(Created page with "For a setup.py that has a section: extras_require = { # Test dependencies 'tests': [ 'bandit>=1.5.0', 'flake8>=3.2.1', 'pytest>=6.1.0',...")
 
No edit summary
 
Line 14: Line 14:
}
}


Do, for example:
Do


pip install .[prospector]
pip install .[prospector]

Latest revision as of 17:19, 25 February 2022

For a setup.py that has a section:

extras_require = {
    # Test dependencies
    'tests': [
        'bandit>=1.5.0',
        'flake8>=3.2.1',
        'pytest>=6.1.0',
    ],
    'prospector': [
        'prospector[with_everything]>=0.12.4',
        'pytest>=6.1.0',
    ],
}

Do, for example:

pip install .[prospector]