Ticket #35124 (closed submission: fixed)
Python OAuth v1
| Reported by: | ctreleaven@… | 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
Change History
comment:2 follow-up: ↓ 3 Changed 11 months ago by macsforever2000@…
- Keywords py-oauth removed
- Version 2.1.1 deleted
- Type changed from request to submission
- Port set to py-oauth
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 11 months ago by ctreleaven@…
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!
comment:4 Changed 11 months ago by ctreleaven@…
New version of Portfile attached. By chance, I ran across mention of the subport parameter (ie sudo port -F Portfile install --subport=py26-oauth).


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?