Add sphinx build commands to setup.py

This commit is contained in:
Eric Torres 2019-04-19 09:46:13 -07:00
parent 991d0977aa
commit eb2d8e1512
2 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,7 @@ arch=('any')
url="https://github.com/etorres4/rbackup"
license=('MIT')
depends=(python rsync)
makedepends=(python-setuptools)
makedepends=(python-sphinx python-setuptools)
checkdepends=(python-hypothesis python-pytest)
backup=(etc/$pkgname/backup.conf
etc/$pkgname/etc-include.conf
@ -19,6 +19,8 @@ sha512sums=('4d389c1669b54f8da3567420d786de065c81c732263068e3ac79f8dab539cf13a35
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
python setup.py build
python setup.py sphinx_build
}
check() {

View File

@ -1,17 +1,20 @@
import setuptools
from sphinx.setup_command import BuildDoc
# ========== Constants ==========
PACKAGES = ["rbackup", "rbackup.plugins", "rbackup.struct"]
SCRIPTS = ["bin/backup"]
CMDCLASS = {'build_sphinx': BuildDoc}
# ========== Functions ==========
with open("README", "r") as fh:
with open("README.rst", "r") as fh:
long_description = fh.read()
# ========== Package Setup ==========
setuptools.setup(
name="rbackup",
version="0.5.2",
cmdclass=CMDCLASS,
author="Eric Torres",
author_email="erictorres4@protonmail.com",
description="An rsync-based tool for creating backups",