blob: 2b766fc52f938927cbf7f8e0918fd043a6b5cae2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Astro Benzene <universebenzene at sina dot com>
pkgbase=mkdocs-git-committers-plugin-2
_pyname=${pkgbase}
pkgname=("${_pyname}")
pkgver=1.2.0
pkgrel=1
pkgdesc="An MkDocs plugin to create a list of contributors on the page"
arch=('any')
url="https://github.com/ojacques/mkdocs-git-committers-plugin-2"
license=('MIT')
makedepends=('python-setuptools-scm')
# 'python-wheel'
# 'python-build'
# 'python-installer')
#checkdepends=('python-pytest')
checkdepends=('python-nose')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz"
"${pkgver}-requirements.txt::https://raw.githubusercontent.com/ojacques/mkdocs-git-committers-plugin-2/${pkgver}/requirements.txt")
md5sums=('1abab861727c801a89186c761caae8b5'
'88ad091f4b0b71e1355dd7426ba39c49')
prepare() {
cd ${srcdir}/${_pyname}-${pkgver}
ln -rs {${srcdir}/${pkgver}-,}requirements.txt
}
build() {
cd ${srcdir}/${_pyname}-${pkgver}
# python -m build --wheel --no-isolation
python setup.py build
}
check() {
cd ${srcdir}/${_pyname}-${pkgver}
# pytest -vv --color=yes
nosetests || warning "Tests failed" # -v -x
}
package_mkdocs-git-committers-plugin-2() {
depends=('mkdocs>=1.0.3',
'python-gitpython'
'python-lxml>=4.9'
'python-requests'
'python-beautifulsoup4')
cd ${srcdir}/${_pyname}-${pkgver}
install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
# python -m installer --destdir="${pkgdir}" dist/*.whl
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
}
|