Skip to content

Commit

Permalink
added locales to the list of needed packages for ComplexesCategories …
Browse files Browse the repository at this point in the history
…und bump version to 2023.06-02
  • Loading branch information
kamalsaleh committed Jun 27, 2023
1 parent e95be87 commit 9c1356b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 35 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
git clone --depth 1 -vv https://github.com/homalg-project/FunctorCategories.git
git clone --depth 1 -vv https://github.com/homalg-project/SubcategoriesForCAP.git
git clone --depth 1 -vv https://github.com/homalg-project/CategoryConstructor.git
git clone --depth 1 -vv https://github.com/homalg-project/Locales.git
- name: Build documentation of packages which we might want to reference
run: |
# keep this in sync with `dev/.release`
Expand Down
6 changes: 3 additions & 3 deletions ComplexesCategories/PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SetPackageInfo( rec(

PackageName := "ComplexesCategories",
Subtitle := "Category of (co)chain complexes of an additive category",
Version := "2023.06-01",
Version := "2023.06-02",
Date := (function ( ) if IsBound( GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE ) then return GAPInfo.SystemEnvironment.GAP_PKG_RELEASE_DATE; else return Concatenation( ~.Version{[ 1 .. 4 ]}, "-", ~.Version{[ 6, 7 ]}, "-01" ); fi; end)( ),
License := "GPL-2.0-or-later",

Expand Down Expand Up @@ -77,10 +77,10 @@ Dependencies := rec(
[ "CAP", ">= 2023.05-03" ],
[ "ToolsForHigherHomologicalAlgebra", ">= 2022.12-05" ],
[ "PreSheaves", ">= 2023.05-03" ],
[ "Locales", ">= 2023.06-13" ],
],

SuggestedOtherPackages := [ #[ "Locales", ">= 2023.05-05" ],
],
SuggestedOtherPackages := [ ],

ExternalConditions := [ ],
),
Expand Down
33 changes: 1 addition & 32 deletions ComplexesCategories/gap/Categories.gi
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,7 @@
#


BindGlobal( "INTEGERS_CAT",

function ( )
local category;

if IsPackageMarkedForLoading( "Locales", ">= 2023.05-05" ) then

return ValueGlobal( "TotalOrderAsCategory" )( "IsInt", {a,b} -> a >= b );

else

category := CreateCapCategory( "TotalOrderAsCategory( \"IsInt\" )" );
category!.category_as_first_argument := true;

AddObjectConstructor( category, { cat, i } -> CreateCapCategoryObjectWithAttributes( cat, ObjectDatum, i ) );
AddMorphismConstructor( category, { cat, s, datum, r } -> CreateCapCategoryMorphismWithAttributes( cat, s, r ) );

AddPreCompose( category, { cat, u, v } -> MorphismConstructor( cat, Source( u ), true, Range( v ) ) );
AddIdentityMorphism( category, { cat, u } -> MorphismConstructor( cat, Source( u ), true, Range( u ) ) );

AddIsWellDefinedForMorphisms( category, { cat, u } -> ObjectDatum( Source( u ) ) >= ObjectDatum( Range( u ) ) );

AddIsEqualForObjects( category, { cat, i, j } -> IsIdenticalObj( ObjectDatum( i ), ObjectDatum( j ) ) );
AddIsEqualForMorphisms( category, { cat, u, v } -> IsEqualForObjects( Source( u ), Source( u ) ) and IsEqualForObjects( Range( u ), Range( u ) ) );

Finalize( category );

return category;

fi;

end ( ) );
BindGlobal( "INTEGERS_CAT", TotalOrderAsCategory( "IsInt", {a,b} -> a >= b ) );

BindGlobal( "INTEGERS_CAT_OBJS",

Expand Down

0 comments on commit 9c1356b

Please sign in to comment.