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"
|
url="https://github.com/etorres4/rbackup"
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
depends=(python rsync)
|
depends=(python rsync)
|
||||||
makedepends=(python-setuptools)
|
makedepends=(python-sphinx python-setuptools)
|
||||||
checkdepends=(python-hypothesis python-pytest)
|
checkdepends=(python-hypothesis python-pytest)
|
||||||
backup=(etc/$pkgname/backup.conf
|
backup=(etc/$pkgname/backup.conf
|
||||||
etc/$pkgname/etc-include.conf
|
etc/$pkgname/etc-include.conf
|
||||||
@ -19,6 +19,8 @@ sha512sums=('4d389c1669b54f8da3567420d786de065c81c732263068e3ac79f8dab539cf13a35
|
|||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
|
||||||
|
python setup.py sphinx_build
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
5
setup.py
5
setup.py
@ -1,17 +1,20 @@
|
|||||||
import setuptools
|
import setuptools
|
||||||
|
from sphinx.setup_command import BuildDoc
|
||||||
|
|
||||||
# ========== Constants ==========
|
# ========== Constants ==========
|
||||||
PACKAGES = ["rbackup", "rbackup.plugins", "rbackup.struct"]
|
PACKAGES = ["rbackup", "rbackup.plugins", "rbackup.struct"]
|
||||||
SCRIPTS = ["bin/backup"]
|
SCRIPTS = ["bin/backup"]
|
||||||
|
CMDCLASS = {'build_sphinx': BuildDoc}
|
||||||
|
|
||||||
# ========== Functions ==========
|
# ========== Functions ==========
|
||||||
with open("README", "r") as fh:
|
with open("README.rst", "r") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
# ========== Package Setup ==========
|
# ========== Package Setup ==========
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="rbackup",
|
name="rbackup",
|
||||||
version="0.5.2",
|
version="0.5.2",
|
||||||
|
cmdclass=CMDCLASS,
|
||||||
author="Eric Torres",
|
author="Eric Torres",
|
||||||
author_email="erictorres4@protonmail.com",
|
author_email="erictorres4@protonmail.com",
|
||||||
description="An rsync-based tool for creating backups",
|
description="An rsync-based tool for creating backups",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user