Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ jobs:

# Used to host cibuildwheel
- name: Build wheel
uses: pypa/cibuildwheel@v3.3.1
uses: pypa/cibuildwheel@v3.4.0
with:
output-dir: wheelhouse
- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: cibw-wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
Expand All @@ -49,7 +49,7 @@ jobs:
run: source etc/make-libsemigroups.sh && sudo make install
- name: Build SDist
run: uv build --sdist
- uses: actions/upload-artifact@v6
- uses: actions/upload-artifact@v7
with:
name: sdist
path: dist/*.tar.gz
Expand All @@ -73,7 +73,7 @@ jobs:

steps:
- name: Download wheels and sdist artifacts
uses: actions/download-artifact@v7
uses: actions/download-artifact@v8
with:
# Here, we could specify a name of an artifact, or a pattern that
# matches the names of artifacts. However, by not specifying these
Expand Down
4 changes: 2 additions & 2 deletions build_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2024 J. D. Mitchell
# Copyright (c) 2021-2026 J. D. Mitchell
#
# Distributed under the terms of the GPL license version 3.
#
Expand All @@ -11,4 +11,4 @@ def minimum_libsemigroups_version():
"""Returns the minimum required version of libsemigroups required to build
libsemigroups_pybind11.
"""
return "3.5.1"
return "3.5.3"
4 changes: 1 addition & 3 deletions src/cong.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ individual algorithms, such as :any:`Kambites`,
>>> cong = Congruence(congruence_kind.twosided, p)
>>> is_obviously_infinite(cong)
True
>>> cong.add_generating_pair([1, 1, 1], [])
<2-sided Congruence over <monoid presentation with 2 letters, 1 rule, and length 2> with 1 gen. pair, 4 runners>
>>> cong.number_of_classes()
>>> cong.add_generating_pair([1, 1, 1], []).number_of_classes()
3
>>> is_obviously_infinite(cong)
False
Expand Down
12 changes: 6 additions & 6 deletions tests/test_cong.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def test_has_get():

c = Congruence(congruence_kind.twosided, p)

assert c.number_of_runners() == 4
assert c.has(ToddCoxeter)
tc = c.get(ToddCoxeter)
assert c.number_of_runners() <= 4
assert c.has(Kambites)
k = c.get(Kambites)

c.run()
assert c.number_of_classes() == POSITIVE_INFINITY
Expand All @@ -104,12 +104,12 @@ def test_has_get():
assert c.has(KnuthBendix)
assert c.get(KnuthBendix).confluent()

# Check that the ToddCoxeter returned above outlives its deletion in
# Check that the Kambites returned above outlives its deletion in
# Congruence
assert tc.number_of_classes() == POSITIVE_INFINITY
assert k.small_overlap_class() == 1

with pytest.raises(LibsemigroupsError):
c.get(ToddCoxeter)
c.get(Kambites)


def test_normal_forms():
Expand Down
Loading