1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
Return-Path: <obnam-dev-bounces@obnam.org>
X-Original-To: distix@pieni.net
Delivered-To: distix@pieni.net
Received: from bagpuss.pepperfish.net (bagpuss.pepperfish.net [148.251.8.16])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by pieni.net (Postfix) with ESMTPS id 517E72374F
for <distix@pieni.net>; Mon, 11 Jul 2016 20:11:23 +0200 (CEST)
Received: from platypus.pepperfish.net (unknown [10.112.100.20])
by bagpuss.pepperfish.net (Postfix) with ESMTP id D5732B74;
Mon, 11 Jul 2016 19:11:22 +0100 (BST)
Received: from ip6-localhost ([::1] helo=platypus.pepperfish.net)
by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
id 1bMffu-0008Mf-Ny; Mon, 11 Jul 2016 19:11:22 +0100
Received: from inmail0 ([10.112.100.10] helo=mx0.pepperfish.net)
by platypus.pepperfish.net with esmtp (Exim 4.80 #2 (Debian))
id 1bMfft-0008MM-6b
for <obnam-dev@obnam.org>; Mon, 11 Jul 2016 19:11:21 +0100
Received: from mail-qt0-f170.google.com ([209.85.216.170])
by mx0.pepperfish.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128)
(Exim 4.80) (envelope-from <remirampin@gmail.com>)
id 1bMffq-0003iO-KT
for obnam-dev@obnam.org; Mon, 11 Jul 2016 19:11:21 +0100
Received: by mail-qt0-f170.google.com with SMTP id u25so34023388qtb.1
for <obnam-dev@obnam.org>; Mon, 11 Jul 2016 11:11:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to
:cc; bh=fXiIUvOe58+rSqc+MeuCgoJ8ucC2vCtgKVnONr+Kh8Y=;
b=wyiAj984mXwxe3g4/Gfow5T/mvqWbnXe++S0H40CIOOxgaJaqkXU6KF9wnncVHzUgS
zwkURV0XSl2c1z8LRL+TuvOSIFd2OzJPDzU1uhsHH3rKKZBYYzodu0GWyLtvT5bH41Mf
Y/2dAN8fvYG1iH6S3VZN9Xc3bE8ixRARcx+csTSdZp++M2BH3+ciiJXuu3VE5ZBuleDN
xkdRMCOLubfi9mcrHpAaSHqMl5ZdBbn4NRAUB0EFnbpsrRgsj77Pq9Kz4jlxgVG0wWf8
Y5TiOtlOyLYlkUlsx/3o3o5oXOr3hD1ogB1Ty7aghA52B1121DvZoPJTl+OjEpSAFS2y
8LRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20130820;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to:cc;
bh=fXiIUvOe58+rSqc+MeuCgoJ8ucC2vCtgKVnONr+Kh8Y=;
b=MCUVE+YLTUbnDeu8r3fKUMoj6T06TFHmO+w5flqZ/LFGgx44jO45mPpCspvSN8tlTC
Sno00HAR5SY/NCbOyYeum3gDGcXm9+FCb6XamVqh3EqMooC973N0C0T8S42mwaEKvQZk
GeVRdBycxyMyZ7C4MCokPn6jDb2x0a3/zHTkdTJXa/kmMV5cj/Dqfmax7vlCI5NiCxMM
6pqd601tXFad+stxCzWCf5NVWDgXkusqdUkqCM4hnE2Y7nybvd444LUHVn5tF7zCcPye
qxJAW0pv9F2LKIcU2N/0zZVirpwLk1U7wJA1T9CdGhZf6qjAVGTzWhzxAoBfJQqM17l7
sWBQ==
X-Gm-Message-State: ALyK8tLotxOuqbxe7Q3xCsu3QqVhg+cTb+jVq5KQfl55Q/cLD+eA5OOOcTYX9QsBmyE5Gh+V4NmK8qmki2huuA==
X-Received: by 10.237.36.173 with SMTP id t42mr2061376qtc.89.1468260665549;
Mon, 11 Jul 2016 11:11:05 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.140.83.144 with HTTP; Mon, 11 Jul 2016 11:10:36 -0700 (PDT)
In-Reply-To: <20160711174533.GB14034@exolobe3>
References: <56E8255A.9020906@gmail.com>
<1458055902-97595-1-git-send-email-remirampin@gmail.com>
<1458055902-97595-2-git-send-email-remirampin@gmail.com>
<20160711174533.GB14034@exolobe3>
From: =?UTF-8?B?UsOpbWkgUmFtcGlu?= <remirampin@gmail.com>
Date: Mon, 11 Jul 2016 14:10:36 -0400
Message-ID: <CAMto89CeCjoBrUweQidMo0AVgy39wNq4qYU9okD-KwgdBFCZmw@mail.gmail.com>
To: Lars Wirzenius <liw@liw.fi>
X-Spam-Score: 2.1
X-Spam-Score-int: 21
X-Spam-Bar: ++
X-Scanned-By: pepperfish.net, Mon, 11 Jul 2016 19:11:21 +0100
X-Spam-Report: Content analysis details: (2.1 points)
pts rule name description
---- ---------------------- --------------------------------------------------
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
trust [209.85.216.170 listed in list.dnswl.org]
0.2 PPF_ALTERNATIVES Body in multipart/alternative
0.5 PPF_RECEIVED_HTTP Received header mentions http
0.2 PPF_INREPLYTO_NODOTS In-Reply-To contains no dots after the @
0.2 PPF_REFERENCES_NODOTS References contains no dots after the @
1.0 PPF_FROM_CONTAINS_MAIL The From header contains 'mail'
1.2 FREEMAIL_FROM Sender email is commonly abused enduser mail provider
(remirampin[at]gmail.com)
-0.0 SPF_PASS SPF: sender matches SPF record
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.3 HTML_MESSAGE BODY: HTML included in message
0.2 PPF_NUMERIC_ENTITY RAW: Body contains numeric HTML entities
1.0 PPF_BLANK RAW: Body contains _blank
-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
domain
0.1 DKIM_SIGNED Message has a DKIM or DK signature,
not necessarily valid
-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
X-ACL-Warn: message may be spam
X-Scan-Signature: 805eda458b26030fb35277d5bf2b304c
Cc: obnam-dev@obnam.org
Subject: Re: [PATCH 1/2] Switch to setuptools
X-BeenThere: obnam-dev@obnam.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Obnam development discussions <obnam-dev-obnam.org>
List-Unsubscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
<mailto:obnam-dev-request@obnam.org?subject=unsubscribe>
List-Archive: <http://listmaster.pepperfish.net/pipermail/obnam-dev-obnam.org>
List-Post: <mailto:obnam-dev@obnam.org>
List-Help: <mailto:obnam-dev-request@obnam.org?subject=help>
List-Subscribe: <http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org>,
<mailto:obnam-dev-request@obnam.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8231436484046287495=="
Mime-version: 1.0
Sender: obnam-dev-bounces@obnam.org
Errors-To: obnam-dev-bounces@obnam.org
--===============8231436484046287495==
Content-Type: multipart/alternative; boundary=001a114060be686bb8053760135f
--001a114060be686bb8053760135f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
2016-07-11 13:45 EDT, Lars Wirzenius <liw@liw.fi>:
> On Tue, Mar 15, 2016 at 11:31:41AM -0400, Remi Rampin wrote:
> > -from distutils.core import setup, Extension
> > +from setuptools import setup, Extension
>
> Can you explain why using setuptools instead of distutils? Let's
> assume I am quite ignorant about PyPI and pip and the various Python
> attemmpts at build tools.
>
setuptools has become a standard for Python packages and if people have pip
installed, you can assume they have setuptools. In particular, setuptools
is recommended by the Packaging User Guide [1].
> +os.chdir(os.path.abspath(os.path.dirname(__file__)))
>
> Why is this line needed?
>
If running the setup.py script from another working directory (pip install
doesn't do that, but when using -e or calling it manually it can happen),
the installation will fail. I just put this in all the time. Else you would
have to fix all the subprocess calls and file opens to compute the correct
path (i.e. calling git-ls-files, opening files in generate_troff...)
You said the larch name has been taken by another project in PyPI. I
> assume that means the above reference to larch needs to be changed.
>
> Which reminds me: I guess this Obnam PyPi/pip preparation isn't really
> useful until the dependencies are on PyPI already?
Yes, all of the dependencies would have to be put there. I didn't rename
larch yet because I didn't know what to rename it to (larch is taken [2]
but not python-larch, ...)
[1]: https://packaging.python.org/current/#packaging-tool-recommendations
[2]: https://pypi.python.org/pypi/larch
Best
--=20
R=C3=A9mi
--001a114060be686bb8053760135f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">2016=
-07-11 13:45 EDT, Lars Wirzenius <span dir=3D"ltr"><<a href=3D"mailto:li=
w@liw.fi" target=3D"_blank">liw@liw.fi</a>></span>:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;bo=
rder-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">=
<span class=3D"">On Tue, Mar 15, 2016 at 11:31:41AM -0400, Remi Rampin wrot=
e:<br>
> -from distutils.core import setup, Extension<br>
> +from setuptools import setup, Extension<br>
<br>
</span>Can you explain why using setuptools instead of distutils? Let's=
<br>
assume I am quite ignorant about PyPI and pip and the various Python<br>
attemmpts at build tools.<br></blockquote><div><br></div><div>setuptools ha=
s become a standard for Python packages and if people have pip installed, y=
ou can assume they have setuptools. In particular, setuptools is recommende=
d by the Packaging User Guide [1].</div><div><br></div><blockquote class=3D=
"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;borde=
r-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">>=
; +os.chdir(os.path.abspath(os.path.dirname(__file__)))<br>
<br>
Why is this line needed?<br></blockquote><div><br></div><div>If running the=
setup.py script from another working directory (pip install doesn't do=
that, but when using -e or calling it manually it can happen), the install=
ation will fail. I just put this in all the time. Else you would have to fi=
x all the subprocess calls and file opens to compute the correct path (i.e.=
calling git-ls-files, opening files in generate_troff...)</div><div><br></=
div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor=
der-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,20=
4);padding-left:1ex">You said the larch name has been taken by another proj=
ect in PyPI. I<br>
assume that means the above reference to larch needs to be changed.<br>
<br>
Which reminds me: I guess this Obnam PyPi/pip preparation isn't really<=
br>
useful until the dependencies are on PyPI already?</blockquote><div><br></d=
iv><div>Yes, all of the dependencies would have to be put there. I didn'=
;t rename larch yet because I didn't know what to rename it to (larch i=
s taken [2] but not python-larch, ...)</div></div><br></div><div class=3D"g=
mail_extra">[1]:=C2=A0<a href=3D"https://packaging.python.org/current/#pack=
aging-tool-recommendations">https://packaging.python.org/current/#packaging=
-tool-recommendations</a></div><div class=3D"gmail_extra">[2]:=C2=A0<a href=
=3D"https://pypi.python.org/pypi/larch">https://pypi.python.org/pypi/larch<=
/a></div><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">Be=
st</div><div class=3D"gmail_extra">--=C2=A0</div><div class=3D"gmail_extra"=
>R=C3=A9mi</div></div>
--001a114060be686bb8053760135f--
--===============8231436484046287495==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
obnam-dev mailing list
obnam-dev@obnam.org
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/obnam-dev-obnam.org
--===============8231436484046287495==--
|