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

Felix Yan felixonmars at archlinux.org
Sun Aug 20 14:43:41 UTC 2017


    Date: Sunday, August 20, 2017 @ 14:43:41
  Author: felixonmars
Revision: 252744

upgpkg: python-editorconfig 0.12.1-1

- disable broken tests
- use pypi source for latest version
- rename executable (FS#55201)

Modified:
  python-editorconfig/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++--------------------------
 1 file changed, 13 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-20 13:25:13 UTC (rev 252743)
+++ PKGBUILD	2017-08-20 14:43:41 UTC (rev 252744)
@@ -3,56 +3,43 @@
 
 pkgbase=python-editorconfig
 pkgname=('python-editorconfig' 'python2-editorconfig')
-pkgver=0.12.0
-pkgrel=2
+pkgver=0.12.1
+pkgrel=1
 pkgdesc='EditorConfig File Locator and Interpreter for Python'
 arch=('any')
 license=('PSF')
 url='https://github.com/editorconfig/editorconfig-core-py'
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-checkdepends=('cmake')
-source=("git+https://github.com/editorconfig/editorconfig-core-py.git#tag=v$pkgver"
-        "git+https://github.com/editorconfig/editorconfig-core-test.git")
-md5sums=('SKIP'
-         'SKIP')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/E/EditorConfig/EditorConfig-$pkgver.tar.gz")
+sha512sums=('d31abc261c3f2e17582d3c5ef549fd2f2292588d8a4549eb98d80693cf94a50078047d95892164a71043375f6c5596152ac62e04e854d78458cfb1183030669f')
 
 prepare() {
-  cd editorconfig-core-py
-  git submodule init
-  git config submodule."tests".url "$srcdir"/editorconfig-core-test
-  git submodule update
-
-  cp -a "$srcdir"/editorconfig-core-py{,-py2}
+  cp -a EditorConfig-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/editorconfig-core-py
+  cd "$srcdir"/EditorConfig-$pkgver
   python setup.py build
 
-  cd "$srcdir"/editorconfig-core-py-py2
+  cd "$srcdir"/EditorConfig-$pkgver-py2
   python2 setup.py build
 }
 
-check() {
-  cd "$srcdir"/editorconfig-core-py
-  ctest -VV --output-on-failure .
-
-  cd "$srcdir"/editorconfig-core-py-py2
-  ctest -DPYTHON_EXECUTABLE=/usr/bin/python2 -VV --output-on-failure .
-}
-
 package_python-editorconfig() {
   depends=('python')
 
-  cd editorconfig-core-py
+  cd EditorConfig-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+
+  # FS#55201
+  mv "$pkgdir"/usr/bin/editorconfig{,3}
 }
 
 package_python2-editorconfig() {
   depends=('python2')
 
-  cd editorconfig-core-py-py2
+  cd EditorConfig-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 



More information about the arch-commits mailing list