Date: Friday, October 4, 2019 @ 15:37:08 Author: felixonmars Revision: 512742
upgpkg: python-cx_freeze 6.0-1 Modified: python-cx_freeze/trunk/PKGBUILD Deleted: python-cx_freeze/trunk/python3.7.patch -----------------+ PKGBUILD | 19 ++++++------------- python3.7.patch | 23 ----------------------- 2 files changed, 6 insertions(+), 36 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-10-04 15:35:46 UTC (rev 512741) +++ PKGBUILD 2019-10-04 15:37:08 UTC (rev 512742) @@ -7,26 +7,19 @@ # Contributor: Julien Duponchelle <[email protected]> pkgname=python-cx_freeze -pkgver=5.1.1 -pkgrel=4 +pkgver=6.0 +pkgrel=1 pkgdesc='Utilities for freezing Python scripts into executables' arch=('x86_64') url='https://anthony-tuininga.github.io/cx_Freeze' license=('PSF') depends=('python') -conflicts=('cx_freeze' 'python2-cx_freeze') +conflicts=('cx_freeze') makedepends=('python-setuptools') -checkdepends=('python-nose' 'python2-nose' 'python-openpyxl' 'python2-openpyxl' 'python2-mock') -source=("$pkgname-$pkgver.tar.gz::https://github.com/anthony-tuininga/cx_Freeze/archive/$pkgver.tar.gz" - python3.7.patch) -sha512sums=('95d70c23678080fec96df78658aeaaeb81ce0660ce242a363699d6b82d926d021519f9b67dc458b0d2e3c89230a582cfec6862a2346bf0deacc636ce125c0c96' - '9009d617213bcf57124b32b1680fa1a2282885ff27fdc6c14482c3db34b2859d2e6cdc724c114a2ccd3a90f11c83e3c3837d1df58d13a041ab1d2439804cb1d4') +checkdepends=('python-nose' 'python-openpyxl') +source=("$pkgname-$pkgver.tar.gz::https://github.com/anthony-tuininga/cx_Freeze/archive/$pkgver.tar.gz") +sha512sums=('24ca10e50f118add6fc9bf371e6ce24c17b00285d73963bbd1b3193977e735b26ba7bb314801208d92d6a0eeca0b5d3a661d5aeea317ac22a752cb9b224d6cd3') -prepare() { - cd cx_Freeze-$pkgver - patch -p1 -i ../python3.7.patch -} - build() { cd cx_Freeze-$pkgver python setup.py build Deleted: python3.7.patch =================================================================== --- python3.7.patch 2019-10-04 15:35:46 UTC (rev 512741) +++ python3.7.patch 2019-10-04 15:37:08 UTC (rev 512742) @@ -1,23 +0,0 @@ ---- orig/cx_Freeze-5.1.1/cx_Freeze/freezer.py 2017-12-09 23:11:29.000000000 +0100 -+++ cx_Freeze-5.1.1/cx_Freeze/freezer.py 2018-08-31 13:41:19.028655982 +0200 -@@ -550,13 +550,18 @@ - # the file is up to date so we can safely set this value to zero - if module.code is not None: - if module.file is not None and os.path.exists(module.file): -- mtime = os.stat(module.file).st_mtime -+ stat = os.stat(module.file) -+ mtime = stat.st_mtime -+ size = stat.st_size & 0xFFFFFFFF - else: - mtime = time.time() -+ size = 0 - if sys.version_info[:2] < (3, 3): - header = magic + struct.pack("<i", int(mtime)) -+ elif sys.version_info[:2] == (3, 7): -+ header = magic + struct.pack("<iii",0, int(mtime), size) - else: -- header = magic + struct.pack("<ii", int(mtime), 0) -+ header = magic + struct.pack("<ii", int(mtime), size) - data = header + marshal.dumps(module.code) - - # if the module should be written to the file system, do so
