mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/binaryornot: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,5 +1,2 @@
|
||||
DIST binaryornot-0.4.4.tar.gz 371054 BLAKE2B 4a70e22eba51a266987308e8d1b4571ace5760f945920194a1a61f4336f33dcb655c4f0b1f760aa3502834d29a1a64ac62657e5d73eac8f1d7d02edf71db8af9 SHA512 379e71b41824b9389ea02c64223e26c57694d07b749c197e3a6b9f10558c8d502e9b93a13ae6c3a4bca49064ffc650ce822073dc312fb06e50e06b8a3f04f419
|
||||
DIST binaryornot-0.5.0.tar.gz 428528 BLAKE2B 34e54a341c33610da95833244c26a973d271222fd5152716c758dcb2fe77b877455add559c5fc3e951f57a045a4c2281bd2187e5a4ed54fea12085606c749355 SHA512 c68ef23b8ff18167d3e08df5e3fee89f5a28c2193bc01e831785feb158627ac2582ce85c570081459ed6cab48587eddede52a3ac1d1ca173e93197e8806d5b88
|
||||
DIST binaryornot-0.5.0.tar.gz.provenance 9901 BLAKE2B 80478d187a027a6f5a05650d2ad83825ea7a52264bf5e6505b27fa00b9340ae1708011d6a40ff2a149e14f4ec2cf26ddb8dd2ee97bd353abca1a248e75301737 SHA512 62c6a845e3e68aa587113cdeabe02011b037dfb8ba7eb1fd5d84b88816b53e7caf0919fc9f5ab16397d1aef3cf2875212e580b5e23f3653a6a3708627909a363
|
||||
DIST binaryornot-0.6.0.tar.gz 478718 BLAKE2B 2c26bbdbf9ab852eaa0369b68cb55ea0af1d23ffd7925471e4335abbefbc0fce0b693156f964f0a168089409ca763449a312d46c335934e8facf056dcaa806eb SHA512 df92e603c2b8ebb751c61a9c9aaf4d7849c07490e9541c1fde7f8bb7c90e54a88d09b5ac4abc43764ddeeb7847d0c7dee1f66cd8e63005d047657be4fb86d499
|
||||
DIST binaryornot-0.6.0.tar.gz.provenance 9717 BLAKE2B c9530d86b77ed4798b75244647db7609301f452d77326c556e08d0c6b6738f1f4a7b060ca87091053033bc7fbdc073c9732d434c9600bc1f01f7e527843ecca1 SHA512 9a80bb572d72c7a3a735f3a8e70dd960e4aedc00dce501f3ea5fd0f8c861243c30140372034be522498ee33fe0c25420410e0cf8fe249ccd0c7782e2ed2528ce
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Ultra-lightweight pure Python package to guess whether a file is binary or text"
|
||||
HOMEPAGE="
|
||||
https://github.com/binaryornot/binaryornot
|
||||
https://pypi.org/project/binaryornot/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/chardet-3.0.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
DOCS=( README.rst HISTORY.rst CONTRIBUTING.rst )
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/audreyr/binaryornot/commit/38dee57986c6679d9936a1da6f6c8182da3734f8
|
||||
"${FILESDIR}"/${P}-tests.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests unittest
|
||||
distutils_enable_sphinx docs
|
||||
@@ -1,40 +0,0 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=hatchling
|
||||
PYPI_VERIFY_REPO=https://github.com/binaryornot/binaryornot
|
||||
PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Ultra-lightweight pure Python package to guess whether a file is binary or text"
|
||||
HOMEPAGE="
|
||||
https://github.com/binaryornot/binaryornot/
|
||||
https://pypi.org/project/binaryornot/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/hypothesis[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_PLUGINS=()
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# missing data files
|
||||
# https://github.com/binaryornot/binaryornot/issues/641
|
||||
tests/test_check.py::TestIsBinary::test_ds_store
|
||||
tests/test_check.py::TestProgrammingArtifacts::test_binary_empty_pyc
|
||||
tests/test_check.py::TestProgrammingArtifacts::test_binary_pyc
|
||||
tests/test_check.py::TestProgrammingArtifacts::test_binary_troublesome_pyc
|
||||
)
|
||||
@@ -1,22 +0,0 @@
|
||||
From 38dee57986c6679d9936a1da6f6c8182da3734f8 Mon Sep 17 00:00:00 2001
|
||||
From: Greg <gregobinna@gmail.com>
|
||||
Date: Sat, 10 Aug 2019 15:10:33 +0000
|
||||
Subject: [PATCH] fix failing test
|
||||
|
||||
---
|
||||
tests/test_check.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_check.py b/tests/test_check.py
|
||||
index 1ea31a4..f800583 100755
|
||||
--- a/tests/test_check.py
|
||||
+++ b/tests/test_check.py
|
||||
@@ -216,7 +216,7 @@ def bytes_in_file(data):
|
||||
|
||||
|
||||
class TestDetectionProperties(unittest.TestCase):
|
||||
- @given(binary(average_size=512))
|
||||
+ @given(binary(max_size=512))
|
||||
def test_never_crashes(self, data):
|
||||
with bytes_in_file(data) as f:
|
||||
is_binary(f)
|
||||
Reference in New Issue
Block a user