]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
setup.py: dedup the requires 1749/head
authorKefu Chai <tchaikov@gmail.com>
Sun, 24 Apr 2022 01:29:24 +0000 (09:29 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 24 Apr 2022 14:16:57 +0000 (14:16 +0000)
commit903c61f268b9c02bc1ea2744d801caff9b7554f0
tree9fbd06ef4fd20350584a3560157e24eb5cbdcc3f
parent9031136fa1a859ff6dd6a44d92353536e5f32bb1
setup.py: dedup the requires

* move the dependencies from options.install_requires to
  options.extras_require if those dependencies are only used by tests.
  as per
  https://packaging.python.org/en/latest/discussions/install-requires-vs-requirements/#id5
  > install_requires is a setuptools setup.py keyword that should be
  > used to specify what a project minimally needs to run correctly.
* remove the duplicated dependencies from options.extras_require
  if they are also listed in options.install_requires.
* update requirements.txt using
  "pip-compile --extra=test pyproject.toml", so requirements.txt
  can include the dependencies required by tests.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
requirements.txt
setup.cfg