[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
74/97: python-pathpy: Build documentation. REWORD UNFINISHED
From: |
Hartmut Goebel |
Subject: |
74/97: python-pathpy: Build documentation. REWORD UNFINISHED |
Date: |
Tue, 18 Oct 2016 20:13:22 +0000 (UTC) |
htgoebel pushed a commit to branch wip-python-build-system
in repository guix.
commit 8b86f79715715e20d7bb1d1f32a6c3263d7936bb
Author: Hartmut Goebel <address@hidden>
Date: Sun Oct 16 21:48:40 2016 +0200
python-pathpy: Build documentation. REWORD UNFINISHED
python-pathpy, python2-pathpy
[output] Add output "doc".
[native-inputs]: Add python-sphinx.
[build-doc], [install-doc]: New build phases.
---
gnu/packages/python.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 91d657a..bfc83e6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4160,13 +4160,33 @@ them as the version argument or in a SCM managed file.")
"path.py/path.py-" version ".tar.gz"))
(sha256
(base32 "1p8s1l2vfkqhqxdhqlj0g1jjw4f1as2frr35sjcpjjpd5a89y41f"))))
+ (outputs '("out" "doc"))
(build-system python-build-system)
(propagated-inputs
`(("python-appdirs" ,python-appdirs)))
(native-inputs
`(("python-setuptools-scm" ,python-setuptools-scm)
+ ("python-sphinx" ,python-sphinx)
+ ("python-rst.linker" ,python-rst.linker)
("python-pytest" ,python-pytest)
("python-pytest-runner" ,python-pytest-runner)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'build 'build-doc
+ (lambda _
+ (setenv "LANG" "en_US.UTF-8")
+ (zero? (system* "python" "setup.py" "build_sphinx"))))
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
+ (doc (string-append data "/doc/" ,name "-" ,version))
+ (html (string-append doc "/html")))
+ (mkdir-p html)
+ (for-each (lambda (file)
+ (copy-file file (string-append doc "/" file)))
+ '("README.rst" "CHANGES.rst"))
+ (copy-recursively "docs/_build/html" html)))))))
(home-page "http://github.com/jaraco/path.py")
(synopsis "Python module wrapper for built-in os.path")
(description
- 90/97: python-prompt-toolkit: Correct inputs, (continued)
- 90/97: python-prompt-toolkit: Correct inputs, Hartmut Goebel, 2016/10/18
- 89/97: python-pika: Correct input, Hartmut Goebel, 2016/10/18
- 93/97: python-dateutil, python-dateutil-2: Update home-page url., Hartmut Goebel, 2016/10/18
- 64/97: gnu: python-joblib: Remove python byte-code files from source., Hartmut Goebel, 2016/10/18
- 80/97: python-websocket-client: Correct inputs., Hartmut Goebel, 2016/10/18
- 91/97: python-consul correct inputs, Hartmut Goebel, 2016/10/18
- 84/97: Remove some outdated comments., Hartmut Goebel, 2016/10/18
- 92/97: python-freezegun: Correct input., Hartmut Goebel, 2016/10/18
- 71/97: gnu: python-redis: Remove unused input., Hartmut Goebel, 2016/10/18
- 78/97: python-configobj: Correct inputs., Hartmut Goebel, 2016/10/18
- 74/97: python-pathpy: Build documentation. REWORD UNFINISHED,
Hartmut Goebel <=
- 83/97: python-tox: Update FIXME comments., Hartmut Goebel, 2016/10/18
- 96/97: gnu: python-testlib: Remove useless self-defined phase "unpack"., Hartmut Goebel, 2016/10/18
- 97/97: TODO: Remove .pyc, Hartmut Goebel, 2016/10/18
- 81/97: python-wsgi-intercept: Correct inputs., Hartmut Goebel, 2016/10/18
- 86/97: python-sphinx-repoze-autointerface: Remove needless input, already propagated., Hartmut Goebel, 2016/10/18
- 88/97: python-responses: Correct inputs, Hartmut Goebel, 2016/10/18
- 16/97: gnu: Remove python-setuptools and python2-setuptools from inputs (part 4b), Hartmut Goebel, 2016/10/18
- 94/97: gnu: python-nautilus: Correct inputs, Hartmut Goebel, 2016/10/18
- 11/97: gnu: Remove python-setuptools and python2-setuptools from inputs (part 1a), Hartmut Goebel, 2016/10/18
- 13/97: gnu: Remove python-setuptools and python2-setuptools from inputs (part 2), Hartmut Goebel, 2016/10/18