[Patches] [ python-Patches-683939 ] Add download_url to setup()

SourceForge.net noreply@sourceforge.net
Wed, 19 Feb 2003 06:37:35 -0800


Patches item #683939, was opened at 2003-02-10 09:58
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=683939&group_id=5470

Category: Distutils and setup.py
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: A.M. Kuchling (akuchling)
>Assigned to: A.M. Kuchling (akuchling)
Summary: Add download_url to setup()

Initial Comment:
For a Python package installer, it would be a good idea to provide a "download URL" metadata keyword in the next release of Python. 


----------------------------------------------------------------------

>Comment By: A.M. Kuchling (akuchling)
Date: 2003-02-19 09:37

Message:
Logged In: YES 
user_id=11375

Rev. 1.4 of register.py includes the download_url data in the POST; it will be UNKNOWN if not supplied.  Richard, just re-open this bug if you want it to be different (suppressing it completely or whatever).

----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2003-02-19 09:28

Message:
Logged In: YES 
user_id=11375

The changes to core.py and dist.py are checked in, but register.py still needs to be updated.

----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2003-02-19 09:10

Message:
Logged In: YES 
user_id=11375

So should download_url be omitted from the POST data, or included with a value of UNKNOWN?

----------------------------------------------------------------------

Comment By: Richard Jones (richard)
Date: 2003-02-10 19:03

Message:
Logged In: YES 
user_id=6405

Sorry, I was responding to the question "Should 
the line simply be omitted in this case"? 
 
I was also entirely vague about the "dict generation" bit too. I was referring 
to the build_post_data method in the register command source. 
 
In response to the multiple downloads question, I believe this is an open 
question still (as to whether multiple download sources are to be allowed). 
PyPI currently allows a single download URL, but since it's still in "test" 
mode, I could easily change that. 
 
Sourceforge doesn't auto-redirect if there's no session cookie present. 
 

----------------------------------------------------------------------

Comment By: Richard Jones (richard)
Date: 2003-02-10 17:56

Message:
Logged In: YES 
user_id=6405

IMO The line should be omitted. 
 
The patch doesn't touch the register command source - could that be done 
too? Perhaps the dict generation should be moved off to the 
DistributionMetadata class instead? 
 

----------------------------------------------------------------------

Comment By: Thomas Heller (theller)
Date: 2003-02-10 10:34

Message:
Logged In: YES 
user_id=11105

What will this line contain, if there are several download
URLs possible (zip, tar.gz, multiple exe fir different
Python versions?)

Will it work with redirects a la Sourceforge?

----------------------------------------------------------------------

Comment By: A.M. Kuchling (akuchling)
Date: 2003-02-10 10:00

Message:
Logged In: YES 
user_id=11375

The attached patch implements the new metadata keyword.

Open question: if a value isn't provided, the PKG-INFO file 
will contain the line "Download-URL: UNKNOWN".  Should the line 
simply be omitted in this case?

There should be an updated metadata PEP; I'm not sure if PEP 241 should be edited or what, but will ask the relevant people.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=683939&group_id=5470