14
0
Commit Graph

10 Commits

Author SHA256 Message Date
380b874fb8 - update to 5.2:
* Change to the library: fix inoperative `pathname` argument of
    `add_files` method (#135), by @nvinson.
  * Change to the tests: update a test to handle new libarchive
    versions (#131).
- drop libarchive.patch (upstream)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=19
2025-04-30 06:26:25 +00:00
9175c1a155 Accepting request 1223660 from home:mcalabkova:branches:devel:languages:python
- Add upstream libarchive.patch to fix tests

OBS-URL: https://build.opensuse.org/request/show/1223660
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=17
2024-11-12 20:58:22 +00:00
2e08ee994b - update to 5.1:
* Fix the `format_name` property and move it from the
    `ArchiveEntry` class to the `ArchiveRead` class (#127).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=15
2024-03-15 21:09:58 +00:00
d0bb7fcc8c - update to 5.0:
* 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
  * Removed obsolete dependencies (`mock` and `six`) from
    `tox.ini` (#119).
  * Always use `UTF-8` when reading the `PKG-INFO` and
    `README.rst` files (#120).
  * Replaced `pytest-xdist` with `pytest-forked` in `tox.ini`
- drop python-libarchive-c-no-mock.patch (upstream)
    BREAKING & SECURITY: The archive extraction functions now pass 3 security flags (SECURE_NODOTDOT, SECURE_NOABSOLUTEPATHS

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=13
2023-12-07 22:22:36 +00:00
03c7ebd5ab Accepting request 980511 from home:darix:branches:devel:languages:python
- Hardcode libarchive13 for now until we make macro based requires
  work with the python package magic. libarchive13 was the package
  name since sle12.

- we only need the shared library package for libarchive and not
  the devel package:
  use %requires_file to get the package of the currently installed
  via the libarchive.so symlink in libarchive-devel

OBS-URL: https://build.opensuse.org/request/show/980511
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=11
2022-06-03 13:21:38 +00:00
b8fdb0d8eb Accepting request 964310 from home:pgajdos:python
- version update to 4.0
  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.
  3.2
  ---
    This release fixes the seek callbacks passed to libarchive by the custom_reader and stream_reader function. See #116 for more details.
  3.1
  ---
  This release is mostly meant to fix #113 (a bug introduced in 3.0), but it also contains the following changes:
    the ffi.archive_error() function now returns an exception instead of raising it
    seekable_stream_reader is now an alias of stream_reader
    the misleadingly named ffi.VOID_CB function has been removed
  3.0
  ---
  Changes to the library:

OBS-URL: https://build.opensuse.org/request/show/964310
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=9
2022-03-23 21:25:41 +00:00
Tomáš Chvátal
9e29a35e2b Accepting request 794181 from home:pgajdos:python
- version update to 2.9
  * Changes to the library:
      optimized the ArchiveEntry class (#94)
      added support for the zstd format (#90)
      fixed the top-level __all__ list (7b97d8b)
      updated the code to support Python 3.8 (#88)
      improved the add_file_from_memory method (#85 and #86)
      lowered the level of log messages from warning to info (#83)
  * Tests:
      dropped testing with Python 3.4, added 3.7 and 3.8 (#88)
      fixed unicode handling in entry tests (#84)

OBS-URL: https://build.opensuse.org/request/show/794181
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=7
2020-04-15 13:01:50 +00:00
06c3b9e539 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=5
2018-12-04 13:38:15 +00:00
Tomáš Chvátal
b1622ac83f Accepting request 617344 from home:lachs0r:branches:devel:languages:python
- Update to version 2.8
  * add support for setting atime, ctime, mtime and birthtime
  * tell libarchive when writing an archive is aborted due to an
    exception
  * add support for getting uid and gid
  * add support for high resolution timestamps
  * add two new archive readers: stream_reader and custom_reader
  * add missing archive extraction flags
  * add the lz4 and warc formats
  * add support for write options and uid/gid lookup

OBS-URL: https://build.opensuse.org/request/show/617344
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=3
2018-06-18 05:56:41 +00:00
Todd R
8b02115c79 Accepting request 522399 from home:TheBlackCat:branches:devel:languages:python
singlespec version of python3-libarchive-c

OBS-URL: https://build.opensuse.org/request/show/522399
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libarchive-c?expand=0&rev=1
2017-09-08 18:20:27 +00:00