diff --git a/PKGBUILD b/PKGBUILD index 71a6e7b..9bdb373 100644 --- a/PKGBUILD +++ b/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() { diff --git a/setup.py b/setup.py index 089e085..b53a470 100644 --- a/setup.py +++ b/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",