diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 13 insertions, 24 deletions
@@ -2,56 +2,45 @@ pkgname=python-visions _pkgname=visions -pkgver=0.7.1 -pkgrel=1 +pkgver=0.7.6 +pkgrel=2 pkgdesc='Type System for Data Analysis in Python' arch=('any') url='https://github.com/dylan-profiler/visions' -license=('BSD') +license=('BSD-4-Clause') depends=( python-attrs + python-matplotlib + python-multimethod python-networkx python-numpy python-pandas + python-pillow python-tangled-up-in-unicode ) makedepends=( mypy python-black + python-build + python-installer python-isort python-recommonmark python-setuptools python-sphinx-autodoc-typehints python-sphinx_rtd_theme + python-wheel ) -checkdepends=( - python-imagehash - python-matplotlib - python-multimethod - python-pillow - python-pydot - python-pytest - python-pytest-black - python-pytest-mypy - python-shapely - twine -) -source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/dylan-profiler/visions/archive/v${pkgver}.tar.gz") -sha512sums=('788a31e5812fe2a729c1d2d1b3dc5b9816dad970b82084109ca2e1f0d7b0c5b77f29364358d608808a929840690a34f139ad9a0770a2be3e526048e3d3b6911d') +source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") +sha512sums=('0ae1b6dd9778c1fcfb16dd6f88d49b59df05655eea21472026ddb749d4febdadc35990a514d6eaccd3a2f7a118381f66437a0bbb0069cafc1e1251e6169ce224') build() { cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build -} - -check() { - cd "${srcdir}/${_pkgname}-${pkgver}" - PYTHONPATH="${PWD}/build/lib" pytest -v + python -m build --wheel --no-isolation } package() { cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" } # vim:set ts=2 sw=2 et: |