blob: 61cd5df0628afb4764984079edc2579beac8027a (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: gkmcd <g@dramati.cc>
## Must use git to pull sources because of python-setuptools-scm
pkgname=python-pyscaffold
pkgver=4.1.3
pkgrel=1
pkgdesc="Python project template generator with batteries included"
url="https://pyscaffold.org/"
arch=('any')
license=('MIT')
depends=(
'python-appdirs'
'python-configupdater'
'python-tomlkit'
'python-packaging')
optdepends=(
'python-django: Scaffold Django projects.'
'python-cookiecutter: Create custom scaffold templates.'
'python-pre-commit: Use Git pre-commit hooks.'
'python-sphinx: Support building documentation with Sphinx.'
'python-pytest: Use the integrated unit testing.'
'python-pytest-runner: Use the integrated unit testing.'
'python-pytest-cov: Generate a coverage report for your project.')
makedepends=('git' 'python-setuptools' 'python-setuptools-scm')
# checkdepends=('python-pytest-runner')
source=("$pkgname::git+https://github.com/pyscaffold/pyscaffold/#tag=v$pkgver")
sha256sums=('SKIP')
build() {
cd "$pkgname"
python setup.py build
}
# check() {
# cd "$pkgname"
# python setup.py pytest --addopts '-c /dev/null'
# }
package() {
cd "$pkgname"
PYTHONHASHSEED=0 python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|