File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
archlinuxcn/python-timeloop Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -4,27 +4,30 @@ _pkgname=timeloop
4
4
pkgname=python-timeloop
5
5
pkgver=1.0.2
6
6
pkgrel=6
7
- pkgdesc=' Python package for DICOM-SEG medical segmentation file reading and writing '
7
+ pkgdesc=' An elegant periodic task executor '
8
8
arch=(' any' )
9
9
url=' https://github.com/sankalpjonn/timeloop'
10
10
license=(' MIT' )
11
11
depends=(
12
12
python
13
13
)
14
14
makedepends=(
15
+ python-build
16
+ python-installer
15
17
python-setuptools
18
+ python-wheel
16
19
)
17
20
source=(" ${pkgname} -${pkgver} .tar.gz::https://github.com/sankalpjonn/timeloop/archive/refs/tags/v${pkgver} .tar.gz" )
18
21
sha512sums=(' 93f40bc82999356e4a32b821c43e2ba3fe9c7bd4b2cb093d7c21f7b60a5bea18f3c9c0f72abfa54ec81d35ff7978a801ac8bcf77c0978c6077de00e2bc96382e' )
19
22
20
23
build () {
21
24
cd " ${_pkgname} -${pkgver} "
22
- python setup.py build
25
+ python -m build --wheel --no-isolation
23
26
}
24
27
25
28
package () {
26
29
cd " ${_pkgname} -${pkgver} "
27
- python setup.py install --root =" ${pkgdir} " --optimize=1 --skip-build
30
+ python -m installer --destdir =" ${pkgdir} " dist/ * .whl
28
31
install -Dm644 LICENSE -t " ${pkgdir} /usr/share/licenses/${pkgname} "
29
32
}
30
33
# vim:set ts=2 sw=2 et:
You can’t perform that action at this time.
0 commit comments