Skip to content

Commit

Permalink
Fix for issue #1165
Browse files Browse the repository at this point in the history
* Notes & news
	modified:   NEWS
	modified:   doc/src/release_notes.rst
* Fix
	modified:   cmake/FindSphinx.cmake
	modified:   tools/testers/algorithm-tester.pl
* Version typo fix
	modified:   doc/queries/doc-pgr_version.queries
  • Loading branch information
cvvergara committed Nov 30, 2018
1 parent 149efad commit c0c175c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -80,6 +80,7 @@ To see the issues closed by this release see the [Git closed milestone for 2.5.5

* Fixes driving distance when vertex is not part of the graph
* Fixes windows test
* Fixes build for python3 and perl5


pgRouting 2.5.4 Release Notes
Expand Down
10 changes: 8 additions & 2 deletions cmake/FindSphinx.cmake
Expand Up @@ -7,6 +7,10 @@
# SPHINX_VERSION - the version of Sphinx which was found, e.g. "1.0.7"

#=============================================================================
#
# Copyright (C) 2018 Vicky Vergara
# Modification for python3
#
# Copyright (C) 2011 Marie Rognes and Johannes Ring
# All rights reserved.
#
Expand Down Expand Up @@ -52,10 +56,13 @@ find_program(SPHINX_EXECUTABLE sphinx-build
if (SPHINX_EXECUTABLE)
# Try to check Sphinx version by importing Sphinx
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "import sphinx; print sphinx.__version__"
COMMAND ${SPHINX_EXECUTABLE} --version
OUTPUT_VARIABLE SPHINX_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)

message(STATUS "SPHINX_VERSION ${SPHINX_VERSION}")
string(REGEX MATCH "[0-9]+\.[0-9]+.\[0-9]+" SPHINX_VERSION "${SPHINX_VERSION}")
message(STATUS "SPHINX_VERSION ${SPHINX_VERSION}")
if (Sphinx_FIND_VERSION)
# Check if version found is >= required version
if (NOT "${SPHINX_VERSION}" VERSION_LESS "${Sphinx_FIND_VERSION}")
Expand All @@ -76,4 +83,3 @@ mark_as_advanced(
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Sphinx DEFAULT_MSG
SPHINX_EXECUTABLE SPHINX_VERSION_OK)

2 changes: 1 addition & 1 deletion doc/queries/doc-pgr_version.queries
Expand Up @@ -6,7 +6,7 @@ SET
SELECT version FROM pgr_version();
version
---------
2.6.1
2.6.2
(1 row)

-- q2
Expand Down
1 change: 1 addition & 0 deletions doc/src/release_notes.rst
Expand Up @@ -129,6 +129,7 @@ To see the issues closed by this release see the `Git closed milestone for 2.5.5

* Fixes driving distance when vertex is not part of the graph
* Fixes windows test
* Fixes build for python3 and perl5

.. _changelog_2_5_4:

Expand Down
4 changes: 3 additions & 1 deletion tools/testers/algorithm-tester.pl
Expand Up @@ -35,7 +35,7 @@
if 0; #$running_under_some_shell

use strict;
use warnings;
use lib './';
use File::Find ();
use File::Basename;
use Data::Dumper;
Expand Down Expand Up @@ -198,6 +198,7 @@ sub Usage {

# cfgs = SET of configuration file names
# c one file in cfgs
# print join("\n",@cfgs),"\n";
for my $c (@cfgs) {
my $found = 0;

Expand Down Expand Up @@ -575,6 +576,7 @@ sub want_tests {
# ||
/^test\.conf\z/s &&
push @cfgs, $name;
#print join("\n",@cfgs),"\n";
}


0 comments on commit c0c175c

Please sign in to comment.