Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8715
| Path | csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Thomas Goirand <zigo@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: DPMT membership request |
| Date | Mon, 08 Aug 2016 12:40:02 +0200 |
| Message-ID | <s3Q8q-ax-23@gated-at.bofh.it> (permalink) |
| References | <s2sUx-2Lw-19@gated-at.bofh.it> |
| X-Original-To | Filip Pytloun <filip@pytloun.cz>, debian-python@lists.debian.org |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Mon Aug 8 10:37:08 2016 |
| Old-Return-Path | <zigo@debian.org> |
| X-Amavis-Spam-Status | No, score=-6.9 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no |
| X-Policyd-Weight | using cached result; rate: -5 |
| X-Enigmail-Draft-Status | N1110 |
| Organization | Debian |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/14056 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/1917b35f-39db-9e3d-5c34-d7e7f6983b34@debian.org |
| Approved | robomod@news.nic.it |
| Lines | 105 |
| Sender | robomod@news.nic.it |
| X-Original-Date | Mon, 8 Aug 2016 12:36:46 +0200 |
| X-Original-Message-ID | <1917b35f-39db-9e3d-5c34-d7e7f6983b34@debian.org> |
| X-Original-References | <20160804153524.GA10685@eru> |
| Xref | csiph.com linux.debian.maint.python:8715 |
Show key headers only | View raw
On 08/04/2016 05:35 PM, Filip Pytloun wrote:
> Hello DPMT,
>
> I would like to join to be able to package some software I am interested
> in (Openstack-related + various python tools that I (co-)authored).
>
> As the first package, I am working on packaging of python-aptly:
> https://github.com/fpytloun/debian-python-aptly
>
> I have read and agree the policy.
> My Alioth login is fpytloun-guest.
>
> Thank you,
> Filip
Hi Filip,
A few things about your packaging.
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).
1.b. Adding unnecessary parenthesis
Why are you adding parenthesis to the command:
PYTHONPATH=. help2man
?
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.
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!!!
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?
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.
3/ Final word
I hope this helps. Thanks for your contribution to Debian.
Cheers,
Thomas Goirand (zigo)
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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