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

Felix Yan felixonmars at archlinux.org
Tue Dec 15 19:32:40 UTC 2020


    Date: Tuesday, December 15, 2020 @ 19:32:40
  Author: felixonmars
Revision: 776100

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  137 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 70 insertions(+), 67 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-15 19:32:12 UTC (rev 776099)
+++ PKGBUILD	2020-12-15 19:32:40 UTC (rev 776100)
@@ -1,67 +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=4.1.2
-pkgrel=3
-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=('3d9d1e0479f00f6159b57f9e5b24e34df035d2009ec50d3779c77b1246aabc6d816f2a2d3e6651791316009e39dfcc8a1b84b779077c39501b9de5740abe6af6')
-
-prepare() {
-  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 776099, python-setuptools-scm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-15 19:32:40 UTC (rev 776100)
@@ -0,0 +1,70 @@
+# 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.0
+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=('4e8dcb1528e48e76804e3c5eec97f2052b509b672d2671545e1dcd6a1c9604bfd1ad32fc7aecc5f4c48841dda0e36b083632463b2f14b263e857482ab4df19f6')
+
+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
+}



More information about the arch-commits mailing list