Skip to content

Commit

Permalink
Update configure script to install system_requires extra_requires on …
Browse files Browse the repository at this point in the history
…mac arm64

    * Bump commoncode version

Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Aug 25, 2024
1 parent 22c1913 commit 59853cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
6 changes: 5 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ BASE=".[packages]"
BASE_DEV=".[packages,testing]"
if [[ $OSTYPE == 'darwin'* ]]; then
BASE="."
BASE_DEV=".[testing]"
if [[ $(uname -m) == 'arm64' ]]; then
BASE_DEV=".[system_provided,testing]"
else
BASE_DEV=".[testing]"
fi
fi

# Requirement arguments passed to pip and used by default or with --dev.
Expand Down
8 changes: 4 additions & 4 deletions setup-mini.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ install_requires =
chardet >= 3.0.0
click >= 6.7, !=7.0
colorama >= 0.3.9
commoncode >= 31.0.3
commoncode >= 31.2.1
container-inspector >= 31.0.0
debian-inspector >= 31.1.0
dparse2 >= 0.7.0
Expand Down Expand Up @@ -126,9 +126,9 @@ full =
extractcode[full] >= 31.0.0

system_provided =
typecode_libmagic-system-provided
extractcode_7z_system_provided
extractcode_libarchive_system_provided
typecode_libmagic-system-provided >= 32.0.0
extractcode_7z_system_provided >= 32.0.0
extractcode_libarchive_system_provided >= 32.0.0

testing =
pytest >= 6, != 7.0.0
Expand Down
14 changes: 10 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ install_requires =
chardet >= 3.0.0
click >= 6.7, !=7.0
colorama >= 0.3.9
commoncode >= 31.0.3
commoncode >= 31.2.1
container-inspector >= 31.0.0
debian-inspector >= 31.1.0
dparse2 >= 0.7.0
Expand Down Expand Up @@ -112,9 +112,8 @@ install_requires =
xmltodict >= 0.11.0
zipp >= 3.0.0; python_version < "3.9"
typecode >= 30.0.1
typecode[full] >= 30.0.1
extractcode[full] >= 31.0.0

typecode[full] >= 30.0.1; sys_platform != "darwin" and platform_machine != "arm64"
extractcode[full] >= 31.0.0; sys_platform != "darwin" and platform_machine != "arm64"

[options.packages.find]
where = src
Expand All @@ -125,6 +124,13 @@ full =
typecode[full] >= 30.0.0
extractcode[full] >= 31.0.0

system_provided =
typecode >= 30.0.1
extractcode >= 31.0.0
typecode_libmagic_system_provided >= 32.0.0
extractcode_7z_system_provided >= 32.0.0
extractcode_libarchive_system_provided >= 32.0.0

testing =
pytest >= 6, != 7.0.0
pytest-xdist >= 2
Expand Down

0 comments on commit 59853cf

Please sign in to comment.