python-cx-freeze: update to 8.4.0
This commit is contained in:
parent
42ebc442da
commit
acdfcfb1d2
@ -6,9 +6,9 @@
|
|||||||
_realname=cx-freeze
|
_realname=cx-freeze
|
||||||
pkgbase=mingw-w64-python-${_realname}
|
pkgbase=mingw-w64-python-${_realname}
|
||||||
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
pkgname=("${MINGW_PACKAGE_PREFIX}-python-${_realname}")
|
||||||
pkgver=8.3.0
|
pkgver=8.4.0
|
||||||
pkgrel=2
|
pkgrel=1
|
||||||
pkgdesc="Creates standalone executables from Python scripts, with the same performance (mingw-w64)"
|
pkgdesc="Creates standalone executables from Python scripts with the same performance as the original script (mingw-w64)"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64')
|
||||||
url="https://github.com/marcelotduarte/cx_Freeze/"
|
url="https://github.com/marcelotduarte/cx_Freeze/"
|
||||||
@ -34,8 +34,8 @@ makedepends=(
|
|||||||
"${MINGW_PACKAGE_PREFIX}-tools"
|
"${MINGW_PACKAGE_PREFIX}-tools"
|
||||||
)
|
)
|
||||||
checkdepends=(
|
checkdepends=(
|
||||||
|
"${MINGW_PACKAGE_PREFIX}-python-coverage"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest"
|
"${MINGW_PACKAGE_PREFIX}-python-pytest"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-cov"
|
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-mock"
|
"${MINGW_PACKAGE_PREFIX}-python-pytest-mock"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-timeout"
|
"${MINGW_PACKAGE_PREFIX}-python-pytest-timeout"
|
||||||
"${MINGW_PACKAGE_PREFIX}-python-pytest-xdist"
|
"${MINGW_PACKAGE_PREFIX}-python-pytest-xdist"
|
||||||
@ -43,17 +43,14 @@ checkdepends=(
|
|||||||
options=(!strip)
|
options=(!strip)
|
||||||
source=(
|
source=(
|
||||||
"https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz"
|
"https://pypi.org/packages/source/${_realname::1}/${_realname/-/_}/${_realname/-/_}-${pkgver}.tar.gz"
|
||||||
"c787ff9383c6f83a45a4c7324d681a3929d63bd1.patch"
|
|
||||||
#"${url}/archive/${pkgver}/${_realname}-${pkgver}.tar.gz"
|
#"${url}/archive/${pkgver}/${_realname}-${pkgver}.tar.gz"
|
||||||
)
|
)
|
||||||
sha256sums=('491998d513f04841ec7967e2a3792db198597bde8a0c9333706b1f96060bdb35'
|
sha256sums=('8e2e332f571529c7b55cc58521add9de222c4a681620a537b1d29c5d17a24041')
|
||||||
'ab698b98d9936832a64779593a3100a078372a42e839729ad8bda477e764a5fe')
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd cx_freeze-${pkgver}
|
cd cx_freeze-${pkgver}
|
||||||
# ignore version check for setuptools and bump lief version
|
# ignore version check for setuptools
|
||||||
sed -i 's/"setuptools>=.*"/"setuptools"/' pyproject.toml
|
sed -i 's/"setuptools>=.*"/"setuptools"/' pyproject.toml
|
||||||
patch -Np1 -i ../c787ff9383c6f83a45a4c7324d681a3929d63bd1.patch
|
|
||||||
|
|
||||||
rm -Rf "${srcdir}"/python-${_realname}-${MSYSTEM}
|
rm -Rf "${srcdir}"/python-${_realname}-${MSYSTEM}
|
||||||
cp -a "${srcdir}"/cx_freeze-${pkgver} "${srcdir}"/python-${_realname}-${MSYSTEM}
|
cp -a "${srcdir}"/cx_freeze-${pkgver} "${srcdir}"/python-${_realname}-${MSYSTEM}
|
||||||
@ -67,7 +64,7 @@ build() {
|
|||||||
check() {
|
check() {
|
||||||
cd python-${_realname}-${MSYSTEM}
|
cd python-${_realname}-${MSYSTEM}
|
||||||
pip install cx_Freeze -f dist --no-deps --no-index
|
pip install cx_Freeze -f dist --no-deps --no-index
|
||||||
pytest -nauto --cov="cx_Freeze"
|
coverage run
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|||||||
@ -1,44 +0,0 @@
|
|||||||
--- a/pyproject.toml
|
|
||||||
+++ b/pyproject.toml
|
|
||||||
@@ -49,7 +49,7 @@ dependencies = [
|
|
||||||
# Windows
|
|
||||||
"cabarchive>=0.2.4 ;sys_platform == 'win32'",
|
|
||||||
"cx_Logging>=3.1 ;sys_platform == 'win32' and platform_machine != 'ARM64'",
|
|
||||||
- "lief>=0.15.1,<=0.16.5 ;sys_platform == 'win32' and platform_machine != 'ARM64'",
|
|
||||||
+ "lief>=0.15.1,<=0.16.6 ;sys_platform == 'win32'",
|
|
||||||
"striprtf>=0.0.26 ;sys_platform == 'win32'",
|
|
||||||
]
|
|
||||||
dynamic = ["version"]
|
|
||||||
--- a/requirements.txt
|
|
||||||
+++ b/requirements.txt
|
|
||||||
@@ -11,5 +11,5 @@ patchelf>=0.14 ;sys_platform == 'linux' and platform_machine == 's390x'
|
|
||||||
dmgbuild>=1.6.1 ;sys_platform == 'darwin'
|
|
||||||
cabarchive>=0.2.4 ;sys_platform == 'win32'
|
|
||||||
cx_Logging>=3.1 ;sys_platform == 'win32' and platform_machine != 'ARM64'
|
|
||||||
-lief>=0.15.1,<=0.16.5 ;sys_platform == 'win32' and platform_machine != 'ARM64'
|
|
||||||
+lief>=0.15.1,<=0.16.6 ;sys_platform == 'win32'
|
|
||||||
striprtf>=0.0.26 ;sys_platform == 'win32'
|
|
||||||
--- a/tests/test_dep_parser.py
|
|
||||||
+++ b/tests/test_dep_parser.py
|
|
||||||
@@ -24,7 +24,9 @@
|
|
||||||
|
|
||||||
if IS_WINDOWS:
|
|
||||||
PACKAGE_VERSION = [("imagehlp", "bind")]
|
|
||||||
- if not IS_ARM_64:
|
|
||||||
+ if IS_ARM_64:
|
|
||||||
+ PACKAGE_VERSION += [("lief", "0.16.6")]
|
|
||||||
+ else:
|
|
||||||
# use 0.16.4 to work with pypi and conda versions
|
|
||||||
PACKAGE_VERSION += [("lief", "0.15.1"), ("lief", "0.16.4")]
|
|
||||||
elif IS_MINGW:
|
|
||||||
--- a/tests/test_windows_manifest.py
|
|
||||||
+++ b/tests/test_windows_manifest.py
|
|
||||||
@@ -77,7 +77,7 @@ def test_manifest(tmp_package) -> None:
|
|
||||||
LIEF_VERSIONS = []
|
|
||||||
if IS_WINDOWS:
|
|
||||||
if IS_ARM_64:
|
|
||||||
- LIEF_VERSIONS += ["disabled"]
|
|
||||||
+ LIEF_VERSIONS += ["0.16.6"]
|
|
||||||
else:
|
|
||||||
# use 0.16.4 to work with pypi and conda versions
|
|
||||||
LIEF_VERSIONS += ["0.15.1", "0.16.4"]
|
|
||||||
Loading…
x
Reference in New Issue
Block a user