[arch-commits] Commit in python-setuptools-scm/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Mar 4 23:08:27 UTC 2021


    Date: Thursday, March 4, 2021 @ 23:08:18
  Author: felixonmars
Revision: 881270

archrelease: copy trunk to community-any

Added:
  python-setuptools-scm/repos/community-any/PKGBUILD
    (from rev 881267, python-setuptools-scm/trunk/PKGBUILD)
Deleted:
  python-setuptools-scm/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  139 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 69 insertions(+), 70 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-04 23:08:08 UTC (rev 881269)
+++ PKGBUILD	2021-03-04 23:08:18 UTC (rev 881270)
@@ -1,70 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
-
-pkgbase=python-setuptools-scm
-pkgname=(python-setuptools-scm python2-setuptools-scm)
-pkgver=5.0.1
-pkgrel=1
-pkgdesc="Handles managing your python package versions in scm metadata."
-arch=('any')
-url="https://github.com/pypa/setuptools_scm"
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest' 'mercurial' 'git' 'python-pip' 'python2-pip'
-              'python-toml' 'python2-toml')
-source=("https://pypi.io/packages/source/s/setuptools_scm/setuptools_scm-$pkgver.tar.gz")
-sha512sums=('055403539a26caeb119f3d6623e7b32ef52ccc11a39757fdd9b265ba191265346be5a062a5926a381ba47bbd1a666ffa632653ee6055050689cc38fe0f90cd0f')
-
-prepare() {
-  # https://github.com/pypa/setuptools/issues/2466
-  sed -i 's/filterwarnings=error/filterwarnings =\n    error\n    ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning/' \
-      setuptools_scm-$pkgver/tox.ini
-  sed -i '/jaraco.windows/d' setuptools_scm-$pkgver/{setup.cfg,src/setuptools_scm.egg-info/requires.txt}
-  cp -a setuptools_scm-$pkgver{,-py2}
-}
-
-build() {
-  cd "$srcdir"/setuptools_scm-$pkgver
-  python setup.py build
-  python setup.py egg_info
-
-  cd "$srcdir"/setuptools_scm-$pkgver-py2
-  python2 setup.py build
-  python2 setup.py egg_info
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd "$srcdir"/setuptools_scm-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" py.test
-
-  cd "$srcdir"/setuptools_scm-$pkgver-py2
-  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
-}
-
-package_python-setuptools-scm() {
-  depends=('python-setuptools')
-  provides=('python-setuptools_scm')
-  conflicts=('python-setuptools_scm')
-  replaces=('python-setuptools_scm')
-
-  cd "$srcdir"/setuptools_scm-$pkgver
-  python setup.py install --root "$pkgdir"
-
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-setuptools-scm() {
-  depends=('python2-setuptools')
-  provides=('python2-setuptools_scm')
-  conflicts=('python2-setuptools_scm')
-  replaces=('python2-setuptools_scm')
-
-  cd "$srcdir"/setuptools_scm-$pkgver-py2
-  python2 setup.py install --root "$pkgdir"
-
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-setuptools-scm/repos/community-any/PKGBUILD (from rev 881267, python-setuptools-scm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-03-04 23:08:18 UTC (rev 881270)
@@ -0,0 +1,69 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
+
+pkgbase=python-setuptools-scm
+pkgname=(python-setuptools-scm python2-setuptools-scm)
+pkgver=5.0.2
+pkgrel=1
+pkgdesc="Handles managing your python package versions in scm metadata."
+arch=('any')
+url="https://github.com/pypa/setuptools_scm"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest' 'python2-pytest' 'mercurial' 'git' 'python-pip' 'python2-pip'
+              'python-toml' 'python2-toml')
+source=("https://pypi.io/packages/source/s/setuptools_scm/setuptools_scm-$pkgver.tar.gz")
+sha512sums=('1e92d03e2d8473425c146a885eb641e98895c43afebcd3c66c1455ace2d81f187b87681072f8aacc5e8be166577f00138cc7c53e4b7d77cb1b598f835b72b010')
+
+prepare() {
+  # https://github.com/pypa/setuptools/issues/2466
+  sed -i 's/filterwarnings=error/filterwarnings =\n    error\n    ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning/' \
+      setuptools_scm-$pkgver/tox.ini
+  cp -a setuptools_scm-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/setuptools_scm-$pkgver
+  python setup.py build
+  python setup.py egg_info
+
+  cd "$srcdir"/setuptools_scm-$pkgver-py2
+  python2 setup.py build
+  python2 setup.py egg_info
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd "$srcdir"/setuptools_scm-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.9/site-packages:$PYTHONPATH" py.test
+
+  cd "$srcdir"/setuptools_scm-$pkgver-py2
+  python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
+}
+
+package_python-setuptools-scm() {
+  depends=('python-setuptools')
+  provides=('python-setuptools_scm')
+  conflicts=('python-setuptools_scm')
+  replaces=('python-setuptools_scm')
+
+  cd "$srcdir"/setuptools_scm-$pkgver
+  python setup.py install --root "$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-setuptools-scm() {
+  depends=('python2-setuptools')
+  provides=('python2-setuptools_scm')
+  conflicts=('python2-setuptools_scm')
+  replaces=('python2-setuptools_scm')
+
+  cd "$srcdir"/setuptools_scm-$pkgver-py2
+  python2 setup.py install --root "$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list