Date: Sat, 30 Jun 2018 21:50:13 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 229436] [NEW PORT] devel/py-binaryornot: Lightweight pure Python package to check if a file is binary or not Message-ID: <bug-229436-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229436 Bug ID: 229436 Summary: [NEW PORT] devel/py-binaryornot: Lightweight pure Python package to check if a file is binary or not Product: Ports & Packages Version: Latest Hardware: Any URL: https://pypi.org/project/binaryornot/ OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: freebsd_ports@k-worx.org CC: python@FreeBSD.org Created attachment 194799 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D194799&action= =3Dedit py-binaryornot.patch Hello, attached is the patch for the Python package devel/py-binaryornot, which guesses whether a file is binary or text, using a heuristic similar to Perl= 's pp_fttext and its analysis.=20 Tests are available for these file types: - Text formats: .txt, .css, .json, .svg, .js, .lua, .pl, .rst - Binary formats: .png, .gif, .jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .tt= f, It has also tests for numerous encodings. QA: ~~~ - poudriere (11.2-RELEASE amd64 + i386) for each py27 + py36 flavor -> OK - portlint -> OK --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229436-21822>