Opened 12 years ago
Last modified 11 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 12 years ago by jul_bsd@…
| Attachment: | patch-cymru-__init__.py.diff added |
|---|
comment:1 Changed 12 years ago by jul_bsd@…
comment:2 Changed 12 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 12 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 12 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 12 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 12 years ago by mf2k (Frank Schima)
Indeed it is, that seems like a mistake to me.
comment:8 Changed 12 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 12 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?
PortSystem 1.0 PortGroup python 1.0 name py-cymruservices version 1.4 platforms darwin supported_archs noarch maintainers nomaintainer categories security python license GPL3 description Python API for the Cymru Services: Bogon Reference, \ IP to ASN Mapping Project, Malware Hash Registry homepage https://pypi.python.org/pypi/cymru-services distname cymru-services-${version} master_sites https://pypi.python.org/packages/source/c/cymru-services/ checksums rmd160 205508bcd62c8ca2e563576c216016a7d0a72a69 \ sha256 f8d5ceebcbec963ace0ff57069d33077bc71856fa9e9de9661818fc90da92ac5 python.versions 24 25 26 27 33 [...]