From 73abc50a8aa2aa250b41952c70bbb8d60c22a1de Mon Sep 17 00:00:00 2001 From: "James D. Mitchell" Date: Fri, 30 Aug 2024 09:42:32 +0100 Subject: [PATCH 1/2] Fix startup for GAP versions before 4.12.0 --- PackageInfo.g | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PackageInfo.g b/PackageInfo.g index b93125a12..a5695ce59 100644 --- a/PackageInfo.g +++ b/PackageInfo.g @@ -25,6 +25,10 @@ _STANDREWSMATHS := Concatenation(["Mathematical Institute, North Haugh, ", _STANDREWSCS := Concatenation(["Jack Cole Building, North Haugh, ", "St Andrews, Fife, KY16 9SX, Scotland"]); +if not CompareVersionNumbers(GAPInfo.Version, "4.12") then + IsKernelExtensionAvailable := fail; +fi; + SetPackageInfo(rec( PackageName := "Digraphs", Subtitle := "Graphs, digraphs, and multidigraphs in GAP", @@ -444,6 +448,8 @@ AvailabilityTest := function() "the package cannot be loaded."]); return fail; fi; + # Stop GAP from erroring that IsKernelExtensionAvailable is not a bound + # global in the next line. fi; return true; end, @@ -452,3 +458,7 @@ Autoload := false, TestFile := "tst/teststandard.g", Keywords := [] )); + +if not CompareVersionNumbers(GAPInfo.Version, "4.12") then + Unbind(IsKernelExtensionAvailable); +fi; From f0d7fd2e6f378d326d8bf803fa9e4a671c88c4d6 Mon Sep 17 00:00:00 2001 From: "James D. Mitchell" Date: Fri, 30 Aug 2024 09:45:10 +0100 Subject: [PATCH 2/2] Ignore autodoc generated files --- .gitignore | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 654b88ca8..bb6cb29c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,12 @@ -.ipynb_checkpoints +*.DS_Store +*.Plo +*.Tpo *.a *.aux *.bbl *.blg *.brf *.digraphs -*.DS_Store *.dylib *.g6 *.gcda @@ -23,7 +24,6 @@ *.o *.out *.pdf -*.Plo *.pnr *.pyc *.six @@ -35,11 +35,12 @@ *.tex *.toc *.top -*.Tpo *.tui *.txt +.ipynb_checkpoints /doc/*.css /doc/*.js +Makefile aclocal.m4 autom4te.* bin/ @@ -50,9 +51,9 @@ coverage depcomp digraphs-config.h digraphs-lib +doc/_*.xml gen/ gh-pages/ -Makefile manual.lab missing src/pkgconfig.h.in