Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #11841

2Removal: handling circular dependencies / dropping tests before the binary?

From "Rebecca N. Palmer" <rebecca_palmer@zoho.com>
Newsgroups linux.debian.maint.python
Subject 2Removal: handling circular dependencies / dropping tests before the binary?
Date 2019-09-21 11:40 +0200
Message-ID <yIK1Y-7N9-19@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Some Python 2 packages have circular (build-)dependencies, making it 
impossible to remove them one at a time without breaking anything.

One such cycle is seaborn, sphinx-gallery and matplotlib2 (#940873); I 
have not attempted to systematically check for them.

How should these be dealt with?

--- Cut the cycle by removing one of the dependencies.

This may mean skipping (some of) the tests, as Python build dependencies 
are often actually test dependencies.  There might be cases where it 
isn't reasonably possible at all.

(Related question: if a package with a large test suite is being 
uploaded anyway, should we consider removing the Python 2 tests just to 
save buildd/debci resources?)

--- Prepare all the required packages in salsa / experimental, then 
remove the entire cycle at once.

This is easy if the cycle is small and otherwise ready to remove, but if 
one member has a big dependency tree, the whole cycle might have to stay 
for some time.

(Related question: does it make sense to create no-Python2 salsa 
branches of one's regular modules (particularly any that need nontrivial 
changes) and mark them "please upload when the reverse dependencies have 
been cleared", even if they aren't part of a cycle?)

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

2Removal: handling circular dependencies / dropping tests before the  binary? "Rebecca N. Palmer" <rebecca_palmer@zoho.com> - 2019-09-21 11:40 +0200
  Re: 2Removal: handling circular dependencies / dropping tests before  the binary? Andrey Rahmatullin <wrar@debian.org> - 2019-09-21 12:00 +0200
    Re: 2Removal: handling circular dependencies / dropping tests before  the binary? Sandro Tosi <morph@debian.org> - 2019-09-21 23:10 +0200
  Re: 2Removal: handling circular dependencies "Rebecca N. Palmer" <rebecca_palmer@zoho.com> - 2019-10-24 00:40 +0200
    Re: 2Removal: handling circular dependencies Simon McVittie <smcv@debian.org> - 2019-10-24 10:00 +0200
      Re: 2Removal: handling circular dependencies Andrey Rahmatullin <wrar@debian.org> - 2019-10-24 10:10 +0200
        Re: 2Removal: handling circular dependencies "Rebecca N. Palmer" <rebecca_palmer@zoho.com> - 2019-10-24 19:50 +0200
    Re: 2Removal: handling circular dependencies Sandro Tosi <morph@debian.org> - 2020-03-16 07:30 +0100
      Re: 2Removal: handling circular dependencies "Rebecca N. Palmer" <rebecca_palmer@zoho.com> - 2020-03-16 08:50 +0100

csiph-web