diff --git a/README.md b/README.md index b3ff1f02..bd9fb5fe 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,10 @@ CHANGELOG ------------- Next release: + +- [gh-132](https://github.com/flintlib/python-flint/pull/132) + Add `fmpz_mpoly` and `fmpq_mpoly` types for multivariate polynomials with + integer or rational coefficients. - [gh-160](https://github.com/flintlib/python-flint/pull/160) Add `bits` to `arb` and `acb`, add `log_base` to `arb`. - [gh-148](https://github.com/flintlib/python-flint/pull/148) @@ -139,7 +143,9 @@ Next release: - [gh-144](https://github.com/flintlib/python-flint/pull/144) Add `rel_one_ccuracy_bits` to `arb` and `acb`. - [gh-142](https://github.com/flintlib/python-flint/pull/142) - Add `acb_theta` module for the numerical evaluation of [theta functions](https://flintlib.org/doc/acb_theta.html) (only available for Flint >= 3.1). + Add `acb_theta` module for the numerical evaluation of [theta + functions](https://flintlib.org/doc/acb_theta.html) (only available for + `Flint >= 3.1`). - [gh-137](https://github.com/flintlib/python-flint/pull/137) Add `erfinv` and `erfcinv` for `arb`. - [gh-129](https://github.com/flintlib/python-flint/pull/129) diff --git a/bin/bump_version.py b/bin/bump_version.py new file mode 100755 index 00000000..79215a43 --- /dev/null +++ b/bin/bump_version.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python + +filenames_default = [ + "pyproject.toml", + "src/flint/__init__.py", + "doc/source/conf.py", + "src/flint/test/test_all.py", +] + +def main(version2=None, *filenames): + """Bump version number in files. + + $ bin/bump_version.py + Current version: 0.1.0 + + $ bin/bump_version.py 0.1.0 0.1.1 + Set version 0.1.0 to 0.1.1 in: + pyproject.toml + src/flint/__init__.py + doc/source/conf.py + src/flint/test/test_all.py + + """ + with open("pyproject.toml", "r") as f: + text = f.read() + version1 = text.split("version = \"")[1].split("\"")[0] + + if not version2: + print(f"Current version: {version1}") + return + + if not filenames: + filenames = filenames_default + + print(f"Set version {version1} to {version2} in:") + for filename in filenames: + print(filename) + with open(filename, "r") as f: + text = f.read() + with open(filename, "w") as f: + f.write(text.replace(version1, version2)) + +if __name__ == "__main__": + import sys + main(*sys.argv[1:]) diff --git a/doc/source/conf.py b/doc/source/conf.py index 58490337..80af22f6 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -51,9 +51,9 @@ # built documents. # # The short X.Y version. -version = '0.7.0a2' +version = '0.7.0a3' # The full version, including alpha/beta/rc tags. -release = '0.7.0a2' +release = '0.7.0a3' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/pyproject.toml b/pyproject.toml index 942ed29f..41c3bb15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "mesonpy" [project] name = "python-flint" description = "Bindings for FLINT and Arb" -version = "0.7.0a2" +version = "0.7.0a3" urls = {Homepage = "https://github.com/flintlib/python-flint"} authors = [ {name = "Fredrik Johansson", email = "fredrik.johansson@gmail.com"}, diff --git a/src/flint/__init__.py b/src/flint/__init__.py index d0589530..e71bb15c 100644 --- a/src/flint/__init__.py +++ b/src/flint/__init__.py @@ -43,4 +43,4 @@ Ordering, ) -__version__ = '0.7.0a2' +__version__ = '0.7.0a3' diff --git a/src/flint/test/test_all.py b/src/flint/test/test_all.py index fdb10ea7..a10f867e 100644 --- a/src/flint/test/test_all.py +++ b/src/flint/test/test_all.py @@ -32,7 +32,7 @@ def raises(f, exception): def test_pyflint(): - assert flint.__version__ == "0.7.0a2" + assert flint.__version__ == "0.7.0a3" ctx = flint.ctx assert str(ctx) == repr(ctx) == _default_ctx_string