[Distutils] Python people want CPAN and how the latter came about

Tarek Ziadé ziade.tarek at gmail.com
Thu Dec 24 11:03:48 CET 2009


On Thu, Dec 24, 2009 at 10:02 AM, "Martin v. Löwis" <martin at v.loewis.de> wrote:
>> A separate issue with "setup.py upload", though, is that it really wants
>> one of two undesirable things:
>>
>>  * the upload is done at the same time as the release package is generated
>>  * the release package is generated twice
>>
>> The former requires that proper credentials are available to whoever is
>> creating the release package.  Historically for Twisted, this isn't how
>> things have been set up.  We could probably deal with it, but it would
>> be nice if it were not a requirement.
>
> It actually isn't. Upload will upload all files that are listed on
> distribution.dist_files, which is a three-tuple of (command/filetype,
> pyversion, filename). So if you somehow (e.g. with a new command, or
> hard-coded) put stuff into dist_files, you could arrange for
>
> python setup.py pickup_files upload
>
> to upload the pre-built files; thereby you can upload files as source
> that had not been generated by sdist.
>

That's why I've proposed to add a --dist-file option to the upload command,

Tarek


More information about the Distutils-SIG mailing list