./archivers/py-libarchive-c, Python interface to libarchive

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 5.2, Package name: py312-libarchive-c-5.2, Maintainer: pkgsrc-users

A Python interface to libarchive. It uses the standard ctypes module
to dynamically load and access the C library.


Required to run:
[archivers/libarchive] [devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 51.244 KB

Version history: (Expand)


CVS history: (Expand)


   2025-03-14 16:23:33 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-libarchive-c: updated to 5.2

5.2

Change to the library: fix inoperative pathname argument of add_files method.
Change to the tests: update a test to handle new libarchive versions.
Change to the packaging: stop building “universal” wheels.
   2024-11-11 08:29:31 by Thomas Klausner | Files touched by this commit (862)
Log message:
py-*: remove unused tool dependency

py-setuptools includes the py-wheel functionality nowadays
   2024-03-06 19:53:34 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-libarchive-c: updated to 5.1

5.1

Fix the format_name property and move it from the ArchiveEntry class to the \ 
ArchiveRead class
   2024-01-18 19:11:39 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
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.
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-10-26 11:57:20 by Nia Alarie | Files touched by this commit (140)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and SHA512
hashes.
   2021-10-07 15:06:15 by Nia Alarie | Files touched by this commit (140)
Log message:
archivers: Remove SHA1 distfiles hashes
   2019-12-11 14:46:46 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-libarchive-c: updated to 2.9

2.9:
Changes to the library:
optimized the ArchiveEntry class
added support for the zstd format
fixed the top-level __all__ list (7b97d8b)
updated the code to support Python 3.8
improved the add_file_from_memory method
lowered the level of log messages from warning to info

Tests:
dropped testing with Python 3.4, added 3.7 and 3.8
fixed unicode handling in entry tests