Skip to content

Commit 0d74eca

Browse files
authored
Merge pull request #4 from nexB/v21.01.21-prep
V21.01.21 prep
2 parents a6422fc + 4c913f3 commit 0d74eca

File tree

854 files changed

+198
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

854 files changed

+198
-144
lines changed

CHANGELOG.rst

Lines changed: 12 additions & 1 deletion

README.rst

Lines changed: 1 addition & 1 deletion

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function setup {
3535

3636
setup
3737

38-
$CONFIGURE_ROOT_DIR/tmp/bin/pip install -e .[testing]
38+
$CONFIGURE_ROOT_DIR/tmp/bin/pip install -e .[full] -e .[testing]
3939

4040
if [ -f "$CONFIGURE_ROOT_DIR/tmp/bin/activate" ]; then
4141
source "$CONFIGURE_ROOT_DIR/tmp/bin/activate"

configure.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ call mkdir "%CFG_ROOT_DIR%tmp"
8989
call curl -o "%CFG_ROOT_DIR%tmp\virtualenv.pyz" https://bootstrap.pypa.io/virtualenv.pyz
9090
call %PYTHON_EXECUTABLE% "%CFG_ROOT_DIR%tmp\virtualenv.pyz" "%CFG_ROOT_DIR%tmp"
9191
call "%CFG_ROOT_DIR%tmp\Scripts\activate"
92-
call "%CFG_ROOT_DIR%tmp\Scripts\pip" install --upgrade pip virtualenv setuptools wheel
93-
call "%CFG_ROOT_DIR%tmp\Scripts\pip" install -e .[testing]
92+
call "%CFG_ROOT_DIR%tmp\Scripts\pip" install -e .[full] -e .[testing]
9493

9594
@rem Return a proper return code on failure
9695
if %ERRORLEVEL% neq 0 (

etc/ci/azure-win.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ parameters:
33
image_name: ''
44
python_versions: []
55
test_suites: {}
6-
python_architecture: x86
6+
python_architecture: x64
77

88
jobs:
99
- job: ${{ parameters.job_name }}

extractcode.ABOUT

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
about_resource: .
2+
copyright: copyright (c) nexB. Inc. and others
3+
description: A mostly universal archive extractor using z7zip, libarchve, other
4+
libraries and the Python standard library for reliable archive extraction.
5+
It is used by ScanCode toolkit and related projects
6+
keywords: archive, extraction, libarchive, 7zip, scancode-toolkit
7+
homepage_url: https://github.com/nexB/extractcode
8+
holder: nexB. Inc. and others
9+
holder_contact: info@aboutcode.org
10+
license_expression: apache-2.0
11+
name: extractcode
12+
package_url: pkg:pypi/extractcode
13+
primary_language: Python

setup.cfg

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ author_email = info@aboutcode.org
1010
license = Apache-2.0
1111

1212
# description must be on ONE line https://github.com/pypa/setuptools/issues/1390
13-
description = A set of utilities and functions for extracting archives.
13+
description = A mostly universal archive extractor using z7zip, libarchve, other libraries and the Python standard library for reliable archive extraction.
1414
long_description = file:README.rst
1515
url = https://github.com/nexB/extractcode
1616
classifiers =
@@ -31,28 +31,32 @@ keywords =
3131
[options]
3232
package_dir=
3333
=src
34-
packages=find:
34+
packages = find:
3535
include_package_data = true
3636
zip_safe = false
3737
install_requires =
38-
commoncode >= 21.1
39-
plugincode >= 20.09
40-
typecode >= 21.1
41-
typecode-libmagic >= 5.39.1.1
42-
patch >= 1.15
43-
extractcode-7z >= 16.5
44-
extractcode-libarchive >= 3.4.3
38+
commoncode >= 21.1.21
39+
plugincode >= 21.1.21
40+
typecode >= 21.1.21
41+
patch >= 1.16
4542

4643
setup_requires = setuptools_scm[toml] >= 4
4744

4845
[options.packages.find]
4946
where=src
5047

5148
[options.extras_require]
49+
full =
50+
extractcode-7z >= 16.5.210122
51+
extractcode_libarchive >= 3.5.1.210122
52+
typecode[full] >= 21.1.21
53+
5254
testing =
5355
# upstream
56+
attr
5457
pytest >= 6
5558
pytest-xdist >= 2
59+
5660
docs=
5761
Sphinx>=3.3.1
5862
sphinx-rtd-theme>=0.5.0

src/extractcode/archive.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from commoncode import filetype
2727
from commoncode import functional
2828
from commoncode.ignore import is_ignored
29-
from commoncode.system import on_linux
3029

3130
from typecode import contenttype
3231

src/extractcode/extract.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929

3030
from commoncode import fileutils
3131
from commoncode import ignore
32+
3233
import extractcode
34+
import extractcode.archive
3335

3436
logger = logging.getLogger(__name__)
3537
TRACE = False

src/extractcode/libarchive2.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,16 @@ def load_lib():
9393
"""
9494
from plugincode.location_provider import get_location
9595

96-
# get paths from plugins
9796
dll = get_location(EXTRACTCODE_LIBARCHIVE_DLL)
9897
libdir = get_location(EXTRACTCODE_LIBARCHIVE_LIBDIR)
98+
if not (dll and libdir) or not os.path.isfile(dll) or not os.path.isdir(libdir):
99+
raise Exception(
100+
'CRITICAL: libarchive DLL is not installed. '
101+
'Unable to continue: you need to install a valid extractcode-libarchive '
102+
'plugin with a valid libarchive DLL available.'
103+
)
99104
return command.load_shared_library(dll, libdir)
105+
100106

101107

102108
def set_env_with_tz():

0 commit comments

Comments
 (0)