Browse Source

Fixes for version number verification

test_fixup
Vadim Lebedev 2 years ago
parent
commit
e11c498291
2 changed files with 8 additions and 7 deletions
  1. +4
    -7
      .github/workflows/build-wheels.yaml
  2. +4
    -0
      libarchive/__init__.py

+ 4
- 7
.github/workflows/build-wheels.yaml View File

@@ -12,11 +12,6 @@ jobs:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64
steps:
- name: Status
run: |
git status
ls -lR
- uses: actions/checkout@v2

- name: Print System Information
@@ -74,9 +69,11 @@ jobs:
- name: Mini test
run: |
cd /tmp
python3 -c 'import libarchive; print(libarchive._libarchive.ARCHIVE_VERSION_STRING.split()[1])' \
python3 -c 'import libarchive; print(libarchive.version())' \
| tee strace.out
find / -name 'libarchive*.so' | xargs ls -l
find / -name 'libarchive*.so' | xargs strings | grep 'libarchive'
- name: version
run: |


+ 4
- 0
libarchive/__init__.py View File

@@ -94,6 +94,10 @@ class EOF(Exception):

pass

def version():
'''Returns the version of the libarchive library.'''
return _libarchive.ARCHIVE_VERSION_STRING.split()[1]

def get_error(archive):
'''Retrieves the last error description for the given archive instance.'''


Loading…
Cancel
Save