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


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

Re: Bug#834809: dh-python: requires.txt versions ignored when writing control

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Anthony Dempsey <adempsey@Brocade.com>
Newsgroups linux.debian.maint.python, linux.debian.bugs.dist
Subject Re: Bug#834809: dh-python: requires.txt versions ignored when writing control
Date Fri, 19 Aug 2016 12:20:01 +0200
Message-ID <s7OUq-4gK-9@gated-at.bofh.it> (permalink)
References <s7Nvj-3hy-19@gated-at.bofh.it> <s7O82-3Ld-9@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Aug 19 10:18:09 2016
Old-Return-Path <adempsey@Brocade.com>
X-Amavis-Spam-Status No, score=0 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, THREADTOPIC=2] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -6.16
X-Greylist delayed 1911 seconds by postgrey-1.35 at bendel; Fri, 19 Aug 2016 10:02:11 UTC
Thread-Topic Bug#834809: dh-python: requires.txt versions ignored when writing control
Thread-Index AQHR+fpibs9c9RBveU2GWstFwjZZ36BP4vyA
Accept-Language en-GB, en-US
Content-Language en-US
X-Ms-Exchange-Transport-Fromentityheader Hosted
X-Originating-IP [10.252.50.6]
Content-Type text/plain; charset="utf-8"
Content-ID <F78EDDF6B05C3B448DA1D3F799EFE793@brocade.local>
Content-Transfer-Encoding base64
MIME-Version 1.0
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2016-08-19_03:,, signatures=0
X-Proofpoint-Spam-Details rule=notspam policy=default score=0 priorityscore=1501 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 impostorscore=0 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1608190118
X-Mailing-List <debian-python@lists.debian.org> archive/latest/14133
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/1471598991.3582.8.camel@brocade.com
Approved robomod@news.nic.it
Lines 28
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc "834809@bugs.debian.org" <834809@bugs.debian.org>
X-Original-Date Fri, 19 Aug 2016 09:30:05 +0000
X-Original-Message-ID <1471598991.3582.8.camel@brocade.com>
X-Original-References <20160819083209.7531.76100.reportbug@BRA-98N4P12.vyatta.com> <20160819091629.e5dgq7xncpjyujlr@sar0.p1otr.com>
Xref csiph.com linux.debian.maint.python:8791 linux.debian.bugs.dist:760966

Cross-posted to 2 groups.

Show key headers only | View raw


Ok, thank you for the explanation and the quick response :).

Cheers,
Anthony

On Fri, 2016-08-19 at 11:16 +0200, Piotr Ożarowski wrote:
> Control: tags -1 wontfix
> 
> > I've been using dh-python to build a package and I've had to add a version
> > dependency in my setup.py (requests >= 2.4.2) but this isn't being picked up
> > and added to the debian/control.
> 
> dh_python{2,3} ignores version on purpose. It does more than that, it
> removes recognized dependency from requires.txt so the version is
> ignored later by pkg_resources as well. I'm sure Python guys hate me for that.
> 
> There was PEP386, there is PEP440 and plenty of other related PEPs or
> ideas on how to handle versions. The other thing is to put latest or
> unreleased version into install_requires (AKA requires.txt AKA Requires header)
> just because that's the version upstream worked with during development.
> 
> Until I'm convinced that they finally figured that out and the exception
> is when an upstream project doesn't follow the standard rather than when
> it actually follows it - Debian maintainer will have to confirm that
> upstream is sane WRT versioning to get it copied/translated into Debian
> dependency (and to do that: pydist file with "PEP386" flag has to be
> installed or maintainers have to add versioned build dependency - which
> is my preferred solution as in most cases that version is required for
> tests during build anyway)
> 
> 
> PS I heard some rumors that PyPI will enforce one of the standards, but
>    I don't know the status of that

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


Thread

Bug#834809: dh-python: requires.txt versions ignored when writing control Piotr Ożarowski <piotr@debian.org> - 2016-08-19 11:30 +0200
  Re: Bug#834809: dh-python: requires.txt versions ignored when writing  control Anthony Dempsey <adempsey@Brocade.com> - 2016-08-19 12:20 +0200

csiph-web