diff options
author | Universebenzene | 2022-08-03 20:58:11 +0800 |
---|---|---|
committer | Universebenzene | 2022-08-03 20:58:11 +0800 |
commit | e269253ab92e78e7aa892c7ad3f1f73b0b77ca0d (patch) | |
tree | 818b9e2437af99d453b316b841756a3404121ab1 | |
download | aur-python-deprecat.tar.gz |
Initial import 2.1.1
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 56 |
3 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..840b87f3de92 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-deprecat + pkgdesc = Python @deprecat decorator to deprecate old python classes, functions or methods + pkgver = 2.1.1 + pkgrel = 1 + url = https://deprecat.readthedocs.io + arch = any + license = MIT + checkdepends = python-nose + checkdepends = python-wrapt + makedepends = python-setuptools + makedepends = python-wheel + makedepends = python-build + makedepends = python-installer + source = https://files.pythonhosted.org/packages/source/d/deprecat/deprecat-2.1.1.tar.gz + md5sums = 81939d2b36a8e0db24f30eca0dbceb0a + +pkgname = python-deprecat + depends = python>=3.6 + depends = python-wrapt>=1.10 + optdepends = python-deprecat-doc: Documentation for deprecat diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e896dcd6056d --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +src +pkg +*.src.tar.gz +*.tar.gz +*.tar.bz2 +*.part +*.pkg.tar.* +*.log diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..91ed1ecb6cb3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: Astro Benzene <universebenzene at sina dot com> + +pkgbase=python-deprecat +_pyname=${pkgbase#python-} +pkgname=("python-${_pyname}") +#"python-${_pyname}-doc") +pkgver=2.1.1 +pkgrel=1 +pkgdesc="Python @deprecat decorator to deprecate old python classes, functions or methods" +arch=('any') +url="https://deprecat.readthedocs.io" +license=('MIT') +makedepends=('python-setuptools' + 'python-wheel' + 'python-build' + 'python-installer') +# 'python-sphinx') +#checkdepends=('python-pytest') +checkdepends=('python-nose' 'python-wrapt') +source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +md5sums=('81939d2b36a8e0db24f30eca0dbceb0a') + +build() { + cd ${srcdir}/${_pyname}-${pkgver} + python -m build --wheel --no-isolation + +# msg "Building Docs" +# cd ${srcdir}/${_pyname}-${pkgver}/docs +# PYTHONPATH="../build/lib" make html +} + +check() { + cd ${srcdir}/${_pyname}-${pkgver} + +# pytest #|| warning "Tests failed" #\ + nosetests #|| warning "Tests failed" #\ +} + +package_python-deprecat() { + depends=('python>=3.6' 'python-wrapt>=1.10') + optdepends=('python-deprecat-doc: Documentation for deprecat') + cd ${srcdir}/${_pyname}-${pkgver} + + install -D -m644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + python -m installer --destdir="${pkgdir}" dist/*.whl +} + +#package_python-deprecat-doc() { +# pkgdesc="Documentation for Python deprecat" +# cd ${srcdir}/${_pyname}-${pkgver}/docs/_build +# +# install -D -m644 ../../LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}" +# install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}" +# cp -a html "${pkgdir}/usr/share/doc/${pkgbase}" +#} |