Skip to content

Commit

Permalink
Update version numbers etc for v0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Mar 29, 2023
1 parent 4d8b7f3 commit dc573b5
Show file tree
Hide file tree
Showing 12 changed files with 51 additions and 48 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# libsemigroups_pybind11 - Version 0.10.0
# libsemigroups_pybind11 - Version 0.10.1

## python bindings for the C++ library libsemigroups

Expand Down Expand Up @@ -82,10 +82,10 @@ Assuming that you have `libsemigroups` installed you can install

To build `libsemigroups_pybind11` from a release archive:

curl -L -O https://github.com/libsemigroups/libsemigroups_pybind11/releases/latest/download/libsemigroups_pybind11-0.10.0.tar.gz
tar -xf libsemigroups_pybind11-0.10.0.tar.gz
rm -f libsemigroups_pybind11-0.10.0.tar.gz
cd libsemigroups_pybind11-0.10.0
curl -L -O https://github.com/libsemigroups/libsemigroups_pybind11/releases/latest/download/libsemigroups_pybind11-0.10.1.tar.gz
tar -xf libsemigroups_pybind11-0.10.1.tar.gz
rm -f libsemigroups_pybind11-0.10.1.tar.gz
cd libsemigroups_pybind11-0.10.1
pip install .

## Building the documentation
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/fpsemi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ algorithms, such as :class:`.ToddCoxeter` and :class:`.KnuthBendix`.
>>> S.set_alphabet(3)
>>> S.set_identity(0)
>>> S.add_rule([1, 2], [0])
>>> S.is_obviously_infinite()
>>> S.is_obviously_infinite()
True

.. autoclass:: FpSemigroup
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/kambites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ overlap monoids by Kambites_ and the authors of ``libsemigroups``.
>>> k.set_alphabet("abcd")
>>> k.add_rule("abcd", "accca");
>>> k.number_of_pieces(0) == POSITIVE_INFINITY
True
True
>>> k.number_of_pieces(1)
4
>>> k.small_overlap_class()
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/toddcoxeter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ of (any version of) the Todd-Coxeter algorithm.
>>> tc.add_pair([2, 3], [0])
>>> tc.add_pair([2, 2, 2], [0])
>>> tc.add_pair([1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2], [0])
>>> tc.add_pair([1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3,
>>> tc.add_pair([1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3,
... 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3, 1, 2, 1, 3], [0])
>>> tc.strategy(ToddCoxeter.strategy_options.hlt).standardize(False)
<ToddCoxeter object with 4 generators and 12 pairs>
Expand Down
8 changes: 7 additions & 1 deletion docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@
Changelog
=========

v0.10.1 (released 29/03/2023)
-----------------------------

This release increases the required version of ``libsemigroups`` to v2.7.1,
which contains some bug fixes.

v0.10.0 (released 23/03/2023)
-----------------------------

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

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

v0.9.2 (released 22/03/2023)
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
project = u"libsemigroups_pybind11"
copyright = u"2021-2023, J. D. Mitchell + Maria Tsalakou"
author = u"J. D. Mitchell + Maria Tsalakou"
version = u"0.10.0"
release = u"0.10.0"
version = u"0.10.1"
release = u"0.10.1"
language = "python"
exclude_patterns = ["_build"]
pygments_style = "sphinx"
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
libsemigroups_pybind11 - Version 0.10.0
libsemigroups_pybind11 - Version 0.10.1
=======================================

python bindings for the C++ library libsemigroups
Expand Down
2 changes: 1 addition & 1 deletion docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
The full license is in the file LICENSE, distributed with this software.
.. |libsemigroups-pybind11-version| replace:: 0.10.0
.. |libsemigroups-pybind11-version| replace:: 0.10.1

Installation
============
Expand Down
2 changes: 1 addition & 1 deletion docs/templates/api/matrix.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
This page contains the documentation for functionality in
``libsemigroups_pybind11`` for :py:class:`{{Mat}}`.

.. autosummary::
.. autosummary::
:nosignatures:

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

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

.. py:class:: {{Type}}
Expand All @@ -37,7 +37,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
as an array of the images :math:`\{(0)f,(1)f,\ldots,(n−1)f\}`.
.. py:method:: __eq__(self: {{Type}}, that: {{Type}}) -> bool
Equality comparison.
Returns ``True`` if ``self`` equals ``that`` by comparing their
Expand All @@ -47,16 +47,16 @@ While :py:class:`{{Type}}` is not a class the objects returned by
:type that: {{Type}}
:returns: A ``bool``.
.. py:method:: __getitem__(self: {{Type}}, i: int) -> int
Returns the image of ``i``.
:param i: the value whose image is sought.
:type i: int
:return: An ``int``.
.. py:method:: __lt__(self: {{Type}}, that: {{Type}}) -> bool
Less than comparison.
Expand All @@ -68,16 +68,16 @@ While :py:class:`{{Type}}` is not a class the objects returned by
:type that: {{Type}}
:returns: A ``bool``.
.. py:method:: __mul__(self: {{Type}}, that: {{Type}}) -> {{Type}}
.. py:method:: __mul__(self: {{Type}}, that: {{Type}}) -> {{Type}}
Right multiply ``self`` by ``that``.
:param that: the {{LongNameNoCap}} to multiply with.
:type that: {{Type}}
:returns: A :py:class:`{{Type}}`.
.. py:method:: degree(self: {{Type}}) -> int
Returns the degree.
Expand All @@ -87,7 +87,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
:Parameters: ``None``
:return: An ``int``.
.. py:method:: identity(self: {{Type}}) -> int
Returns the identity {{LongNameNoCap}} on :py:meth:`degree` points.
Expand All @@ -111,7 +111,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
:rtype: {{Type}}
:raises RuntimeError: if any value in ``l`` exceeds ``len(l)``.
.. py:staticmethod:: make_identity(M: int) -> {{Type}}
Returns the identity {{LongNameNoCap}} on the given number of
Expand All @@ -120,9 +120,9 @@ While :py:class:`{{Type}}` is not a class the objects returned by
:Parameters: **M** (int) - the degree.
:Returns: A value of type :py:class:`{{Type}}`.
.. py:method:: product_inplace(self: {{Type}}, x: {{Type}}, y: {{Type}}) -> None
Multiply two {{LongNameNoCap}}s and store the product in ``self``.
:param x: a {{LongNameNoCap}}.
Expand All @@ -131,7 +131,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
:type y: {{Type}}
:return: (None)
.. py:method:: rank(self: {{Type}}) -> int
Returns the number of distinct image values.
Expand All @@ -141,14 +141,13 @@ While :py:class:`{{Type}}` is not a class the objects returned by
:Parameters: None
:return: An ``int``.
.. py:method:: images(self: {{Type}}) -> Iterator
Returns an iterator pointing at the first image value.
:Parameters: None
:return: An iterator.
{% if Type == "PPerm" or Type == "Perm" -%}
.. py:method:: inverse(self: {{Type}}) -> {{Type}}
Expand All @@ -157,9 +156,7 @@ While :py:class:`{{Type}}` is not a class the objects returned by
:Parameters: None
:Returns: A :py:class:`{{Type}}`.
{% endif %}
{% if Type == "PPerm" -%}
.. py:staticmethod:: make(dom: List[int], ran: List[int], M: int) -> {{Type}}
:noindex:
Expand All @@ -186,20 +183,19 @@ While :py:class:`{{Type}}` is not a class the objects returned by
:Parameters: None.
:return: A ``{{Type}}``.
.. py:method:: right_one(self: {{Type}}) -> {{Type}}
Returns the right one of this.
:Parameters: None.
:return: A ``{{Type}}``.
.. py:method:: undef(self: {{Type}}) -> int
Returns the integer value used to represent undefined.
:Parameters: None.
:Returns: An ``int``.
{% endif %}
23 changes: 12 additions & 11 deletions etc/make-doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ else
fi

$PYTHON - <<END
import jinja2
import re
from jinja2 import Environment, FileSystemLoader, select_autoescape
env = Environment(
Expand Down Expand Up @@ -38,18 +38,19 @@ for T, TL, TLC, F, S in [
("Perm", "permutation", "Permutation", " bijective", "the whole"),
]:
fnam = "docs/source/api/%s.rst" % T
trailing_ws = re.compile(r"(\s+\n|\s+$)")
with open(fnam, "w") as file:
print("Generating %s . . . " % fnam)
file.write(
template.render(
Type=T,
Underline="=" * (len(TLC) + 1),
LongNameNoCap=TL,
LongNameCap=TLC,
Function=F,
Subset=S,
)
)
content = template.render(
Type=T,
Underline="=" * (len(TLC) + 1),
LongNameNoCap=TL,
LongNameCap=TLC,
Function=F,
Subset=S,
)
content = re.sub(trailing_ws, r"\n\n", content)
file.write(content)
END

cd docs/
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
compare_version_numbers,
)

__version__ = "0.10.0"
__version__ = "0.10.1"

pprint(os.environ)

Expand Down

0 comments on commit dc573b5

Please sign in to comment.