Skip to content

Bump version from 0.7.0a2 to 0.7.0a3 #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2024
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: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,20 @@ 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)
Remove debug symbols to make smaller Linux binaries.
- [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)
Expand Down
45 changes: 45 additions & 0 deletions bin/bump_version.py
Original file line number Diff line number Diff line change
@@ -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:])
4 changes: 2 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]"},
Expand Down
2 changes: 1 addition & 1 deletion src/flint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
Ordering,
)

__version__ = '0.7.0a2'
__version__ = '0.7.0a3'
2 changes: 1 addition & 1 deletion src/flint/test/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading