summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO8
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD33
3 files changed, 9 insertions, 35 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c9464144a2c..00d0d5cff32 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,12 +2,10 @@ pkgbase = python-sphinx-automodapi
pkgdesc = Sphinx extension for generating API documentation.
pkgver = 0.12
pkgrel = 1
- url = https://sphinx-automodapi.readthedocs.io/
+ url = https://sphinx-automodapi.readthedocs.io
arch = any
license = BSD
checkdepends = python-pytest
- checkdepends = python2-pytest
- checkdepends = python2-sphinx
makedepends = python-setuptools
makedepends = python-sphinx
makedepends = python-sphinx_rtd_theme
@@ -18,10 +16,6 @@ pkgname = python-sphinx-automodapi
depends = python-sphinx>=1.7
optdepends = python-sphinx-automodapi-doc: Documentation for sphinx-automodapi
-pkgname = python2-sphinx-automodapi
- depends = python2-sphinx>=1.7
- optdepends = python-sphinx-automodapi-doc: Documentation for sphinx-automodapi
-
pkgname = python-sphinx-automodapi-doc
pkgdesc = Documentation for sphinx-automodapi
diff --git a/.gitignore b/.gitignore
index 1df7b618a7b..e896dcd6056 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,5 @@ pkg
*.tar.gz
*.tar.bz2
*.part
-*.pkg.tar.xz
+*.pkg.tar.*
+*.log
diff --git a/PKGBUILD b/PKGBUILD
index bcbba2c13ee..8f74f82a27b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,28 +2,19 @@
pkgbase=python-sphinx-automodapi
_pyname=${pkgbase#python-}
-pkgname=("python-${_pyname}" "python2-${_pyname}" "python-${_pyname}-doc")
+pkgname=("python-${_pyname}" "python-${_pyname}-doc")
pkgver=0.12
pkgrel=1
pkgdesc="Sphinx extension for generating API documentation."
arch=('any')
-url="https://sphinx-automodapi.readthedocs.io/"
+url="https://sphinx-automodapi.readthedocs.io"
license=('BSD')
makedepends=('python-setuptools' 'python-sphinx' 'python-sphinx_rtd_theme')
-checkdepends=('python-pytest' 'python2-pytest' 'python2-sphinx')
+checkdepends=('python-pytest')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('a1338bc0a7f5c9bb317ecf7c7abd489c7cff452098205ef5110f733570516ac0')
-prepare() {
- cp -a ${srcdir}/${_pyname}-${pkgver}{,-py2}
-}
-
build() {
- msg "Building Python2"
- cd ${srcdir}/${_pyname}-${pkgver}-py2
- python2 setup.py build
-
- msg "Building Python3"
cd ${srcdir}/${_pyname}-${pkgver}
python setup.py build
@@ -32,23 +23,10 @@ build() {
}
check() {
- msg "Checking Python3"
- cd ${srcdir}/${_pyname}-${pkgver}
- python setup.py test
-
- msg "Checking Python2"
- cd ${srcdir}/${_pyname}-${pkgver}-py2
- python2 setup.py test
-}
-
-package_python2-sphinx-automodapi() {
- depends=('python2-sphinx>=1.7')
- optdepends=('python-sphinx-automodapi-doc: Documentation for sphinx-automodapi')
cd ${srcdir}/${_pyname}-${pkgver}
- install -D -m644 LICENSE.rst -t "${pkgdir}/usr/share/licenses/${pkgname}"
- install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
- python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+ python setup.py test
+# pytest
}
package_python-sphinx-automodapi() {
@@ -65,6 +43,7 @@ package_python-sphinx-automodapi-doc() {
pkgdesc="Documentation for sphinx-automodapi"
cd ${srcdir}/${_pyname}-${pkgver}/build/sphinx
+ install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ../../LICENSE.rst
install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
}