[Bug 1019700] Re: Declares that it depends on testresources at the python level, but the package doesn't depend on it

S Prasanth 1019700 at bugs.launchpad.net
Thu Sep 10 22:26:40 UTC 2020


Still persists in the python3-launchpadlib 1.10.13 package in Ubuntu
20.04.

Not sure if the right solution would be to
A) move `testresources` from `install_requires` to `tests_require` in the setup.py file (https://bazaar.launchpad.net/~lazr-developers/launchpadlib/trunk/view/head:/setup.py), or
B) make `python3-testresources` a dependency of the `python3-launchpadlib` package.

Option (A) would make more sense to me. Cheers!

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-launchpadlib in Ubuntu.
https://bugs.launchpad.net/bugs/1019700

Title:
  Declares that it depends on testresources at the python level, but the
  package doesn't depend on it

Status in launchpadlib :
  Triaged
Status in python-launchpadlib package in Ubuntu:
  Confirmed
Status in python-launchpadlib source package in Precise:
  Confirmed

Bug description:
  launchpadlib has testresources listed in its requires.txt, though it
  is only a test dependency.

  The package in Ubuntu doesn't depend on python-testresources.

  If you try and use pkg_resources in any project that depends on launchpadlib you
  get errors if python-testresources isn't installed.

  The packaging could add the dependency, but it's only needed to run launchpadlib's
  test suite.

  launchpadlib could move testresources to be a test dependency (either test_requires
  or whatever the spelling it, or an extra_requires for [test] or however that is done.)

  In the meantime the workaround is to install python-testresources if you need
  to use pkg_resources in a project that depends on launchpadlib.

  Thanks,

  James

To manage notifications about this bug go to:
https://bugs.launchpad.net/launchpadlib/+bug/1019700/+subscriptions



More information about the foundations-bugs mailing list