[Bug 229436] [NEW PORT] devel/py-binaryornot: Lightweight pure Python package to check if a file is binary or not
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jun 30 21:50:16 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229436
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 at FreeBSD.org
Reporter: freebsd_ports at k-worx.org
CC: python at FreeBSD.org
Created attachment 194799
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=194799&action=edit
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.
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, .ttf,
It has also tests for numerous encodings.
QA:
~~~
- poudriere (11.2-RELEASE amd64 + i386) for each py27 + py36 flavor -> OK
- portlint -> OK
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-python
mailing list