-
-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #26326: Upgrade networkx to 2.2, add self tests, and update rand…
…om seed format Note that self tests require `nose` which is optional only. Also, the random seeds are not passed as integers, but as `random.Random` instances, see https://networkx.github.io/documentation/ stable/release/release_2.2.html#improvements Zipball: https://files.pythonhosted.org/packages/f3/f4/7e20ef40b11847819 1cec0b58c3192f822cace858c19505c7670961b76b2/networkx-2.2.zip URL: https://trac.sagemath.org/26326 Reported by: tmonteil Ticket author(s): Thierry Monteil, Dima Pasechnik Reviewer(s): Volker Braun, Dima Pasechnik
- Loading branch information
Showing
8 changed files
with
113 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
tarball=networkx-VERSION.zip | ||
sha1=a481bea7b41c0d6af191c7d2bcde56d75da20b3e | ||
md5=4a2c2a62dfc46ba7d594daca7c834995 | ||
cksum=1070647523 | ||
sha1=a68f8faa3726c220b93d68cfa28bed24874ba3fc | ||
md5=82608a3686fb3e61f20cf13bfd3c1b4a | ||
cksum=539980282 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.1 | ||
2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
if [ -z "$SAGE_LOCAL" ]; then | ||
echo >&2 "SAGE_LOCAL undefined ... exiting" | ||
echo >&2 "Maybe run 'sage --sh'?" | ||
exit 1 | ||
fi | ||
|
||
cd src | ||
|
||
if ! command -v nosetests ; then | ||
echo >&2 'Testing networkx requires the package nose to be installed' | ||
exit 1 | ||
fi | ||
|
||
echo "Testing networkx..." | ||
|
||
nosetests networkx -v | ||
|
||
if [ $? -ne 0 ]; then | ||
echo >&2 "Error running self tests." | ||
exit 1 | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.