Re: [Python-Dev] New PyPI broken package editing

2005-03-31 Thread Walter Dörwald
Martin v. Löwis wrote: Walter Dörwald wrote: The register command in 2.4 (and current CVS) simply does a value = str(value) in post_to_server() so the encoded bytes sent depend on the default encoding. Would it be sufficient to change this to value = unicode(value).encode("utf-8") Indeed. I t

Re: [Python-Dev] New PyPI broken package editing

2005-03-30 Thread Walter Dörwald
Martin v. Löwis wrote: Walter Dörwald wrote: There's been a problem with your request exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 92: ordinal not in range(128) That should be fixed now, please try again. Works perfectly, thanks! > [...] Bye, Walter Dörwald __

Re: [Python-Dev] New PyPI broken package editing

2005-03-30 Thread Martin v. Löwis
Walter Dörwald wrote: There's been a problem with your request exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 92: ordinal not in range(128) That should be fixed now, please try again. Please report further errors you find to sf.net/projects/pypi. Suggestions/RFEs c

Re: [Python-Dev] New PyPI broken package editing

2005-03-30 Thread Martin v. Löwis
Walter Dörwald wrote: The register command in 2.4 (and current CVS) simply does a value = str(value) in post_to_server() so the encoded bytes sent depend on the default encoding. Would it be sufficient to change this to value = unicode(value).encode("utf-8") Indeed. I think this can go into 2

Re: [Python-Dev] New PyPI broken package editing

2005-03-30 Thread Walter Dörwald
Martin v. Löwis wrote: Walter Dörwald wrote: So can I have one setup.py for both Python 2.4 and Python 2.5 that does the correct thing when creating a Windows installer for Python 2.4 (I've used Unicode strings for that until now) and using the upload command with Python CVS (which seems to requi

Re: [Python-Dev] New PyPI broken package editing

2005-03-29 Thread Martin v. Löwis
Walter Dörwald wrote: So can I have one setup.py for both Python 2.4 and Python 2.5 that does the correct thing when creating a Windows installer for Python 2.4 (I've used Unicode strings for that until now) and using the upload command with Python CVS (which seems to require a byte string now)?

Re: [Python-Dev] New PyPI broken package editing

2005-03-29 Thread Walter Dörwald
Martin v. Löwis sagte: > Walter Dörwald wrote: >> I'm not sure if this is the right approach. > > I think the approach is right, but the implementation is wrong. > >> The encoding I specify in >> setup.py should be independent of the encoding used between distutils and >> PyPI to communicate on t

Re: [Python-Dev] New PyPI broken package editing

2005-03-27 Thread Martin v. Löwis
Walter Dörwald wrote: I'm not sure if this is the right approach. I think the approach is right, but the implementation is wrong. The encoding I specify in setup.py should be independent of the encoding used between distutils and PyPI to communicate on the wire. I.e. the author (and maintainer)

Re: [Python-Dev] New PyPI broken package editing

2005-03-23 Thread Walter Dörwald
[EMAIL PROTECTED] wrote: Zitat von Walter Dörwald <[EMAIL PROTECTED]>: I've uploaded a new package to the new PyPI. Editing this new packages gives me a unicode error. The URL is http://www.python.org/pypi?:action=submit_form&name=ll-ansistyle&version=0.6.1 I see that the package is online now, so

Re: [Python-Dev] New PyPI broken package editing

2005-03-22 Thread Walter Dörwald
> Zitat von Walter Dörwald <[EMAIL PROTECTED]>: > >> I've uploaded a new package to the new PyPI. Editing this >> new packages gives me a unicode error. The URL is >> >> http://www.python.org/pypi?:action=submit_form&name=ll-ansistyle&version=0.6.1 > > I see that the package is online now, so I ass

Re: [Python-Dev] New PyPI broken package editing

2005-03-22 Thread martin
Zitat von Walter Dörwald <[EMAIL PROTECTED]>: > I've uploaded a new package to the new PyPI. Editing this > new packages gives me a unicode error. The URL is > > http://www.python.org/pypi?:action=submit_form&name=ll-ansistyle&version=0.6.1 I see that the package is online now, so I assume that i