Skip to content

Commit d8c5c84

Browse files
Merge pull request #149 from oscarbenjamin/pr_bump_versions
Bump versions and add automatic releases
2 parents 82b8511 + 4f1f09b commit d8c5c84

File tree

8 files changed

+48
-7
lines changed

8 files changed

+48
-7
lines changed
File renamed without changes.

.github/workflows/buildwheel.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,33 @@ jobs:
155155
- run: bin/install_flint_ubuntu.sh ${{ matrix.flint-tag }}
156156
- run: pip install .
157157
- run: python -m flint.test --verbose
158+
159+
# Deploy wheels and sdist to PyPI
160+
161+
pypi_release:
162+
name: Publish to PyPI
163+
needs: [build_wheels, build_sdist]
164+
# Run only when a tag is pushed to the flintlib/python-flint repo
165+
if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.owner == 'flintlib'"
166+
environment:
167+
name: pypi
168+
url: https://pypi.org/p/sympy
169+
permissions:
170+
id-token: write
171+
runs-on: ubuntu-latest
172+
173+
steps:
174+
# Downloads all artifacts
175+
- name: Download release artifacts
176+
uses: actions/download-artifact@v4
177+
with:
178+
path: wheelhouse
179+
180+
- name: Copy the PyPI files into dist
181+
run: mkdir dist && cp wheelhouse/*.whl wheelhouse/*.tar.gz dist
182+
183+
- name: Publish package on PyPI
184+
# It is recommended to pin a commit hash here for security but it
185+
# should be kept up to date. Possibly all actions and dependencies used
186+
# by the build script should be pinned...
187+
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,19 @@ CHANGELOG
133133

134134
Next release:
135135

136+
- [gh-148](https://github.com/flintlib/python-flint/pull/148)
137+
Remove debug symbols to make smaller Linux binaries.
138+
- [gh-144](https://github.com/flintlib/python-flint/pull/144)
139+
Add `rel_one_ccuracy_bits` to `arb` and `acb`.
140+
- [gh-142](https://github.com/flintlib/python-flint/pull/142)
141+
Add `acb_theta` (only available for Flint >= 3.1).
142+
- [gh-137](https://github.com/flintlib/python-flint/pull/137)
143+
Add `erfinv` and `erfcinv` for `arb`.
144+
- [gh-129](https://github.com/flintlib/python-flint/pull/129)
145+
Use meson-python instead of setuptools as the build backend.
136146
- [gh-125](https://github.com/flintlib/python-flint/pull/125)
137-
Bump Flint version to 3.1.0
147+
Bump Flint version to 3.1.2 (Flint 3.0.0 - 3.1.2 is supported but the wheels
148+
are built with 3.1.2).
138149

139150
0.6.0
140151

bin/build_variables.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ MPIRVER=3.0.0 # MPIR build no longer works (not clear where to download from)
2121
# These are the actual dependencies used (at least by default):
2222
GMPVER=6.3.0
2323
MPFRVER=4.1.0
24-
FLINTVER=3.1.0
24+
FLINTVER='3.1.3-p1'

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
# built documents.
5252
#
5353
# The short X.Y version.
54-
version = '0.6.0'
54+
version = '0.7.0a1'
5555
# The full version, including alpha/beta/rc tags.
56-
release = '0.6.0'
56+
release = '0.7.0a1'
5757

5858
# The language for content autogenerated by Sphinx. Refer to documentation
5959
# for a list of supported languages.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "mesonpy"
55
[project]
66
name = "python-flint"
77
description = "Bindings for FLINT and Arb"
8-
version = "0.6.0"
8+
version = "0.7.0a1"
99
urls = {Homepage = "https://github.com/flintlib/python-flint"}
1010
authors = [
1111
{name = "Fredrik Johansson", email = "[email protected]"},

src/flint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
FLINT_RELEASE as __FLINT_RELEASE__,
3939
)
4040

41-
__version__ = '0.6.0'
41+
__version__ = '0.7.0a1'

src/flint/test/test_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def raises(f, exception):
3232

3333
def test_pyflint():
3434

35-
assert flint.__version__ == "0.6.0"
35+
assert flint.__version__ == "0.7.0a1"
3636

3737
ctx = flint.ctx
3838
assert str(ctx) == repr(ctx) == _default_ctx_string

0 commit comments

Comments
 (0)