pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/archivers/py-libarchive-c



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Jan 18 18:11:39 UTC 2024

Modified Files:
        pkgsrc/archivers/py-libarchive-c: Makefile PLIST distinfo

Log Message:
py-libarchive-c: updated to 5.0

5.0

Changes to the library:

It is now possible to specify a codec for archive entry metadata (pathname, linkpath, uname and gname)
BREAKING: If you use the archive_read_class and archive_write_class arguments, the classes you provide will receive a codec name as a second positional argument.
The timestamp_nsec arguments of the legacy ArchiveEntry.set_{a,c,m}time methods are now optional

Changes to the tests and packaging:

Removed obsolete dependencies (mock and six) from tox.ini
Always use UTF-8 when reading the PKG-INFO and README.rst files
Replaced pytest-xdist with pytest-forked in tox.ini
Dropped testing with Python 3.7. Added 3.10 and 3.11

4.0

BREAKING & SECURITY: The archive extraction functions now pass 3 security flags (SECURE_NODOTDOT, SECURE_NOABSOLUTEPATHS and SECURE_SYMLINKS) to libarchive by default, unless the current directory is 
the root.
BREAKING: The ArchiveEntry properties atime, mtime, ctime, birthtime and size now have the value None instead of 0 when they're unset.
BREAKING: The ArchiveEntry.pathname property now attempts to decode bytes using UTF-8. This breaks reading archives that contain file names which look like UTF-8 but aren't, if such a thing exists. 
Proper support of encodings will probably be added in the next version.
Multiple entries from the same archive can now be kept in memory, however only the current entry's content can be read.
The filetype, linkpath, size, mode, redvmajor, redvminor, uid and gid attributes of an archive entry can now be modified.
The four time properties of archive entries now have setters, so for example entry.set_mtime(0, 0) can be replaced by entry.mtime = 0.
Archive entries have 4 new properties: perm, rdev, uname and gname.
When adding files to an archive, a destination path can now be specified.
The ArchiveRead class now has a bytes_read property.
The ArchiveWrite class now has a bytes_written property.
Python 3.6 is no longer tested.
The documentation has been improved.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/archivers/py-libarchive-c/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/archivers/py-libarchive-c/PLIST
cvs rdiff -u -r1.8 -r1.9 pkgsrc/archivers/py-libarchive-c/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/archivers/py-libarchive-c/Makefile
diff -u pkgsrc/archivers/py-libarchive-c/Makefile:1.14 pkgsrc/archivers/py-libarchive-c/Makefile:1.15
--- pkgsrc/archivers/py-libarchive-c/Makefile:1.14      Tue Jan  4 20:52:31 2022
+++ pkgsrc/archivers/py-libarchive-c/Makefile   Thu Jan 18 18:11:39 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2022/01/04 20:52:31 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2024/01/18 18:11:39 adam Exp $
 
-DISTNAME=      libarchive-c-2.9
+DISTNAME=      libarchive-c-5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    archivers python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=l/libarchive-c/}
 
@@ -11,8 +10,13 @@ HOMEPAGE=    https://github.com/Changaco/py
 COMMENT=       Python interface to libarchive
 LICENSE=       cc0-1.0-universal
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+
 USE_LANGUAGES= # none
 
+PYTHON_VERSIONS_INCOMPATIBLE=  27
+
 .include "../../archivers/libarchive/buildlink3.mk"
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/archivers/py-libarchive-c/PLIST
diff -u pkgsrc/archivers/py-libarchive-c/PLIST:1.2 pkgsrc/archivers/py-libarchive-c/PLIST:1.3
--- pkgsrc/archivers/py-libarchive-c/PLIST:1.2  Fri Jun 15 08:08:18 2018
+++ pkgsrc/archivers/py-libarchive-c/PLIST      Thu Jan 18 18:11:39 2024
@@ -1,8 +1,9 @@
-@comment $NetBSD: PLIST,v 1.2 2018/06/15 08:08:18 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.3 2024/01/18 18:11:39 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.md
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/libarchive/__init__.py
 ${PYSITELIB}/libarchive/__init__.pyc
 ${PYSITELIB}/libarchive/__init__.pyo

Index: pkgsrc/archivers/py-libarchive-c/distinfo
diff -u pkgsrc/archivers/py-libarchive-c/distinfo:1.8 pkgsrc/archivers/py-libarchive-c/distinfo:1.9
--- pkgsrc/archivers/py-libarchive-c/distinfo:1.8       Tue Oct 26 09:57:14 2021
+++ pkgsrc/archivers/py-libarchive-c/distinfo   Thu Jan 18 18:11:39 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 09:57:14 nia Exp $
+$NetBSD: distinfo,v 1.9 2024/01/18 18:11:39 adam Exp $
 
-BLAKE2s (libarchive-c-2.9.tar.gz) = dd51c2315a9ea7fe8b3523108617b91cef8e9ae4eb314693a777a8dcf2d80888
-SHA512 (libarchive-c-2.9.tar.gz) = b154cfe39247050c156d57f657b9668f3b1add879b7fb5b32cbc127becee63d1898fb1c4bd60e7fe72e814f544ddefa6680d582fec28b0feed90940fae8cc238
-Size (libarchive-c-2.9.tar.gz) = 46408 bytes
+BLAKE2s (libarchive-c-5.0.tar.gz) = 46791e83b63f5a034a49bba9001c3dbc21c40e0b98b3668dec1df71a297247d0
+SHA512 (libarchive-c-5.0.tar.gz) = a2e9db98cd6e36d2ea696968ab45c915607f3e0ef076da411f722a2300001afaad61ab3723dfe1da1292bbe39acdab90f54786846f37268a17e9f7ce2c58901d
+Size (libarchive-c-5.0.tar.gz) = 52186 bytes



Home | Main Index | Thread Index | Old Index