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


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

Re: DPMT membership request

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Filip Pytloun <filip@pytloun.cz>
Newsgroups linux.debian.maint.python
Subject Re: DPMT membership request
Date Mon, 08 Aug 2016 13:10:02 +0200
Message-ID <s3QBs-A4-11@gated-at.bofh.it> (permalink)
References <s2sUx-2Lw-19@gated-at.bofh.it> <s3Q8q-ax-23@gated-at.bofh.it>
X-Original-To Thomas Goirand <zigo@debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Mon Aug 8 11:06:29 2016
Old-Return-Path <filip@pytloun.cz>
X-Amavis-Spam-Status No, score=-12.7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
X-Policyd-Weight DYN_NJABL=SKIP(0) NOT_IN_SBL_XBL_SPAMHAUS=-1.5 BL_NJABL=SKIP(-1.5) CL_IP_EQ_HELO_IP=-2 (check from: .pytloun. - helo: .mail-wm0-x231.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=pytloun.cz; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tYoQV2wNC/k5k2IBGq3+d8Ad9QsQdxnDFvzC5/ZKkDw=; b=ZhTILfv9o08jHKEuVR9Yym1vT2DsZ1Y5PxP6lDzzBCv2fC5XF8EqR7fDQK7OGrMPQJ mG08RXkXPC2vxLEoUicfm37ajndf/LxndJBp2HtvR2muYQCJd9oqyv6LUa1zWDxPPOwQ 153lZUf9FdH6foUjNvFLWQl34yxAc+tqXDZ+I=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=tYoQV2wNC/k5k2IBGq3+d8Ad9QsQdxnDFvzC5/ZKkDw=; b=Jy9d1SLhagPEF3aMrj8EZ9NoKWe7dWB/JwvJxTo7cZH8f1SAhYMieCzRf9fyYnC3SJ vjbHRSmWWgCi8pjaXHAdv0wGlKUeCeTjkoj/wStsyXFqipJi7Tx8s0Y+F1DmfTbG4Jj0 ofgc+Pp/un5iT9sG4aNLdybqg+6KZ8ZIkL10/vjK5CVfPQNDL+1PyxINClyHAN63jomf 7xv6AbTk1PcOuUa0A5GzlvcqscjFR7IDkV27wX8eWDKnaFsptlpEEQ4blQAz8YwYrU/d tQEMc9S4VvHWKbbMVFXg8dGXVvhAUiQ2cVOJwW94Ss12oSTka8ISAwHaUuE8lzr/v4WD yClw==
X-Gm-Message-State AEkoouucz0DiWBkteeFZPRrSBRx/bFH4x8hJXYhVHkwGiQ7hl9WaKZafuNwyBTO+7u+jvQ==
X-Received by 10.28.129.137 with SMTP id c131mr14578640wmd.79.1470654374192; Mon, 08 Aug 2016 04:06:14 -0700 (PDT)
MIME-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM"
Content-Disposition inline
User-Agent Mutt/1.5.23 (2014-03-12)
X-Mailing-List <debian-python@lists.debian.org> archive/latest/14057
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/20160808110609.GA32368@eru
Approved robomod@news.nic.it
Lines 144
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-python@lists.debian.org
X-Original-Date Mon, 8 Aug 2016 13:06:09 +0200
X-Original-Message-ID <20160808110609.GA32368@eru>
X-Original-References <20160804153524.GA10685@eru> <1917b35f-39db-9e3d-5c34-d7e7f6983b34@debian.org>
Xref csiph.com linux.debian.maint.python:8716

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hello Zigo,

thank you very much for your feedback!
More inline:

> 1/ debian/rules
> ===============
> 1.a. Simplifying dpkg-parsechangelog
> 
> You can replace your PKG = line with:
> 
> PKG = $(shell dpkg-parsechangelog -SSource)
> 
> The same way, you can simplify VER = using dpkg-parsechangelog -SVersion
> 
> Note that I'm not adding a space after the -S, as this would add an
> incompatibility with Ubuntu trusty (and there's no reason why you
> wouldn't care as this is a gratuitous fix for it).

I found this at https://wiki.debian.org/onlyjob/get-orig-source
Didn't know these shortcuts anyway, fixing.

> 
> 1.b. Adding unnecessary parenthesis
> 
> Why are you adding parenthesis to the command:
> PYTHONPATH=. help2man

Yes, that should not be needed, removing.

> 
> ?
> 
> 1.c. Using update-alternatives for /usr/bin
> 
> Instead of doing:
> 	rm -rf debian/python-aptly/usr/bin
> 	mkdir -p debian/aptly-publisher/usr
> 	mv debian/python3-aptly/usr/bin debian/aptly-publisher/usr/
> 
> you can have a look at using pkgos-alternative-bin from
> openstack-pkg-tools. This will generate postinst, prerm and postrm for
> you, so it handles /usr/bin with python2 or python3 alternatives.
> Optionally, you can fix py3 as higher priority in the postinst files if
> you prefer.

I was thinking about using alternatives vs forcing python3 (didn't know
pkgos-alternative-bin anyway or any reference package for this case) but
decided to force Python 3 as it should be Debian's default.

> 
> 2/ debian/control
> =================
> 2.a X-Python{3,}-Version headers
> 
> Please remove X-Python-Version: >= 2.6 and X-Python3-Version: >= 3.2
> stuff. Jessie has Python 2.6 and Python 3.4, so these are completely
> useless. It isn't even needed in oldstable!!!

Good, didn't know it's not needed now.

> 
> 2.b Build-Depends-Indep:
> 
> Since both all of the generated binaries are Arch: all, you can put some
> of the Build-Depends into Build-Depends-Indep: like this:
> 
> Build-Depends: debhelper (>= 9),
>                dh-python,
>                help2man,
>                python-all,
>                python-setuptools,
>                python3-all,
>                python3-setuptools
> Build-Depends-Indep: python-requests,
>                      python-yaml,
> 
> I was also very much surprised to not see python3-requests and
> python3-yaml in your build-depends. Aren't you running Py3 tests too?

Will fix this.

> 
> 2.c Short and long description
> 
> Your short description for python-aptly and python3-aptly shouldn't be
> that different. Also, upstream short desc is nicer. I'd suggest:
> 
> Package: python-aptly
> Description: REST API client  and tooling - Python 2.7
> [...]
> Package: python3-aptly
> Description: REST API client  and tooling - Python 3.x
> 
> 2.d Long desc for Package: aptly-publisher
> 
> The long desc start by an empty line. This isn't nice. Also, please
> consider longer long descriptions. 2 lines isn't enough, at least 5
> would be nicer. Upstream has a lot more info which you can pickup.

Fixed.

> 
> 3/ Final word
> 
> I hope this helps. Thanks for your contribution to Debian.

Helps a lot, thank you again!

> 
> Cheers,
> 
> Thomas Goirand (zigo)
> 

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


Thread

DPMT membership request Filip Pytloun <filip@pytloun.cz> - 2016-08-04 17:40 +0200
  Re: DPMT membership request Sandro Tosi <morph@debian.org> - 2016-08-04 19:20 +0200
    Re: DPMT membership request Filip Pytloun <filip@pytloun.cz> - 2016-08-05 12:10 +0200
  Re: DPMT membership request Thomas Goirand <zigo@debian.org> - 2016-08-08 12:40 +0200
    Re: DPMT membership request Filip Pytloun <filip@pytloun.cz> - 2016-08-08 13:10 +0200
      Re: DPMT membership request Thomas Goirand <zigo@debian.org> - 2016-08-08 22:00 +0200
  Re: DPMT membership request Piotr Ożarowski <piotr@debian.org> - 2016-08-08 21:40 +0200

csiph-web