Command 'pip install .[<keyword>]' does not recognize the keywords dev, test, tests or similar
Summary
When executing 'pip install .[dev]' in 'caosdb-pylib', only the dependencies from install_requires from setup.py appear to get installed as the keywords 'dev'/'test'/'tests' are not recognized.
pip outputs: 'WARNING: linkahead 0.15.2.dev0+ed328ec7 does not provide the extra 'dev''.
Expected Behavior
When executing 'pip install .[dev]' or a similar keyword in 'caosdb-pylib', the dependencies from tests_require should also be installed.
Actual Behavior
With setup_package() containing
install_requires = ['lxml>=4.6.3', "requests[socks]>=2.26", "python-dateutil>=2.8.2",
'PyYAML>=5.4.1', 'future', ],
extras_require = {'keyring': ['keyring>=13.0.0'],
'jsonschema': ['jsonschema>=4.4.0']},
setup_requires = ["pytest-runner>=2.0, <3dev"],
tests_require = ["pytest", "pytest-cov", "coverage>=4.4.2", "jsonschema>=4.4.0"],
pip installs
lxml>=4.6.3, requests[socks]>=2.26", python-dateutil>=2.8.2, PyYAML>=5.4.1, future,
six>=1.5, charset-normalizer<4>=2, idna<4>=2.5, urllib3<3>=1.21.1, certifi>=2017.4.17, PySocks!=1.5.7>=1.5.6
If added to install_requires, other packages are also installed. Only working keywords seem to be 'jsonschema' and 'keyring' which are defined in extras_require.
Steps to Reproduce the Problem
- Open a terminal in the caosdb-pylib folder
- Run 'pip install .[]' with being on of the above described
- Check which packages were installed
Suggestion
Adding another key to the extras_require dict with the necessary dependencies might provide the needed functionality.