Opened 11 years ago
Last modified 10 years ago
#42698 new submission
[NEW] py-cymruservices
Reported by: | jul_bsd@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | petrrr | |
Port: | py-cymruservices |
Description
Python API for the Cymru Services: Bogon Reference, IP to ASN Mapping Project, Malware Hash Registry
- depends on #42697
- BUGS for python<3, ipaddress vs ipaddr compat, try a patch but not enough
Attachments (2)
Change History (12)
Changed 11 years ago by jul_bsd@…
Attachment: | patch-cymru-__init__.py.diff added |
---|
comment:1 Changed 11 years ago by jul_bsd@…
comment:2 Changed 11 years ago by jul_bsd@…
2nd part (before was going error)
# BUGS: ip2asn & bogon # AttributeError: 'module' object has no attribute 'ip_address' # mhr: OK patchfiles patch-cymru-__init__.py.diff subport py24-cymruservices { depends_run-append port:py24-ipaddr port:py24-adns } subport py25-cymruservices { depends_run-append port:py25-ipaddr port:py25-adns } subport py26-cymruservices { depends_run-append port:py26-ipaddr port:py26-adns } subport py27-cymruservices { depends_run-append port:py27-ipaddr port:py27-adns } subport py33-cymruservices { depends_run-append port:py33-adns }
comment:3 Changed 11 years ago by jul_bsd@…
I don't know why but the url link I put about the ip_address module error was triggering some error/web firewall in trac.
comment:4 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)
That might occur if the URL matches anything in the BadContent wiki page. Does it? If so, and the URL is not in fact bad (i.e. has not been advertised by spam), then we could update the wiki page.
comment:5 Changed 11 years ago by jul_bsd@…
It seem ALL wordpress is blacklisted... a bit extreme url skitterman (dot) wordpress (dot) com/2013/05/16/new-ipaddress-module-in-python3-3/
comment:6 Changed 11 years ago by mf2k (Frank Schima)
Indeed it is, that seems like a mistake to me.
comment:8 Changed 11 years ago by mf2k (Frank Schima)
Please do not create hardcoded subports for each python version that are nearly identical. Use the standard if {${name} ne ${subport}} {
block once and use an if statement for the py33 subport.
comment:9 Changed 11 years ago by jul_bsd@…
It would be standard if it was documented... https://guide.macports.org/ has nothing.
Here, I do using python.version (or is it the same?) which I think is clearer but need to be sure what is current policy.
a backside
$ port -v livecheck py-cymruservices Error: Unable to open port: can't read "python.version": no such variable $ port -v livecheck py27-cymruservices py27-cymruservices seems to be up to date
"Erreur Trac" when trying to upload Portfile three times ... pasting... same ??? a word blacklist?