[arch-commits] Commit in pep8/trunk (PKGBUILD revert-cli-options-only.patch)

2016-01-12 Thread Felix Yan
Date: Wednesday, January 13, 2016 @ 02:59:24
  Author: fyan
Revision: 156190

upgpkg: pep8 1.7.0-1

Modified:
  pep8/trunk/PKGBUILD
Deleted:
  pep8/trunk/revert-cli-options-only.patch

---+
 PKGBUILD  |   13 ++-
 revert-cli-options-only.patch |   73 
 2 files changed, 4 insertions(+), 82 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-01-13 01:58:12 UTC (rev 156189)
+++ PKGBUILD2016-01-13 01:59:24 UTC (rev 156190)
@@ -5,22 +5,17 @@
 
 pkgbase=pep8
 pkgname=("$pkgbase" "python2-$pkgbase")
-pkgver=1.6.2
-pkgrel=3
+pkgver=1.7.0
+pkgrel=1
 pkgdesc="Python style guide checker"
 arch=('any')
 url="http://github.com/jcrocholl/pep8/;
 license=('custom:Expat')
 makedepends=('python-setuptools' 'python2-setuptools' 'git')
-source=("git+https://github.com/jcrocholl/${pkgbase}.git#tag=$pkgver;
-revert-cli-options-only.patch)
-sha256sums=('SKIP'
-'ffa25c07cbff7f20e799c5ad6f0bc205c255898ffc7bab3c4157abfb83c43f7b')
+source=("git+https://github.com/jcrocholl/${pkgbase}.git#tag=$pkgver;)
+sha256sums=('SKIP')
 
 prepare() {
-  # Cherry-picked from 
https://github.com/jcrocholl/pep8/commit/435d1cbf995a659a82d1d4b42d25e3459556ef21
-  (cd $pkgbase; patch -p1 -i ../revert-cli-options-only.patch)
-
   cp -a $pkgbase{,-py2}
 
   sed -i '1s/env python$/python2/' $pkgbase-py2/pep8.py

Deleted: revert-cli-options-only.patch
===
--- revert-cli-options-only.patch   2016-01-13 01:58:12 UTC (rev 156189)
+++ revert-cli-options-only.patch   2016-01-13 01:59:24 UTC (rev 156190)
@@ -1,73 +0,0 @@
-From 435d1cbf995a659a82d1d4b42d25e3459556ef21 Mon Sep 17 00:00:00 2001
-From: Ian Lee 
-Date: Tue, 17 Mar 2015 21:52:23 -0700
-Subject: [PATCH] Reverted fix for #368 which had unintended repurcussions in
- flake8 and other places.
-
-This fix reverts to the parsing of user config (~/.config/pep8), then local 
directory
-config files, and finally overrides with cli options as was the behavior back 
in 1.5.7

- CHANGES.txt |  6 ++
- pep8.py | 28 ++--
- 2 files changed, 20 insertions(+), 14 deletions(-)
-
-diff --git a/CHANGES.txt b/CHANGES.txt
-index 85eb043..5499abd 100644
 a/CHANGES.txt
-+++ b/CHANGES.txt
-@@ -5,6 +5,12 @@ Changelog
- 1.6.x (unreleased)
- --
- 
-+Changes:
-+
-+* Reverted the fix in #368, "options passed on command line are only ones
-+  accepted" feature. This has many unintended consequences in pep8 and flake8
-+  and needs to be reworked when I have more time.
-+
- 1.6.2 (2015-02-15)
- --
- 
-diff --git a/pep8.py b/pep8.py
-index 9f40381..4d993da 100755
 a/pep8.py
-+++ b/pep8.py
-@@ -1984,24 +1984,24 @@ def read_config(options, args, arglist, parser):
- 
- local_dir = os.curdir
- 
-+if USER_CONFIG and os.path.isfile(USER_CONFIG):
-+if options.verbose:
-+print('user configuration: %s' % USER_CONFIG)
-+config.read(USER_CONFIG)
-+
-+parent = tail = args and os.path.abspath(os.path.commonprefix(args))
-+while tail:
-+if config.read(os.path.join(parent, fn) for fn in PROJECT_CONFIG):
-+local_dir = parent
-+if options.verbose:
-+print('local configuration: in %s' % parent)
-+break
-+(parent, tail) = os.path.split(parent)
-+
- if cli_conf and os.path.isfile(cli_conf):
- if options.verbose:
- print('cli configuration: %s' % cli_conf)
- config.read(cli_conf)
--else:
--if USER_CONFIG and os.path.isfile(USER_CONFIG):
--if options.verbose:
--print('user configuration: %s' % USER_CONFIG)
--config.read(USER_CONFIG)
--
--parent = tail = args and os.path.abspath(os.path.commonprefix(args))
--while tail:
--if config.read(os.path.join(parent, fn) for fn in PROJECT_CONFIG):
--local_dir = parent
--if options.verbose:
--print('local configuration: in %s' % parent)
--break
--(parent, tail) = os.path.split(parent)
- 
- pep8_section = parser.prog
- if config.has_section(pep8_section):


[arch-commits] Commit in pep8/trunk (PKGBUILD)

2015-09-19 Thread Felix Yan
Date: Saturday, September 19, 2015 @ 12:25:19
  Author: fyan
Revision: 140727

upgpkg: pep8 1.6.2-3

rebuild for python 3.5

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-09-19 10:12:20 UTC (rev 140726)
+++ PKGBUILD2015-09-19 10:25:19 UTC (rev 140727)
@@ -6,7 +6,7 @@
 pkgbase=pep8
 pkgname=("$pkgbase" "python2-$pkgbase")
 pkgver=1.6.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Python style guide checker"
 arch=('any')
 url="http://github.com/jcrocholl/pep8/;


[arch-commits] Commit in pep8/trunk (PKGBUILD revert-cli-options-only.patch)

2015-05-19 Thread Felix Yan
Date: Tuesday, May 19, 2015 @ 08:29:25
  Author: fyan
Revision: 133761

upgpkg: pep8 1.6.2-2

add patch for 
https://github.com/jcrocholl/pep8/commit/435d1cbf995a659a82d1d4b42d25e3459556ef21
 to fix flake8

Added:
  pep8/trunk/revert-cli-options-only.patch
Modified:
  pep8/trunk/PKGBUILD

---+
 PKGBUILD  |   11 --
 revert-cli-options-only.patch |   73 
 2 files changed, 81 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-05-19 06:26:12 UTC (rev 133760)
+++ PKGBUILD2015-05-19 06:29:25 UTC (rev 133761)
@@ -6,16 +6,21 @@
 pkgbase=pep8
 pkgname=($pkgbase python2-$pkgbase)
 pkgver=1.6.2
-pkgrel=1
+pkgrel=2
 pkgdesc=Python style guide checker
 arch=('any')
 url=http://github.com/jcrocholl/pep8/;
 license=('custom:Expat')
 makedepends=('python-setuptools' 'python2-setuptools' 'git')
-source=(git+https://github.com/jcrocholl/${pkgbase}.git#tag=$pkgver;)
-sha256sums=('SKIP')
+source=(git+https://github.com/jcrocholl/${pkgbase}.git#tag=$pkgver;
+revert-cli-options-only.patch)
+sha256sums=('SKIP'
+'ffa25c07cbff7f20e799c5ad6f0bc205c255898ffc7bab3c4157abfb83c43f7b')
 
 prepare() {
+  # Cherry-picked from 
https://github.com/jcrocholl/pep8/commit/435d1cbf995a659a82d1d4b42d25e3459556ef21
+  (cd $pkgbase; patch -p1 -i ../revert-cli-options-only.patch)
+
   cp -a $pkgbase{,-py2}
 
   sed -i '1s/env python$/python2/' $pkgbase-py2/pep8.py

Added: revert-cli-options-only.patch
===
--- revert-cli-options-only.patch   (rev 0)
+++ revert-cli-options-only.patch   2015-05-19 06:29:25 UTC (rev 133761)
@@ -0,0 +1,73 @@
+From 435d1cbf995a659a82d1d4b42d25e3459556ef21 Mon Sep 17 00:00:00 2001
+From: Ian Lee ianlee1...@gmail.com
+Date: Tue, 17 Mar 2015 21:52:23 -0700
+Subject: [PATCH] Reverted fix for #368 which had unintended repurcussions in
+ flake8 and other places.
+
+This fix reverts to the parsing of user config (~/.config/pep8), then local 
directory
+config files, and finally overrides with cli options as was the behavior back 
in 1.5.7
+---
+ CHANGES.txt |  6 ++
+ pep8.py | 28 ++--
+ 2 files changed, 20 insertions(+), 14 deletions(-)
+
+diff --git a/CHANGES.txt b/CHANGES.txt
+index 85eb043..5499abd 100644
+--- a/CHANGES.txt
 b/CHANGES.txt
+@@ -5,6 +5,12 @@ Changelog
+ 1.6.x (unreleased)
+ --
+ 
++Changes:
++
++* Reverted the fix in #368, options passed on command line are only ones
++  accepted feature. This has many unintended consequences in pep8 and flake8
++  and needs to be reworked when I have more time.
++
+ 1.6.2 (2015-02-15)
+ --
+ 
+diff --git a/pep8.py b/pep8.py
+index 9f40381..4d993da 100755
+--- a/pep8.py
 b/pep8.py
+@@ -1984,24 +1984,24 @@ def read_config(options, args, arglist, parser):
+ 
+ local_dir = os.curdir
+ 
++if USER_CONFIG and os.path.isfile(USER_CONFIG):
++if options.verbose:
++print('user configuration: %s' % USER_CONFIG)
++config.read(USER_CONFIG)
++
++parent = tail = args and os.path.abspath(os.path.commonprefix(args))
++while tail:
++if config.read(os.path.join(parent, fn) for fn in PROJECT_CONFIG):
++local_dir = parent
++if options.verbose:
++print('local configuration: in %s' % parent)
++break
++(parent, tail) = os.path.split(parent)
++
+ if cli_conf and os.path.isfile(cli_conf):
+ if options.verbose:
+ print('cli configuration: %s' % cli_conf)
+ config.read(cli_conf)
+-else:
+-if USER_CONFIG and os.path.isfile(USER_CONFIG):
+-if options.verbose:
+-print('user configuration: %s' % USER_CONFIG)
+-config.read(USER_CONFIG)
+-
+-parent = tail = args and os.path.abspath(os.path.commonprefix(args))
+-while tail:
+-if config.read(os.path.join(parent, fn) for fn in PROJECT_CONFIG):
+-local_dir = parent
+-if options.verbose:
+-print('local configuration: in %s' % parent)
+-break
+-(parent, tail) = os.path.split(parent)
+ 
+ pep8_section = parser.prog
+ if config.has_section(pep8_section):


[arch-commits] Commit in pep8/trunk (PKGBUILD)

2015-02-15 Thread Felix Yan
Date: Monday, February 16, 2015 @ 04:40:22
  Author: fyan
Revision: 127770

upgpkg: pep8 1.6.2-1

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-16 02:18:49 UTC (rev 127769)
+++ PKGBUILD2015-02-16 03:40:22 UTC (rev 127770)
@@ -5,7 +5,7 @@
 
 pkgbase=pep8
 pkgname=($pkgbase python2-$pkgbase)
-pkgver=1.6.1
+pkgver=1.6.2
 pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')


[arch-commits] Commit in pep8/trunk (PKGBUILD)

2015-02-09 Thread Felix Yan
Date: Tuesday, February 10, 2015 @ 05:07:11
  Author: fyan
Revision: 127457

upgpkg: pep8 1.6.1-1

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-10 04:05:25 UTC (rev 127456)
+++ PKGBUILD2015-02-10 04:07:11 UTC (rev 127457)
@@ -5,7 +5,7 @@
 
 pkgbase=pep8
 pkgname=($pkgbase python2-$pkgbase)
-pkgver=1.6
+pkgver=1.6.1
 pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')
@@ -16,7 +16,7 @@
 sha256sums=('SKIP')
 
 prepare() {
-  cp -r $pkgbase{,-py2}
+  cp -a $pkgbase{,-py2}
 
   sed -i '1s/env python$/python2/' $pkgbase-py2/pep8.py
 }


[arch-commits] Commit in pep8/trunk (PKGBUILD)

2015-02-07 Thread Felix Yan
Date: Saturday, February 7, 2015 @ 13:37:12
  Author: fyan
Revision: 127239

upgpkg: pep8 1.6-1

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2015-02-07 12:26:33 UTC (rev 127238)
+++ PKGBUILD2015-02-07 12:37:12 UTC (rev 127239)
@@ -1,11 +1,11 @@
 # $Id$
-# Maintainer: Felix Yan felixonm...@gmail.com
+# Maintainer: Felix Yan felixonm...@archlinux.org
 # Contributor: Ismael Carnales icarnales at gmail dot com
 # Contributor: Sergey Mastykov smastykov[at]gmail[dot]com
 
 pkgbase=pep8
 pkgname=($pkgbase python2-$pkgbase)
-pkgver=1.5.7
+pkgver=1.6
 pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')


[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-05-29 Thread Felix Yan
Date: Friday, May 30, 2014 @ 06:45:12
  Author: fyan
Revision: 112210

upgpkg: pep8 1.5.7-1

- new upstream release
- rename to address FS#39752

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |   11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-05-30 04:17:34 UTC (rev 112209)
+++ PKGBUILD2014-05-30 04:45:12 UTC (rev 112210)
@@ -4,8 +4,8 @@
 # Contributor: Sergey Mastykov smastykov[at]gmail[dot]com
 
 pkgbase=pep8
-pkgname=($pkgbase $pkgbase-python2)
-pkgver=1.5.6
+pkgname=($pkgbase python2-$pkgbase)
+pkgver=1.5.7
 pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')
@@ -49,9 +49,12 @@
   install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }
 
-package_pep8-python2() {
+package_python2-pep8() {
   depends=('python2' 'python2-setuptools')
-  
+  provides=('pep8-python2')
+  conflicts=('pep8-python2')
+  replaces=('pep8-python2')
+
   cd $pkgbase-py2
   python2 setup.py install -O1 --prefix=/usr --root=$pkgdir/
   mv $pkgdir/usr/bin/pep8 $pkgdir/usr/bin/pep8-python2



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-04-14 Thread Felix Yan
Date: Tuesday, April 15, 2014 @ 04:08:53
  Author: fyan
Revision: 109474

upgpkg: pep8 1.5.6-1

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-04-15 01:16:15 UTC (rev 109473)
+++ PKGBUILD2014-04-15 02:08:53 UTC (rev 109474)
@@ -5,7 +5,7 @@
 
 pkgbase=pep8
 pkgname=($pkgbase $pkgbase-python2)
-pkgver=1.5.5
+pkgver=1.5.6
 pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-04-10 Thread Felix Yan
Date: Thursday, April 10, 2014 @ 11:23:40
  Author: fyan
Revision: 109079

upgpkg: pep8 1.5.5-1

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-04-10 09:02:19 UTC (rev 109078)
+++ PKGBUILD2014-04-10 09:23:40 UTC (rev 109079)
@@ -5,7 +5,7 @@
 
 pkgbase=pep8
 pkgname=($pkgbase $pkgbase-python2)
-pkgver=1.5.4
+pkgver=1.5.5
 pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-04-07 Thread Felix Yan
Date: Monday, April 7, 2014 @ 09:23:37
  Author: fyan
Revision: 10

upgpkg: pep8 1.5.4-1

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-04-07 04:30:03 UTC (rev 108887)
+++ PKGBUILD2014-04-07 07:23:37 UTC (rev 10)
@@ -5,7 +5,7 @@
 
 pkgbase=pep8
 pkgname=($pkgbase $pkgbase-python2)
-pkgver=1.5.3
+pkgver=1.5.4
 pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-04-04 Thread Felix Yan
Date: Friday, April 4, 2014 @ 09:19:32
  Author: fyan
Revision: 108794

upgpkg: pep8 1.5.2-1

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |9 -
 1 file changed, 4 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-04-04 02:40:59 UTC (rev 108793)
+++ PKGBUILD2014-04-04 07:19:32 UTC (rev 108794)
@@ -5,8 +5,8 @@
 
 pkgbase=pep8
 pkgname=($pkgbase $pkgbase-python2)
-pkgver=1.5.1
-pkgrel=2
+pkgver=1.5.2
+pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')
 url=http://github.com/jcrocholl/pep8/;
@@ -14,7 +14,7 @@
 makedepends=('python-setuptools' 'python2-setuptools')
 
source=(https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-${pkgver}.tar.gz;
 LICENSE)
-sha256sums=('818ac9c3b31b2ab63265fb421727025e48f3b6447260632acee43270f172b450'
+sha256sums=('4e0e74c0e3f06ad301fb66a9a24c2d07b5dc324c96a9a139d924a5e102177cf7'
 '4a18840b7c132952f3f3d42c355289018ea263cbe75b25db31c9feb1b61e9b40')
 
 prepare() {
@@ -32,12 +32,11 @@
 }
 
 check() {
+  # Failure in tests: https://github.com/jcrocholl/pep8/issues/267
   cd ${srcdir}/${pkgbase}-${pkgver}
-  # Not passing tests for 1.5.1
   #python setup.py test
 
   cd ${srcdir}/${pkgbase}-${pkgver}-py2
-  # Not passing tests for 1.5.1
   #python2 setup.py test
 }
 



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-04-04 Thread Felix Yan
Date: Friday, April 4, 2014 @ 10:05:19
  Author: fyan
Revision: 108802

upgpkg: pep8 1.5.2-2

- use git checkout instead (source different from pypi tarball, and it passes 
tests)

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |   35 ---
 1 file changed, 16 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-04-04 07:49:38 UTC (rev 108801)
+++ PKGBUILD2014-04-04 08:05:19 UTC (rev 108802)
@@ -6,38 +6,35 @@
 pkgbase=pep8
 pkgname=($pkgbase $pkgbase-python2)
 pkgver=1.5.2
-pkgrel=1
+pkgrel=2
 pkgdesc=Python style guide checker
 arch=('any')
 url=http://github.com/jcrocholl/pep8/;
 license=('custom:Expat')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=(https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-${pkgver}.tar.gz;
-LICENSE)
-sha256sums=('4e0e74c0e3f06ad301fb66a9a24c2d07b5dc324c96a9a139d924a5e102177cf7'
-'4a18840b7c132952f3f3d42c355289018ea263cbe75b25db31c9feb1b61e9b40')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+source=(git+https://github.com/jcrocholl/${pkgbase}.git#tag=$pkgver;)
+sha256sums=('SKIP')
 
 prepare() {
-  cp -r $pkgbase-$pkgver{,-py2}
+  cp -r $pkgbase{,-py2}
 
-  sed -i '1s/env python$/python2/' $pkgbase-$pkgver-py2/pep8.py
+  sed -i '1s/env python$/python2/' $pkgbase-py2/pep8.py
 }
 
 build() {
-  cd ${srcdir}/${pkgbase}-${pkgver}
+  cd ${srcdir}/${pkgbase}
   python setup.py build
 
-  cd ${srcdir}/${pkgbase}-${pkgver}-py2
+  cd ${srcdir}/${pkgbase}-py2
   python2 setup.py build
 }
 
 check() {
-  # Failure in tests: https://github.com/jcrocholl/pep8/issues/267
-  cd ${srcdir}/${pkgbase}-${pkgver}
-  #python setup.py test
+  cd ${srcdir}/${pkgbase}
+  python setup.py test
 
-  cd ${srcdir}/${pkgbase}-${pkgver}-py2
-  #python2 setup.py test
+  cd ${srcdir}/${pkgbase}-py2
+  python2 setup.py test
 }
 
 package_pep8() {
@@ -46,20 +43,20 @@
   conflicts=('pep8-python3')
   replaces=('pep8-python3')
 
-  cd $pkgbase-$pkgver
+  cd $pkgbase
   python3 setup.py install -O1 --prefix=/usr --root=$pkgdir/
 
-  install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_pep8-python2() {
   depends=('python2' 'python2-setuptools')
   
-  cd $pkgbase-$pkgver-py2
+  cd $pkgbase-py2
   python2 setup.py install -O1 --prefix=/usr --root=$pkgdir/
   mv $pkgdir/usr/bin/pep8 $pkgdir/usr/bin/pep8-python2
 
-  install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+  install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }
 
 # vim:set ts=2 sw=2 et:



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-04-04 Thread Felix Yan
Date: Saturday, April 5, 2014 @ 04:33:56
  Author: fyan
Revision: 108828

upgpkg: pep8 1.5.3-1

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-04-04 22:09:11 UTC (rev 108827)
+++ PKGBUILD2014-04-05 02:33:56 UTC (rev 108828)
@@ -5,8 +5,8 @@
 
 pkgbase=pep8
 pkgname=($pkgbase $pkgbase-python2)
-pkgver=1.5.2
-pkgrel=2
+pkgver=1.5.3
+pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')
 url=http://github.com/jcrocholl/pep8/;



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-03-28 Thread Felix Yan
Date: Saturday, March 29, 2014 @ 04:10:33
  Author: fyan
Revision: 108581

upgpkg: pep8 1.5.1-2

- pep8 now refers to the python3 version

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |   50 ++
 1 file changed, 34 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-29 02:58:20 UTC (rev 108580)
+++ PKGBUILD2014-03-29 03:10:33 UTC (rev 108581)
@@ -4,9 +4,9 @@
 # Contributor: Sergey Mastykov smastykov[at]gmail[dot]com
 
 pkgbase=pep8
-pkgname=($pkgbase-python2 $pkgbase-python3)
+pkgname=($pkgbase $pkgbase-python2)
 pkgver=1.5.1
-pkgrel=1
+pkgrel=2
 pkgdesc=Python style guide checker
 arch=('any')
 url=http://github.com/jcrocholl/pep8/;
@@ -18,27 +18,35 @@
 '4a18840b7c132952f3f3d42c355289018ea263cbe75b25db31c9feb1b61e9b40')
 
 prepare() {
-  cp -r $pkgbase-$pkgver{,-python2}
+  cp -r $pkgbase-$pkgver{,-py2}
 
-  sed -i '1s/env python$/python2/' $pkgbase-$pkgver-python2/pep8.py
+  sed -i '1s/env python$/python2/' $pkgbase-$pkgver-py2/pep8.py
 }
 
-package_pep8-python2() {
-  depends=('python2' 'python2-setuptools')
-  provides=('pep8')
-  conflicts=('pep8')
-  replaces=('pep8')
-  
-  cd $pkgbase-$pkgver-python2
-  python2 setup.py install -O1 --prefix=/usr --root=$pkgdir/
-  mv $pkgdir/usr/bin/pep8 $pkgdir/usr/bin/pep8-python2
+build() {
+  cd ${srcdir}/${pkgbase}-${pkgver}
+  python setup.py build
 
-  install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+  cd ${srcdir}/${pkgbase}-${pkgver}-py2
+  python2 setup.py build
 }
 
-package_pep8-python3() {
+check() {
+  cd ${srcdir}/${pkgbase}-${pkgver}
+  # Not passing tests for 1.5.1
+  #python setup.py test
+
+  cd ${srcdir}/${pkgbase}-${pkgver}-py2
+  # Not passing tests for 1.5.1
+  #python2 setup.py test
+}
+
+package_pep8() {
   depends=('python' 'python-setuptools')
-  
+  provides=('pep8-python3')
+  conflicts=('pep8-python3')
+  replaces=('pep8-python3')
+
   cd $pkgbase-$pkgver
   python3 setup.py install -O1 --prefix=/usr --root=$pkgdir/
 
@@ -45,4 +53,14 @@
   install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }
 
+package_pep8-python2() {
+  depends=('python2' 'python2-setuptools')
+  
+  cd $pkgbase-$pkgver-py2
+  python2 setup.py install -O1 --prefix=/usr --root=$pkgdir/
+  mv $pkgdir/usr/bin/pep8 $pkgdir/usr/bin/pep8-python2
+
+  install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
 # vim:set ts=2 sw=2 et:



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-03-27 Thread Felix Yan
Date: Friday, March 28, 2014 @ 03:17:38
  Author: fyan
Revision: 108532

upgpkg: pep8 1.5.1-1

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |   10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-27 21:43:54 UTC (rev 108531)
+++ PKGBUILD2014-03-28 02:17:38 UTC (rev 108532)
@@ -5,8 +5,8 @@
 
 pkgbase=pep8
 pkgname=($pkgbase-python2 $pkgbase-python3)
-pkgver=1.5.0
-pkgrel=2
+pkgver=1.5.1
+pkgrel=1
 pkgdesc=Python style guide checker
 arch=('any')
 url=http://github.com/jcrocholl/pep8/;
@@ -14,7 +14,7 @@
 makedepends=('python-setuptools' 'python2-setuptools')
 
source=(https://pypi.python.org/packages/source/p/$pkgbase/$pkgbase-${pkgver}.tar.gz;
 LICENSE)
-sha256sums=('d3b18ca2e25827a480145e481e511a52cd067ee9b98be57575a82bc073340c23'
+sha256sums=('818ac9c3b31b2ab63265fb421727025e48f3b6447260632acee43270f172b450'
 '4a18840b7c132952f3f3d42c355289018ea263cbe75b25db31c9feb1b61e9b40')
 
 prepare() {
@@ -30,7 +30,7 @@
   replaces=('pep8')
   
   cd $pkgbase-$pkgver-python2
-  python2 setup.py install --prefix=/usr --root=$pkgdir/
+  python2 setup.py install -O1 --prefix=/usr --root=$pkgdir/
   mv $pkgdir/usr/bin/pep8 $pkgdir/usr/bin/pep8-python2
 
   install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
@@ -40,7 +40,7 @@
   depends=('python' 'python-setuptools')
   
   cd $pkgbase-$pkgver
-  python3 setup.py install --prefix=/usr --root=$pkgdir/
+  python3 setup.py install -O1 --prefix=/usr --root=$pkgdir/
 
   install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
 }



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-03-26 Thread Felix Yan
Date: Wednesday, March 26, 2014 @ 16:36:01
  Author: fyan
Revision: 108310

upgpkg: pep8 1.5.0-2

- python 3.4 rebuild

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-26 15:25:38 UTC (rev 108309)
+++ PKGBUILD2014-03-26 15:36:01 UTC (rev 108310)
@@ -6,7 +6,7 @@
 pkgbase=pep8
 pkgname=($pkgbase-python2 $pkgbase-python3)
 pkgver=1.5.0
-pkgrel=1
+pkgrel=2
 pkgdesc=Python style guide checker
 arch=('any')
 url=http://github.com/jcrocholl/pep8/;



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2014-03-16 Thread Felix Yan
Date: Monday, March 17, 2014 @ 05:19:59
  Author: fyan
Revision: 107322

upgpkg: pep8 1.4.6-4

- python 3.4 rebuild

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |9 -
 1 file changed, 4 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2014-03-17 02:34:57 UTC (rev 107321)
+++ PKGBUILD2014-03-17 04:19:59 UTC (rev 107322)
@@ -6,7 +6,7 @@
 pkgbase=pep8
 pkgname=($pkgbase-python2 $pkgbase-python3)
 pkgver=1.4.6
-pkgrel=3
+pkgrel=4
 pkgdesc=Python style guide checker
 arch=('any')
 url=http://github.com/jcrocholl/pep8/;
@@ -16,8 +16,7 @@
 sha256sums=('723ec96fc01a1c2d8f9e7d4239a769cd5b499951a1d6c4edc3eb28c6801ed0f8')
 
 build() {
-  cd $srcdir
-  cp -r $pkgbase-$pkgver $pkgbase-$pkgver-python2
+  cp -r $pkgbase-$pkgver{,-python2}
 }
 
 package_pep8-python2() {
@@ -26,7 +25,7 @@
   conflicts=('pep8')
   replaces=('pep8')
   
-  cd $srcdir/$pkgbase-$pkgver-python2
+  cd $pkgbase-$pkgver-python2
   python2 setup.py install --prefix=/usr --root=$pkgdir/
   mv $pkgdir/usr/bin/pep8 $pkgdir/usr/bin/pep8-python2
 
@@ -36,7 +35,7 @@
 package_pep8-python3() {
   depends=('python3' 'python-setuptools')
   
-  cd $srcdir/$pkgbase-$pkgver
+  cd $pkgbase-$pkgver
   python3 setup.py install --prefix=/usr --root=$pkgdir/
 
   install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2013-10-11 Thread Felix Yan
Date: Friday, October 11, 2013 @ 10:08:35
  Author: fyan
Revision: 98458

fix: use setuptools instead of distribute

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-10-11 08:07:07 UTC (rev 98457)
+++ PKGBUILD2013-10-11 08:08:35 UTC (rev 98458)
@@ -21,7 +21,7 @@
 }
 
 package_pep8-python2() {
-  depends=('python2' 'python2-distribute')
+  depends=('python2' 'python2-setuptools')
   provides=('pep8')
   conflicts=('pep8')
   replaces=('pep8')
@@ -34,7 +34,7 @@
 }
 
 package_pep8-python3() {
-  depends=('python3' 'python-distribute')
+  depends=('python3' 'python-setuptools')
   
   cd $srcdir/$pkgbase-$pkgver
   python3 setup.py install --prefix=/usr --root=$pkgdir/



[arch-commits] Commit in pep8/trunk (PKGBUILD)

2013-08-18 Thread Bartłomiej Piotrowski
Date: Sunday, August 18, 2013 @ 16:07:48
  Author: bpiotrowski
Revision: 95894

upgpkg: pep8 1.4.6-3

- replace python-distribute with python-setuptools

Modified:
  pep8/trunk/PKGBUILD

--+
 PKGBUILD |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2013-08-18 14:01:47 UTC (rev 95893)
+++ PKGBUILD2013-08-18 14:07:48 UTC (rev 95894)
@@ -6,13 +6,14 @@
 pkgbase=pep8
 pkgname=($pkgbase-python2 $pkgbase-python3)
 pkgver=1.4.6
-pkgrel=2
+pkgrel=3
 pkgdesc=Python style guide checker
 arch=('any')
 url=http://github.com/jcrocholl/pep8/;
 license=('custom:Expat')
-makedepends=('python-distribute' 'python2-distribute')
+makedepends=('python-setuptools' 'python2-setuptools')
 source=(https://github.com/jcrocholl/$pkgbase/archive/${pkgver}.tar.gz;)
+sha256sums=('723ec96fc01a1c2d8f9e7d4239a769cd5b499951a1d6c4edc3eb28c6801ed0f8')
 
 build() {
   cd $srcdir
@@ -42,4 +43,3 @@
 }
 
 # vim:set ts=2 sw=2 et:
-md5sums=('34915081522a936d3bab54b898aabd4f')