Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8791
| 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 | 2016-08-19 12:20 +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> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
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
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