Opened 12 years ago

Closed 12 years ago

#35124 closed submission (fixed)

Python OAuth v1

Reported by: ctreleaven (Craig Treleaven) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-oauth

Description

Request for a new port: Python library for OAuth version 1.0a. See http://pypi.python.org/pypi/oauth/1.0.1

MacPorts currently has a py-oauth2 port. As per http://hueniverse.com/2010/05/introducing-oauth-2-0/ "OAuth 2.0 is a completely new protocol and is not backwards compatible with previous versions."

A port I'm working on requires OAuth 1 to access an online video site.

Attachments (3)

Portfile (788 bytes) - added by ctreleaven (Craig Treleaven) 12 years ago.
py26-oauth
Portfile.2 (1.1 KB) - added by ctreleaven (Craig Treleaven) 12 years ago.
Revised to use Python portgroup
Portfile.3 (1.1 KB) - added by ctreleaven (Craig Treleaven) 12 years ago.
use categories-append

Download all attachments as: .zip

Change History (9)

comment:1 Changed 12 years ago by ctreleaven (Craig Treleaven)

Well, despite an almost no Python experience, I've created a portfile that seems to install py26-oauth successfully. I have no idea how to use the Python portgroup to support multiple versions so this uses the Python26 portgroup. Perhaps someone who know what they are doing can improve this?

Changed 12 years ago by ctreleaven (Craig Treleaven)

Attachment: Portfile added

py26-oauth

comment:2 Changed 12 years ago by mf2k (Frank Schima)

Keywords: py-oauth removed
Port: py-oauth added
Type: requestsubmission
Version: 2.1.1

Please submit a unified portfile using the python 1.0 portgroup with subports for various python versions. This is the new preferred method for python ports. See py-pil as an example of how to do that.

comment:3 in reply to:  2 Changed 12 years ago by ctreleaven (Craig Treleaven)

Replying to macsforever2000@…:

Please submit a unified portfile ...

I really don't know Python at all and I have no clue how to determine which versions of Python can/should be supported. Version 2.6 seems to build OK. 2.3? 3.x? How does one tell?

Also, I don't even know how to test if I did use the Python portgroup. I haven't set up a local repository (if that is the correct term). Right now, I just 'cd' into the directory of the port I'm working on and 'sudo port checksum|build|destroot|install'. How do I test py26-oauth v. py27-oauth in that circumstance?

I only submitted the attached Portfile because I thought it might simplify the job for someone who knows what they're doing!

Changed 12 years ago by ctreleaven (Craig Treleaven)

Attachment: Portfile.2 added

Revised to use Python portgroup

comment:4 Changed 12 years ago by ctreleaven (Craig Treleaven)

New version of Portfile attached. By chance, I ran across mention of the subport parameter (ie sudo port -F Portfile install --subport=py26-oauth).

Changed 12 years ago by ctreleaven (Craig Treleaven)

Attachment: Portfile.3 added

use categories-append

comment:5 Changed 12 years ago by ctreleaven (Craig Treleaven)

With the mythtv-core.25 port now committed, could we please have a go at this one so I can try to finish mythtv-plugins.25? Thanks.

comment:6 Changed 12 years ago by pixilla (Bradley Giesbrecht)

Resolution: fixed
Status: newclosed

See r97259

Note: See TracTickets for help on using tickets.