This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository python-x2go. from 4cf1023 x2go/_paramiko.py: Monkey-patch PKey._write_private_key() method as it is broken under Python3. new 4b8ec8d Makefile.docupload: make sphinx-apidoc overridable/configurable. new b00ab6e python-x2go.spec: call a more specialized version of sphinx-apidoc depending on the Python version we're building against. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: Makefile.docupload | 3 ++- debian/changelog | 12 ++++++++++++ python-x2go.spec | 24 +++++++++++++++++++++++- 3 files changed, 37 insertions(+), 2 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/python-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository python-x2go. commit 4b8ec8d7133b7058ccff48818d09786f53139ccd Author: Mihai Moldovan <ionic@ionic.de> Date: Tue Dec 31 19:13:12 2019 +0100 Makefile.docupload: make sphinx-apidoc overridable/configurable. --- Makefile.docupload | 3 ++- debian/changelog | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.docupload b/Makefile.docupload index 9ba799d..9ac7961 100644 --- a/Makefile.docupload +++ b/Makefile.docupload @@ -6,6 +6,7 @@ VERSION=`head -n1 debian/changelog | sed 's,.*(\(.*\)).*,\1,' | cut -d"-" -f1` DOC_HOST=code.x2go.org DOC_PATH=/srv/sites/x2go.org/code/doc/python-x2go DOC_USER=x2go-admin +SPHINX_APIDOC=sphinx-apidoc doc: docbuild docupload @@ -13,7 +14,7 @@ clean: ${MAKE} -C docs/ clean apidoc: - sphinx-apidoc -f -e -o docs/source/ x2go + $(SPHINX_APIDOC) -f -e -o docs/source/ x2go docbuild: clean ${MAKE} -C docs/ html SPHINXOPTS="-a -E" diff --git a/debian/changelog b/debian/changelog index b2fb6ac..9014983 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,10 @@ python-x2go (0.6.1.3-0x2go1) UNRELEASED; urgency=medium it is broken under Python3. See: https://github.com/paramiko/paramiko/pull/1583/ + [ Mihai Moldovan ] + * New upstream version (0.6.1.3): + - Makefile.docupload: make sphinx-apidoc overridable/configurable. + -- X2Go Release Manager <git-admin@x2go.org> Thu, 26 Dec 2019 10:37:02 +0100 python-x2go (0.6.1.2-0x2go1) unstable; urgency=medium -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/python-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository python-x2go. commit b00ab6e16f4d80b12e9f1068398582dd0eb7ba6e Author: Mihai Moldovan <ionic@ionic.de> Date: Tue Dec 31 19:52:06 2019 +0100 python-x2go.spec: call a more specialized version of sphinx-apidoc depending on the Python version we're building against. When building for Python 3, use the specific Python-3-version corresponding to %{python3_version}. Otherwise, try to auto-detect the correct version by scanning for either sphinx-apidoc-%{python2_version}, sphinx-apidoc-2 or just defaulting to sphinx-apidoc (and hoping very hard that this is actually the Python-2-version). --- debian/changelog | 8 ++++++++ python-x2go.spec | 24 +++++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 9014983..625a28e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,14 @@ python-x2go (0.6.1.3-0x2go1) UNRELEASED; urgency=medium [ Mihai Moldovan ] * New upstream version (0.6.1.3): - Makefile.docupload: make sphinx-apidoc overridable/configurable. + * python-x2go.spec: + + Call a more specialized version of sphinx-apidoc depending on the Python + version we're building against. When building for Python 3, use the + specific Python-3-version corresponding to %{python3_version}. + Otherwise, try to auto-detect the correct version by scanning for either + sphinx-apidoc-%{python2_version}, sphinx-apidoc-2 or just defaulting to + sphinx-apidoc (and hoping very hard that this is actually the + Python-2-version). -- X2Go Release Manager <git-admin@x2go.org> Thu, 26 Dec 2019 10:37:02 +0100 diff --git a/python-x2go.spec b/python-x2go.spec index 6595189..121dc07 100644 --- a/python-x2go.spec +++ b/python-x2go.spec @@ -269,7 +269,29 @@ python3 setup.py build # with_python3 # Build the docs -make -f Makefile.docupload docbuild +%if %{?with_python3} +# If we build for Python 3, let's assume that the binary always includes the python 3 version. +make -f Makefile.docupload docbuild SPHINX_APIDOC='sphinx-apidoc-%{python3_version}' +%else +# Python-2-builds are a bit tricky. +# Sometimes the Python-2-binary doesn't have any postfix, sometimes the unpostfixed one is +# the Python-3-version. +# We'll try to guess and select the most appropriate, if possible. +sphinx_apidoc_bin='sphinx-apidoc' +sphinx_apidoc_bin_guessed='0' +if [ -n '%{python2_version}' ]; then + if [ -x "/usr/bin/${sphinx_apidoc_bin}-%{python2_version}" ]; then + sphinx_apidoc_bin="/usr/bin/${sphinx_apidoc_bin}-%{python2_version}" + sphinx_apidoc_bin_guessed='1' + fi +fi +if [ '0' = "${sphinx_apidoc_bin_guessed}" ] && [ -x "/usr/bin/${sphinx_apidoc_bin}-2" ]; then + sphinx_apidoc_bin="/usr/bin/${sphinx_apidoc_bin}-2" + sphinx_apidoc_bin_guessed='1' +fi +# Otherwise just use the default and hope very hard that it is the Python-2-version. +make -f Makefile.docupload docbuild SPHINX_APIDOC="${sphinx_apidoc_bin}" +%endif %install -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/python-x2go.git