Commits

Andy Mikhailenko committed 2a71340

Fix #21: initial setup would fail in arghparse-less environments.

Comments (0)

Files changed (4)

archlinux-python/PKGBUILD

 # Maintainer: Andrey Mikhaylenko <neithere at gmail dot com>
 # Contributor: Fabien Devaux <fdev31 at gmail dot com>
 pkgname=python-argh
-pkgver=0.16.0
+pkgver=0.17.1
 pkgrel=1
 pkgdesc="A simple argparse wrapper"
 arch=(any)
 options=(!emptydirs)
 install=
 source=(http://pypi.python.org/packages/source/a/argh/argh-${pkgver}.tar.gz)
-md5sums=('d40462e71394b0cbd2941aae3f48cfde')
+md5sums=('19e2abda8b132be6c0167e6bd83a0dfb')
 
 build() {
    cd "${srcdir}/argh-${pkgver}"

archlinux-python2/PKGBUILD

 # Maintainer: Andrey Mikhaylenko <neithere at gmail dot com>
 # Contributor: Fabien Devaux <fdev31 at gmail dot com>
 pkgname=python2-argh
-pkgver=0.16.0
+pkgver=0.17.1
 pkgrel=1
 pkgdesc="A simple argparse wrapper"
 arch=(any)
 options=(!emptydirs)
 install=
 source=(http://pypi.python.org/packages/source/a/argh/argh-${pkgver}.tar.gz)
-md5sums=('d40462e71394b0cbd2941aae3f48cfde')
+md5sums=('19e2abda8b132be6c0167e6bd83a0dfb')
 
 build() {
    cd "${srcdir}/argh-${pkgver}"
 from .helpers import *
 from .decorators import *
 
-__version__ = '0.17.0'
+__version__ = '0.17.1'    # = setup.py:ARGH_VERSION  (keep in sync!)
 
 import os
 from setuptools import setup
-from argh import __version__
+
+#
+# NOTE: keep in sync with argh.__version__ !
+#
+# (importing `__version__` from `argh` would trigger a cascading import
+#  of `argparse`; but Python < 2.7 ships without argparse.)
+#
+ARGH_VERSION = '0.17.1'    # = argh.__version__
 
 
 readme = open(os.path.join(os.path.dirname(__file__), 'README')).read()
     long_description = readme,
 
     # technical info
-    version  = __version__,
+    version  = ARGH_VERSION,
     packages = ['argh'],
     requires = ['python (>= 2.5)', 'argparse (>=1.1)'],
     provides = ['argh'],