Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] python3-magic: update to 0.4.25.
@ 2022-02-12 21:31 paper42
  2022-02-13 10:30 ` [PR PATCH] [Merged]: " paper42
  0 siblings, 1 reply; 2+ messages in thread
From: paper42 @ 2022-02-12 21:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1230 bytes --]

There is a new pull request by paper42 against master on the void-packages repository

https://github.com/paper42/void-packages python3-magic-0.4.25
https://github.com/void-linux/void-packages/pull/35567

python3-magic: update to 0.4.25.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/35567.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-python3-magic-0.4.25-35567.patch --]
[-- Type: text/x-diff, Size: 3140 bytes --]

From c0089da279988eedff4088c3225c86caac7974d6 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Fri, 11 Feb 2022 21:32:17 +0100
Subject: [PATCH] python3-magic: update to 0.4.25.

---
 ...e7ceac0e80e03adc75c858bb378c0427331a.patch | 24 -------------------
 srcpkgs/python3-magic/template                | 17 +++++--------
 2 files changed, 6 insertions(+), 35 deletions(-)
 delete mode 100644 srcpkgs/python3-magic/patches/0ae7e7ceac0e80e03adc75c858bb378c0427331a.patch

diff --git a/srcpkgs/python3-magic/patches/0ae7e7ceac0e80e03adc75c858bb378c0427331a.patch b/srcpkgs/python3-magic/patches/0ae7e7ceac0e80e03adc75c858bb378c0427331a.patch
deleted file mode 100644
index ba4abc0796f7..000000000000
--- a/srcpkgs/python3-magic/patches/0ae7e7ceac0e80e03adc75c858bb378c0427331a.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From 0ae7e7ceac0e80e03adc75c858bb378c0427331a Mon Sep 17 00:00:00 2001
-From: Martin Liska <mliska@suse.cz>
-Date: Fri, 22 Oct 2021 09:47:32 +0200
-Subject: [PATCH] Support file 5.41.
-
-In https://github.com/file/file/commit/7d9b0f0d853957ad88dae0f440fecd58d2740ca7,
-the MIME was changed for Python bytecode.
----
- test/test.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/test/test.py b/test/test.py
-index 0c4621c..e443b84 100755
---- a/test/test.py
-+++ b/test/test.py
-@@ -90,7 +90,7 @@ def test_mime_types(self):
-         try:
-             m = magic.Magic(mime=True)
-             self.assert_values(m, {
--                'magic._pyc_': ('application/octet-stream', 'text/x-bytecode.python'),
-+                'magic._pyc_': ('application/octet-stream', 'text/x-bytecode.python', 'application/x-bytecode.python'),
-                 'test.pdf': 'application/pdf',
-                 'test.gz': ('application/gzip', 'application/x-gzip'),
-                 'test.snappy.parquet': 'application/octet-stream',
diff --git a/srcpkgs/python3-magic/template b/srcpkgs/python3-magic/template
index 03d3c75795ac..36dc526660d3 100644
--- a/srcpkgs/python3-magic/template
+++ b/srcpkgs/python3-magic/template
@@ -1,28 +1,23 @@
 # Template file for 'python3-magic'
 pkgname=python3-magic
-version=0.4.24
-revision=2
+version=0.4.25
+revision=1
 wrksrc=python-magic-$version
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 makedepends="libmagic"
-depends="python3"
+depends="python3 libmagic"
+checkdepends="python3-pytest"
 short_desc="File type identification using libmagic (Python3)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://github.com/ahupp/python-magic"
 changelog="https://raw.githubusercontent.com/ahupp/python-magic/master/CHANGELOG"
 distfiles="https://github.com/ahupp/python-magic/archive/${version}.tar.gz"
-checksum=48b70b62caa8b911c8c79a1d06ab618037f00d09ac891b7490d0d890ff6e0632
+checksum=0c1f483995067ffff268103f8bb6860d2f42aa3a5a9b906eaf34bcce1de36329
 
 do_check() {
-	cd test/
-	# based on test/run.py but that requires python2 and other ugly things
-	(
-		export LC_ALL=en_US.UTF-8 PYTHONPATH=..
-		python3 test.py
-		python3 libmagic_test.py
-	)
+	( cd test/; python3 -m pytest )
 }
 
 post_install() {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: python3-magic: update to 0.4.25.
  2022-02-12 21:31 [PR PATCH] python3-magic: update to 0.4.25 paper42
@ 2022-02-13 10:30 ` paper42
  0 siblings, 0 replies; 2+ messages in thread
From: paper42 @ 2022-02-13 10:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

There's a merged pull request on the void-packages repository

python3-magic: update to 0.4.25.
https://github.com/void-linux/void-packages/pull/35567

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-13 10:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-12 21:31 [PR PATCH] python3-magic: update to 0.4.25 paper42
2022-02-13 10:30 ` [PR PATCH] [Merged]: " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).