Add sphinx build commands to setup.py
This commit is contained in:
parent
991d0977aa
commit
eb2d8e1512
4
PKGBUILD
4
PKGBUILD
@ -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() {
|
||||
|
5
setup.py
5
setup.py
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user