* [gentoo-commits] repo/gentoo:master commit in: dev-python/rarfile/, dev-python/rarfile/files/
@ 2021-10-03 15:47 Andrey Grozin
0 siblings, 0 replies; 2+ messages in thread
From: Andrey Grozin @ 2021-10-03 15:47 UTC (permalink / raw
To: gentoo-commits
commit: e5014c21c488f89b0b003a57c0f2d0695dd8015b
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 3 15:46:59 2021 +0000
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Sun Oct 3 15:46:59 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5014c21
dev-python/rarfile: bump to 4.0
Package-Manager: Portage-3.0.24, Repoman-3.0.3
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
dev-python/rarfile/Manifest | 1 +
dev-python/rarfile/files/rarfile-4.0.patch | 22 ++++++++++++++++++++++
dev-python/rarfile/metadata.xml | 5 ++++-
dev-python/rarfile/rarfile-4.0.ebuild | 23 +++++++++++++++++++++++
4 files changed, 50 insertions(+), 1 deletion(-)
diff --git a/dev-python/rarfile/Manifest b/dev-python/rarfile/Manifest
index 34147f9a5d9..b951a2e5659 100644
--- a/dev-python/rarfile/Manifest
+++ b/dev-python/rarfile/Manifest
@@ -1 +1,2 @@
DIST rarfile-3.1.tar.gz 121579 BLAKE2B 3419eb0433866e060cc55fb94806a1ef0591c811e3b88eac97b05519e8e72cdb7da1e7f19fec1d5cadf60fa4caba4717cafe3fb1133556ef2d6f327da52c8c34 SHA512 eb910b0adfd1f28497163aa7994ab268d7780707e09931cb01014ffa51d985410b0bc17e5fb9ca133992b28115a0b5f443d01215624145d280f29e7065abb9d9
+DIST rarfile-4.0.tar.gz 148026 BLAKE2B 331548d54dcc3d81c690cc383e36e3f00515999c72abb54060e0dbb34691bb7e06736318a33ec349492e27e561ed2f4ff4446cc5254e9f341f4633adaab878aa SHA512 05e15acd749564288d4f069970ac196344c33fd2710e918b84afe4c388aa364a17c63f86577037524336e3a022f6db2c8619f9b526f89e00753a8ab0d89263d4
diff --git a/dev-python/rarfile/files/rarfile-4.0.patch b/dev-python/rarfile/files/rarfile-4.0.patch
new file mode 100644
index 00000000000..e9d3251b6da
--- /dev/null
+++ b/dev-python/rarfile/files/rarfile-4.0.patch
@@ -0,0 +1,22 @@
+diff -r -U2 rarfile-4.0.orig/test/test_tool.py rarfile-4.0/test/test_tool.py
+--- rarfile-4.0.orig/test/test_tool.py 2020-08-01 01:25:50.000000000 +0700
++++ rarfile-4.0/test/test_tool.py 2021-10-03 22:35:22.329537879 +0700
+@@ -33,5 +33,5 @@
+
+
+-@pytest.mark.skipif(sys.platform == "win32", reason="unar not available on Windows")
++@pytest.mark.skip()
+ def test_unar_tool():
+ install_unar_tool()
+@@ -43,4 +43,5 @@
+
+
++@pytest.mark.skip()
+ def test_bsdtar_tool():
+ install_bsdtar_tool()
+@@ -114,4 +115,5 @@
+
+
++@pytest.mark.skip()
+ def test_cli_help(capsys):
+ assert cli("--help") == 0
diff --git a/dev-python/rarfile/metadata.xml b/dev-python/rarfile/metadata.xml
index 4c817661e64..e9097a4a98f 100644
--- a/dev-python/rarfile/metadata.xml
+++ b/dev-python/rarfile/metadata.xml
@@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
<use>
<flag name="compressed">Enables the module to support compressed v3 archives by calling the <pkg>app-arch/unrar</pkg>.</flag>
</use>
diff --git a/dev-python/rarfile/rarfile-4.0.ebuild b/dev-python/rarfile/rarfile-4.0.ebuild
new file mode 100644
index 00000000000..31f35090b59
--- /dev/null
+++ b/dev-python/rarfile/rarfile-4.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..10} pypy3 )
+inherit distutils-r1
+
+DESCRIPTION="Module for RAR archive reading"
+HOMEPAGE="https://github.com/markokr/rarfile"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="+compressed test"
+REQUIRED_USE="test? ( compressed )"
+
+RDEPEND="compressed? ( app-arch/unrar )"
+
+PATCHES=( "${FILESDIR}"/${P}.patch )
+
+distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/rarfile/, dev-python/rarfile/files/
@ 2023-06-24 10:52 Sam James
0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-06-24 10:52 UTC (permalink / raw
To: gentoo-commits
commit: 2e20c62c163b8c3c3e793cd0ab5277e7cc2ebed2
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 24 10:25:43 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 24 10:52:35 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e20c62c
dev-python/rarfile: enable py3.12, fix pypy3 tests, PEP517
Fixes: 0a18d08236f7980cd5207392c733c46a1f1282e2
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../rarfile/files/rarfile-4.0-fix-pypy-datetime.patch | 19 +++++++++++++++++++
.../{rarfile-4.0-r1.ebuild => rarfile-4.0-r2.ebuild} | 9 ++++++---
2 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/dev-python/rarfile/files/rarfile-4.0-fix-pypy-datetime.patch b/dev-python/rarfile/files/rarfile-4.0-fix-pypy-datetime.patch
new file mode 100644
index 000000000000..8973ce91dffb
--- /dev/null
+++ b/dev-python/rarfile/files/rarfile-4.0-fix-pypy-datetime.patch
@@ -0,0 +1,19 @@
+https://github.com/markokr/rarfile/commit/cd9e650e5294f9c5cd4effcd9705c38a760afde6
+
+From cd9e650e5294f9c5cd4effcd9705c38a760afde6 Mon Sep 17 00:00:00 2001
+From: Marko Kreen <markokr@gmail.com>
+Date: Fri, 5 Aug 2022 19:02:09 +0300
+Subject: [PATCH] nsdatetime: support pypy internal use
+
+--- a/rarfile.py
++++ b/rarfile.py
+@@ -3121,7 +3121,7 @@ class nsdatetime(datetime):
+ __slots__ = ("nanosecond",)
+ nanosecond: int #: Number of nanoseconds, 0 <= nanosecond < 999999999
+
+- def __new__(cls, year, month, day, hour=0, minute=0, second=0,
++ def __new__(cls, year, month=None, day=None, hour=0, minute=0, second=0,
+ microsecond=0, tzinfo=None, *, fold=0, nanosecond=0):
+ usec, mod = divmod(nanosecond, 1000) if nanosecond else (microsecond, 0)
+ if mod == 0:
+
diff --git a/dev-python/rarfile/rarfile-4.0-r1.ebuild b/dev-python/rarfile/rarfile-4.0-r2.ebuild
similarity index 73%
rename from dev-python/rarfile/rarfile-4.0-r1.ebuild
rename to dev-python/rarfile/rarfile-4.0-r2.ebuild
index b4e875c7ab72..7080df4c13ce 100644
--- a/dev-python/rarfile/rarfile-4.0-r1.ebuild
+++ b/dev-python/rarfile/rarfile-4.0-r2.ebuild
@@ -3,8 +3,8 @@
EAPI=8
-DISTUTLS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} pypy3 )
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} pypy3 )
inherit distutils-r1 pypi
DESCRIPTION="Module for RAR archive reading"
@@ -18,6 +18,9 @@ REQUIRED_USE="test? ( compressed )"
RDEPEND="compressed? ( app-arch/unrar )"
-PATCHES=( "${FILESDIR}"/${P}.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}.patch
+ "${FILESDIR}"/${P}-fix-pypy-datetime.patch
+)
distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-24 10:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-03 15:47 [gentoo-commits] repo/gentoo:master commit in: dev-python/rarfile/, dev-python/rarfile/files/ Andrey Grozin
-- strict thread matches above, loose matches on Subject: below --
2023-06-24 10:52 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox