[arch-commits] Commit in python-xlwt/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sun Dec 25 16:46:35 UTC 2016


    Date: Sunday, December 25, 2016 @ 16:46:34
  Author: felixonmars
Revision: 201957

archrelease: copy trunk to community-staging-any

Added:
  python-xlwt/repos/community-staging-any/
  python-xlwt/repos/community-staging-any/PKGBUILD
    (from rev 201955, python-xlwt/trunk/PKGBUILD)
  python-xlwt/repos/community-staging-any/python3.6.patch
    (from rev 201955, python-xlwt/trunk/python3.6.patch)

-----------------+
 PKGBUILD        |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 python3.6.patch |   36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)

Copied: python-xlwt/repos/community-staging-any/PKGBUILD (from rev 201955, python-xlwt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 16:46:34 UTC (rev 201957)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Andrzej Giniewicz <gginiu at gmail.com>
+# Contributor: Aaron DeVore <aaron.devore at gmail.com>
+# Contributor: David Moore <davidm at sjsoft.com>
+
+pkgbase=python-xlwt
+pkgname=('python2-xlwt' 'python-xlwt')
+pkgver=1.1.2
+pkgrel=2
+pkgdesc="Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files"
+arch=('any')
+url="http://www.python-excel.org/"
+license=('BSD')
+makedepends=('python2-setuptools' 'python-setuptools')
+source=("https://github.com/python-excel/xlwt/archive/${pkgver}.tar.gz"
+        python3.6.patch)
+md5sums=('7533c37c5908200627b754c135241b75'
+         '0c6581f27989b3c141d78b53b09092a1')
+
+build() {
+  cd "$srcdir"
+  (cd xlwt-${pkgver}; patch -p1 -i ../python3.6.patch)
+  cp -a xlwt-${pkgver} xlwt-py2-${pkgver}
+
+  msg "Building Python2"
+  cd "$srcdir"/xlwt-py2-${pkgver}
+  python2 setup.py build
+
+  msg "Building Python3"
+  cd "$srcdir"/xlwt-${pkgver}
+  python setup.py build
+}
+
+package_python2-xlwt() {
+  depends=('python2')
+
+  cd "$srcdir"/xlwt-py2-${pkgver}
+
+  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 docs/licenses.rst "$pkgdir/usr/share/licenses/$pkgname/licences.rst"
+}
+
+package_python-xlwt() {
+  depends=('python')
+
+  cd "$srcdir"/xlwt-${pkgver}
+
+  python setup.py install --skip-build --root="$pkgdir" --optimize=1
+
+  install -Dm644 docs/licenses.rst "$pkgdir/usr/share/licenses/$pkgname/licences.rst"
+}
+

Copied: python-xlwt/repos/community-staging-any/python3.6.patch (from rev 201955, python-xlwt/trunk/python3.6.patch)
===================================================================
--- community-staging-any/python3.6.patch	                        (rev 0)
+++ community-staging-any/python3.6.patch	2016-12-25 16:46:34 UTC (rev 201957)
@@ -0,0 +1,36 @@
+From 86564ef26341020316cd8a27c704ef1dc5a6129b Mon Sep 17 00:00:00 2001
+From: Jon Dufresne <jon.dufresne at gmail.com>
+Date: Thu, 18 Aug 2016 17:17:24 -0700
+Subject: [PATCH] Remove LOCALE from str regular expression
+
+Fixes warning:
+
+DeprecationWarning: LOCALE flag with a str pattern is deprecated. Will be an error in 3.6
+
+Fixes #90
+---
+ xlwt/ExcelFormulaLexer.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/xlwt/ExcelFormulaLexer.py b/xlwt/ExcelFormulaLexer.py
+index 46a2bff..8ff7386 100644
+--- a/xlwt/ExcelFormulaLexer.py
++++ b/xlwt/ExcelFormulaLexer.py
+@@ -3,7 +3,7 @@
+ 
+ from .antlr import EOF, CommonToken as Tok, TokenStream, TokenStreamException
+ from . import ExcelFormulaParser
+-from re import compile as recompile, LOCALE, IGNORECASE, VERBOSE
++from re import compile as recompile, IGNORECASE, VERBOSE
+ 
+ 
+ int_const_pattern = r"\d+\b"
+@@ -50,7 +50,7 @@
+ 
+ _re = recompile(
+     '(' + ')|('.join([i[0] for i in pattern_type_tuples]) + ')',
+-    VERBOSE+LOCALE+IGNORECASE)
++    VERBOSE+IGNORECASE)
+ 
+ _toktype = [None] + [i[1] for i in pattern_type_tuples]
+ # need dummy at start because re.MatchObject.lastindex counts from 1



More information about the arch-commits mailing list