Skip to content

Commit dc573b5

Browse files
Update version numbers etc for v0.10.1
1 parent 4d8b7f3 commit dc573b5

File tree

12 files changed

+51
-48
lines changed

12 files changed

+51
-48
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# libsemigroups_pybind11 - Version 0.10.0
1+
# libsemigroups_pybind11 - Version 0.10.1
22

33
## python bindings for the C++ library libsemigroups
44

@@ -82,10 +82,10 @@ Assuming that you have `libsemigroups` installed you can install
8282

8383
To build `libsemigroups_pybind11` from a release archive:
8484

85-
curl -L -O https://github.com/libsemigroups/libsemigroups_pybind11/releases/latest/download/libsemigroups_pybind11-0.10.0.tar.gz
86-
tar -xf libsemigroups_pybind11-0.10.0.tar.gz
87-
rm -f libsemigroups_pybind11-0.10.0.tar.gz
88-
cd libsemigroups_pybind11-0.10.0
85+
curl -L -O https://github.com/libsemigroups/libsemigroups_pybind11/releases/latest/download/libsemigroups_pybind11-0.10.1.tar.gz
86+
tar -xf libsemigroups_pybind11-0.10.1.tar.gz
87+
rm -f libsemigroups_pybind11-0.10.1.tar.gz
88+
cd libsemigroups_pybind11-0.10.1
8989
pip install .
9090

9191
## Building the documentation

docs/source/api/fpsemi.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ algorithms, such as :class:`.ToddCoxeter` and :class:`.KnuthBendix`.
2727
>>> S.set_alphabet(3)
2828
>>> S.set_identity(0)
2929
>>> S.add_rule([1, 2], [0])
30-
>>> S.is_obviously_infinite()
30+
>>> S.is_obviously_infinite()
3131
True
3232

3333
.. autoclass:: FpSemigroup

docs/source/api/kambites.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ overlap monoids by Kambites_ and the authors of ``libsemigroups``.
2121
>>> k.set_alphabet("abcd")
2222
>>> k.add_rule("abcd", "accca");
2323
>>> k.number_of_pieces(0) == POSITIVE_INFINITY
24-
True
24+
True
2525
>>> k.number_of_pieces(1)
2626
4
2727
>>> k.small_overlap_class()

docs/source/api/toddcoxeter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ of (any version of) the Todd-Coxeter algorithm.
5454
>>> tc.add_pair([2, 3], [0])
5555
>>> tc.add_pair([2, 2, 2], [0])
5656
>>> tc.add_pair([1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2], [0])
57-
>>> tc.add_pair([1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3,
57+
>>> tc.add_pair([1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3,
5858
... 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3], [0])
5959
>>> tc.strategy(ToddCoxeter.strategy_options.hlt).standardize(False)
6060
<ToddCoxeter object with 4 generators and 12 pairs>

docs/source/changelog.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,20 @@
77
Changelog
88
=========
99

10+
v0.10.1 (released 29/03/2023)
11+
-----------------------------
12+
13+
This release increases the required version of ``libsemigroups`` to v2.7.1,
14+
which contains some bug fixes.
15+
1016
v0.10.0 (released 23/03/2023)
1117
-----------------------------
1218

1319
This is a minor release adding some new functionality from ``libsemigroups``:
1420

1521
* ukkonen: add support for ``Ukkonen`` + helpers by @james-d-mitchell in
1622
https://github.com/libsemigroups/libsemigroups_pybind11/pull/132
17-
* present: add further manip. funcs by @james-d-mitchell in
23+
* present: add further manip. funcs by @james-d-mitchell in
1824
https://github.com/libsemigroups/libsemigroups_pybind11/pull/136
1925

2026
v0.9.2 (released 22/03/2023)

docs/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
project = u"libsemigroups_pybind11"
2828
copyright = u"2021-2023, J. D. Mitchell + Maria Tsalakou"
2929
author = u"J. D. Mitchell + Maria Tsalakou"
30-
version = u"0.10.0"
31-
release = u"0.10.0"
30+
version = u"0.10.1"
31+
release = u"0.10.1"
3232
language = "python"
3333
exclude_patterns = ["_build"]
3434
pygments_style = "sphinx"

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
libsemigroups_pybind11 - Version 0.10.0
1+
libsemigroups_pybind11 - Version 0.10.1
22
=======================================
33

44
python bindings for the C++ library libsemigroups

docs/source/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
The full license is in the file LICENSE, distributed with this software.
66
7-
.. |libsemigroups-pybind11-version| replace:: 0.10.0
7+
.. |libsemigroups-pybind11-version| replace:: 0.10.1
88

99
Installation
1010
============

docs/templates/api/matrix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
This page contains the documentation for functionality in
1515
``libsemigroups_pybind11`` for :py:class:`{{Mat}}`.
1616

17-
.. autosummary::
17+
.. autosummary::
1818
:nosignatures:
1919

2020
~{{Mat}}

docs/templates/api/transf.rst

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Distributed under the terms of the GPL license version 3.
44
55
The full license is in the file LICENSE, distributed with this software.
6-
6+
77
This file was auto-generated from the template in docs/templates/api/transf.rst
88
99
DO NOT EDIT this file directly
@@ -21,11 +21,11 @@ internal classes. These internal types are optimised for the number of points
2121
in the image of the specified {{LongNameNoCap}} with fewer points requiring less
2222
space per point. If ``libsemigroups`` has been compiled with ``HPCombi``
2323
enabled, then the objects returned by :py:class:`{{Type}}` use the SSE and AVX
24-
instruction sets are used for very fast manipulation.
24+
instruction sets are used for very fast manipulation.
2525

2626
While :py:class:`{{Type}}` is not a class the objects returned by
2727
:py:class:`{{Type}}` have identical methods, and so we document
28-
:py:class:`{{Type}}` as if it was a class.
28+
:py:class:`{{Type}}` as if it was a class.
2929

3030
.. py:class:: {{Type}}
3131
@@ -37,7 +37,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
3737
as an array of the images :math:`\{(0)f,(1)f,\ldots,(n−1)f\}`.
3838
3939
.. py:method:: __eq__(self: {{Type}}, that: {{Type}}) -> bool
40-
40+
4141
Equality comparison.
4242
4343
Returns ``True`` if ``self`` equals ``that`` by comparing their
@@ -47,16 +47,16 @@ While :py:class:`{{Type}}` is not a class the objects returned by
4747
:type that: {{Type}}
4848
4949
:returns: A ``bool``.
50-
50+
5151
.. py:method:: __getitem__(self: {{Type}}, i: int) -> int
52-
52+
5353
Returns the image of ``i``.
5454
5555
:param i: the value whose image is sought.
5656
:type i: int
5757
5858
:return: An ``int``.
59-
59+
6060
.. py:method:: __lt__(self: {{Type}}, that: {{Type}}) -> bool
6161
6262
Less than comparison.
@@ -68,16 +68,16 @@ While :py:class:`{{Type}}` is not a class the objects returned by
6868
:type that: {{Type}}
6969
7070
:returns: A ``bool``.
71-
72-
.. py:method:: __mul__(self: {{Type}}, that: {{Type}}) -> {{Type}}
71+
72+
.. py:method:: __mul__(self: {{Type}}, that: {{Type}}) -> {{Type}}
7373
7474
Right multiply ``self`` by ``that``.
7575
7676
:param that: the {{LongNameNoCap}} to multiply with.
7777
:type that: {{Type}}
7878
7979
:returns: A :py:class:`{{Type}}`.
80-
80+
8181
.. py:method:: degree(self: {{Type}}) -> int
8282
8383
Returns the degree.
@@ -87,7 +87,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
8787
8888
:Parameters: ``None``
8989
:return: An ``int``.
90-
90+
9191
.. py:method:: identity(self: {{Type}}) -> int
9292
9393
Returns the identity {{LongNameNoCap}} on :py:meth:`degree` points.
@@ -111,7 +111,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
111111
:rtype: {{Type}}
112112
113113
:raises RuntimeError: if any value in ``l`` exceeds ``len(l)``.
114-
114+
115115
.. py:staticmethod:: make_identity(M: int) -> {{Type}}
116116
117117
Returns the identity {{LongNameNoCap}} on the given number of
@@ -120,9 +120,9 @@ While :py:class:`{{Type}}` is not a class the objects returned by
120120
:Parameters: **M** (int) - the degree.
121121
122122
:Returns: A value of type :py:class:`{{Type}}`.
123-
123+
124124
.. py:method:: product_inplace(self: {{Type}}, x: {{Type}}, y: {{Type}}) -> None
125-
125+
126126
Multiply two {{LongNameNoCap}}s and store the product in ``self``.
127127
128128
:param x: a {{LongNameNoCap}}.
@@ -131,7 +131,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
131131
:type y: {{Type}}
132132
133133
:return: (None)
134-
134+
135135
.. py:method:: rank(self: {{Type}}) -> int
136136
137137
Returns the number of distinct image values.
@@ -141,14 +141,13 @@ While :py:class:`{{Type}}` is not a class the objects returned by
141141
142142
:Parameters: None
143143
:return: An ``int``.
144-
144+
145145
.. py:method:: images(self: {{Type}}) -> Iterator
146146
147147
Returns an iterator pointing at the first image value.
148148
149149
:Parameters: None
150150
:return: An iterator.
151-
152151
{% if Type == "PPerm" or Type == "Perm" -%}
153152
.. py:method:: inverse(self: {{Type}}) -> {{Type}}
154153
@@ -157,9 +156,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
157156
:Parameters: None
158157
:Returns: A :py:class:`{{Type}}`.
159158
{% endif %}
160-
161159
{% if Type == "PPerm" -%}
162-
163160
.. py:staticmethod:: make(dom: List[int], ran: List[int], M: int) -> {{Type}}
164161
:noindex:
165162
@@ -186,20 +183,19 @@ While :py:class:`{{Type}}` is not a class the objects returned by
186183
187184
:Parameters: None.
188185
:return: A ``{{Type}}``.
189-
186+
190187
.. py:method:: right_one(self: {{Type}}) -> {{Type}}
191188
192189
Returns the right one of this.
193190
194191
:Parameters: None.
195192
:return: A ``{{Type}}``.
196-
193+
197194
.. py:method:: undef(self: {{Type}}) -> int
198195
199196
Returns the integer value used to represent undefined.
200197
201198
:Parameters: None.
202199
203200
:Returns: An ``int``.
204-
205201
{% endif %}

etc/make-doc.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
fi
99

1010
$PYTHON - <<END
11-
import jinja2
11+
import re
1212
from jinja2 import Environment, FileSystemLoader, select_autoescape
1313
1414
env = Environment(
@@ -38,18 +38,19 @@ for T, TL, TLC, F, S in [
3838
("Perm", "permutation", "Permutation", " bijective", "the whole"),
3939
]:
4040
fnam = "docs/source/api/%s.rst" % T
41+
trailing_ws = re.compile(r"(\s+\n|\s+$)")
4142
with open(fnam, "w") as file:
4243
print("Generating %s . . . " % fnam)
43-
file.write(
44-
template.render(
45-
Type=T,
46-
Underline="=" * (len(TLC) + 1),
47-
LongNameNoCap=TL,
48-
LongNameCap=TLC,
49-
Function=F,
50-
Subset=S,
51-
)
52-
)
44+
content = template.render(
45+
Type=T,
46+
Underline="=" * (len(TLC) + 1),
47+
LongNameNoCap=TL,
48+
LongNameCap=TLC,
49+
Function=F,
50+
Subset=S,
51+
)
52+
content = re.sub(trailing_ws, r"\n\n", content)
53+
file.write(content)
5354
END
5455

5556
cd docs/

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
compare_version_numbers,
3030
)
3131

32-
__version__ = "0.10.0"
32+
__version__ = "0.10.1"
3333

3434
pprint(os.environ)
3535

0 commit comments

Comments
 (0)