[Product-Developers] Releasing plugins to pypi AND plone.org
Gilles Lenfant
gilles.lenfant at alterway.fr
Wed Apr 6 16:28:18 UTC 2011
Le 6 avr. 2011 à 15:49, Espen Moe-Nilssen a écrit :
> Hi, no, I think the "python version is right, actully, I ran the command like this.
>
> ../../../../Python-2.6/bin/python2.6 setup.py register sdist upload -r plone
>
> Running it like
> ../../../Python-2.6/bin/python2.6 setup.py register sdist upload -r http://plone.org/products
>
> gives me "Upload failed (401): Unauthorized
>
> (my product setup in plones "distutils" has "my.product" set.
Hmmm very strange, I never ran into this. Are you sure of your credentials on plone.org ? Have you the appropriate permission to make a release ("can edit" + "can add" in the sharing tab if you're not the product owner) ?
The full tutorial I read and use successfully is there :
http://plone.org/documentation/kb/how-to-upload-your-package-to-plone.org/
If you upload correctly to pypi, I can't suspect a setup.py issue.
Cheers
--
Gilles Lenfant
>
>
> Espen
>
> Den 6. apr. 2011 kl. 13.10 skrev Gilles Lenfant-2 [via Plone]:
>
>> Hi,
>>
>> Your ~/.pypirc seems correct. It looks like you are using Python 2.4 to run setup.py.
>>
>> AFAIK this requires Python 2.6, or Python 2.4/2.5 plus "collective.dist", and use "mregister" in place of "register" and "mupload" in place of "upload".
>>
>> HTH
>> --
>> Gilles Lenfant
>>
>> Le 6 avr. 2011 à 12:17, Espen Moe-Nilssen a écrit :
>>
>> > I tried to setup this, what is wrong here:
>> >
>> > [distutils]
>> > index-servers =
>> > pypi
>> > plone
>> >
>> > [pypi]
>> > username:espen
>> > password:xxxxxxxx
>> >
>> > [plone]
>> > respository: http://plone.org/products
>> > username: espenmn
>> > password: xxxxxxxxx
>> >
>> >
>> > -----------------------
>> >
>> >
>> > setup.py register sdist upload -r plone
>> >
>> > tries to upload to py
>> >
>> >
>> > Espen
>> >
>> >
>> > View this message in context: Re: Releasing plugins to pypi AND plone.org
>> > Sent from the Product Developers mailing list archive at Nabble.com.
>> > _______________________________________________
>> > Product-Developers mailing list
>> > <a href="x-msg://207/user/SendEmail.jtp?type=node&node=6245604&i=0&by-user=t" target="_top" rel="nofollow" link="external">[hidden email]
>> > https://lists.plone.org/mailman/listinfo/product-developers
>> _______________________________________________
>> Product-Developers mailing list
>> <a href="x-msg://207/user/SendEmail.jtp?type=node&node=6245604&i=1&by-user=t" target="_top" rel="nofollow" link="external">[hidden email]
>> https://lists.plone.org/mailman/listinfo/product-developers
>>
>>
>> If you reply to this email, your message will be added to the discussion below:
>> http://plone.293351.n2.nabble.com/Releasing-plugins-to-pypi-AND-plone-org-tp6237288p6245604.html
>
>
> View this message in context: Re: Releasing plugins to pypi AND plone.org
> Sent from the Product Developers mailing list archive at Nabble.com.
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> https://lists.plone.org/mailman/listinfo/product-developers
More information about the Product-Developers
mailing list