initial import
This commit is contained in:
33
python-setuptools-scm/PKGBUILD
Normal file
33
python-setuptools-scm/PKGBUILD
Normal file
@@ -0,0 +1,33 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=python-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=('Expat')
|
||||
depends=('python-setuptools')
|
||||
makedepends=('python-setuptools')
|
||||
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}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/setuptools_scm-$pkgver
|
||||
python setup.py build
|
||||
python setup.py egg_info
|
||||
}
|
||||
|
||||
package_python-setuptools-scm() {
|
||||
cd "$srcdir"/setuptools_scm-$pkgver
|
||||
python setup.py install --root "$pkgdir"
|
||||
|
||||
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
}
|
||||
Reference in New Issue
Block a user