summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-09 14:57:20 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-09 15:08:16 +0200
commit0f5e92936018e8736cf1390aee56259f58ebe09e (patch)
tree691064ca79a5d52c1f7db16e0c1fd7823fdcd174 /dev-python/filetype
parentdev-python/filetype: Port to py3.9, enable tests (diff)
downloadgentoo-0f5e92936018e8736cf1390aee56259f58ebe09e.tar.gz
gentoo-0f5e92936018e8736cf1390aee56259f58ebe09e.tar.bz2
gentoo-0f5e92936018e8736cf1390aee56259f58ebe09e.zip
dev-python/filetype: Bump to 1.0.7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/filetype')
-rw-r--r--dev-python/filetype/Manifest1
-rw-r--r--dev-python/filetype/files/filetype-1.0.7-examples.patch26
-rw-r--r--dev-python/filetype/filetype-1.0.7.ebuild20
3 files changed, 47 insertions, 0 deletions
diff --git a/dev-python/filetype/Manifest b/dev-python/filetype/Manifest
index c8b9b9c8f86d..8df51a42b738 100644
--- a/dev-python/filetype/Manifest
+++ b/dev-python/filetype/Manifest
@@ -1 +1,2 @@
DIST filetype-1.0.5.tar.gz 668401 BLAKE2B c8dbb2d993a13c848b6460cbdb99da20606bbb632b388c2a0c0a28debf6119c73257f177c55cbce201ed7ac5a47f04a4a2c3137cfde887638151cb287c28333b SHA512 c90846deedfdb9c0dbb8f0f2e3943494ea2a8cbb85752b8fa8093f76a3760864e3a1854530d7a62c418a9e475e22f161ba52c9069cafe24d6f069fd300191dea
+DIST filetype-1.0.7.tar.gz 666636 BLAKE2B 3abc1cc3a94b3ca8c91b9b43909522efa18736c826f8f45990b3d7dab18047476f05b259108290bf7383e4df82a63def4249c0d52ae313b0dc23d377bb5369d8 SHA512 8d81261082a5765c2f96b587cc8372ec2e7347536f3e76c1f4c17f10011fd1808309ceaf55923f0e063f379cdd253020ce651a263b9535a9d16375f07dc8ec92
diff --git a/dev-python/filetype/files/filetype-1.0.7-examples.patch b/dev-python/filetype/files/filetype-1.0.7-examples.patch
new file mode 100644
index 000000000000..04eeb8e1ee68
--- /dev/null
+++ b/dev-python/filetype/files/filetype-1.0.7-examples.patch
@@ -0,0 +1,26 @@
+From 0aa106c03d0bc7dc872edb349b4a88edd170ca05 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sun, 9 Aug 2020 14:55:07 +0200
+Subject: [PATCH] setup.py: Exclude 'examples' from being installed as a global
+ pkg
+
+---
+ setup.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 45bfd49..8a69c6a 100644
+--- a/setup.py
++++ b/setup.py
+@@ -36,6 +36,7 @@ setup(
+ 'Topic :: System :: Filesystems',
+ 'Topic :: Utilities'],
+ platforms=['any'],
+- packages=find_packages(exclude=['dist', 'build', 'docs', 'tests']),
++ packages=find_packages(exclude=['dist', 'build', 'docs', 'tests',
++ 'examples']),
+ package_data={'filetype': ['LICENSE', '*.md']},
+ zip_safe=True)
+--
+2.28.0
+
diff --git a/dev-python/filetype/filetype-1.0.7.ebuild b/dev-python/filetype/filetype-1.0.7.ebuild
new file mode 100644
index 000000000000..e0d6304e4217
--- /dev/null
+++ b/dev-python/filetype/filetype-1.0.7.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Small, dependency-free, fast Python package to infer binary file types checking"
+HOMEPAGE="https://github.com/h2non/filetype.py"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64"
+
+PATCHES=( "${FILESDIR}/${P}-examples.patch" )
+
+distutils_enable_tests unittest