Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.cfg: add nose to "options.extras_require/test" #1749

Merged
merged 3 commits into from
Apr 25, 2022

Conversation

tchaikov
Copy link
Contributor

some tests are using nose python package. since teuthology is
responsible for preparing the deps to run the tests. let's add
nose back to setup.cfg.

the "nose" package was included in requirements.txt before
21372fd. in this change, it,
it is brought back.

Signed-off-by: Kefu Chai tchaikov@gmail.com

some tests are using nose python package. since teuthology is
responsible for preparing the deps to run the tests. let's add
nose back to setup.cfg.

the "nose" package was included in requirements.txt before
21372fd. in this change, it,
it is brought back.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
@idryomov
Copy link
Contributor

I was going to say that we first saw nose import failures earlier than two days ago, but it looks like the initial attempt was merged over a week ago in #1737 and later reverted in #1740 so I guess that explains it.

setup.cfg Show resolved Hide resolved
since we don't need to be compatible with python2, let's stop using
the six package.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
@tchaikov tchaikov force-pushed the setup-add-nose branch 2 times, most recently from 204293f to 6652f88 Compare April 24, 2022 07:19
* 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>
Copy link
Member

@zmc zmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix @tchaikov! And apologies for the confused cause by the regression @cbodley. I am not sure how nose was dropped in 21372fd.

This does make me wonder if it would be worth giving tasks a way to specify their own requirements...

@zmc zmc merged commit 788cfdd into ceph:master Apr 25, 2022
@tchaikov tchaikov deleted the setup-add-nose branch April 26, 2022 01:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants