#63607 closed request (fixed)
Port request: py-unidiff
Reported by: | cooljeanius (Eric Gallager) | Owned by: | reneeotten (Renee Otten) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | Cc: | ||
Port: | py-unidiff |
Description
GCC's contrib/mklog.py script uses the unidiff python module: https://pypi.org/project/unidiff/
Having a port for it would be helpful. I tried starting a Portfile for it with pypi2port, but couldn't figure it out.
Change History (5)
comment:1 follow-up: 2 Changed 3 years ago by reneeotten (Renee Otten)
comment:2 Changed 3 years ago by cooljeanius (Eric Gallager)
Replying to reneeotten:
I have never used
pypi2port
, but you could look intoupt
andupt-macports
, or just even take a Python port from the tree and adjust the required fields.What problems did you run into? It seems like a pretty straightforward package with no dependencies besides setuptools, or?
$ pypi2port -s unidiff Traceback (most recent call last): File "/opt/local/bin/pypi2port", line 781, in <module> main(sys.argv[1:]) File "/opt/local/bin/pypi2port", line 725, in main search(pkg_name) File "/opt/local/bin/pypi2port", line 66, in search values = client.search({'name': pkg_name}) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1243, in __call__ return self.__send(self.__name, args) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1602, in __request verbose=self.__verbose File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1283, in request return self.single_request(host, handler, request_body, verbose) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1316, in single_request return self.parse_response(response) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1493, in parse_response return u.close() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 800, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault -32500: "RuntimeError: PyPI's XMLRPC API is currently disabled due to unmanageable load and will be deprecated in the near future. See https://status.python.org/ for more information."> $
comment:3 Changed 3 years ago by reneeotten (Renee Otten)
I see, well the error message is quite clear as of why this doesn't work currently (and likely will not work anymore in the future). Someone motivated enough could probably update pypi2port
, but I would say people should transition to using upt
/upt-macports
instead.
Please try that or just generate the Portfile by hand starting from an example in the tree. As I said there don't seem to be any dependencies besides py-setuptools
so even doing it by hand is pretty straightforward.
comment:4 follow-up: 5 Changed 3 years ago by reneeotten (Renee Otten)
Owner: | set to reneeotten |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:5 Changed 3 years ago by cooljeanius (Eric Gallager)
Replying to reneeotten:
In 6cb44802b88653ee06c0041ecfb64fb68dd512ad/macports-ports (master):
Thanks; I've successfully installed it!
I have never used
pypi2port
, but you could look intoupt
andupt-macports
, or just even take a Python port from the tree and adjust the required fields.What problems did you run into? It seems like a pretty straightforward package with no dependencies besides setuptools, or?