diff --git a/.cirrus.yml b/.cirrus.yml.backup similarity index 100% rename from .cirrus.yml rename to .cirrus.yml.backup diff --git a/.github/workflows/buildwheel.yml b/.github/workflows/buildwheel.yml index 1e60d418..0308308b 100644 --- a/.github/workflows/buildwheel.yml +++ b/.github/workflows/buildwheel.yml @@ -155,3 +155,33 @@ jobs: - run: bin/install_flint_ubuntu.sh ${{ matrix.flint-tag }} - run: pip install . - run: python -m flint.test --verbose + + # Deploy wheels and sdist to PyPI + + pypi_release: + name: Publish to PyPI + needs: [build_wheels, build_sdist] + # Run only when a tag is pushed to the flintlib/python-flint repo + if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && github.owner == 'flintlib'" + environment: + name: pypi + url: https://pypi.org/p/sympy + permissions: + id-token: write + runs-on: ubuntu-latest + + steps: + # Downloads all artifacts + - name: Download release artifacts + uses: actions/download-artifact@v4 + with: + path: wheelhouse + + - name: Copy the PyPI files into dist + run: mkdir dist && cp wheelhouse/*.whl wheelhouse/*.tar.gz dist + + - name: Publish package on PyPI + # It is recommended to pin a commit hash here for security but it + # should be kept up to date. Possibly all actions and dependencies used + # by the build script should be pinned... + uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14 diff --git a/README.md b/README.md index ee0ddd0c..82e9e266 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,19 @@ CHANGELOG Next release: +- [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` (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) + Use meson-python instead of setuptools as the build backend. - [gh-125](https://github.com/flintlib/python-flint/pull/125) - Bump Flint version to 3.1.0 + Bump Flint version to 3.1.2 (Flint 3.0.0 - 3.1.2 is supported but the wheels + are built with 3.1.2). 0.6.0 diff --git a/bin/build_variables.sh b/bin/build_variables.sh index ea170ad0..b88240a6 100644 --- a/bin/build_variables.sh +++ b/bin/build_variables.sh @@ -21,4 +21,4 @@ MPIRVER=3.0.0 # MPIR build no longer works (not clear where to download from) # These are the actual dependencies used (at least by default): GMPVER=6.3.0 MPFRVER=4.1.0 -FLINTVER=3.1.0 +FLINTVER='3.1.3-p1' diff --git a/doc/source/conf.py b/doc/source/conf.py index 00012c82..ca27fc35 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -51,9 +51,9 @@ # built documents. # # The short X.Y version. -version = '0.6.0' +version = '0.7.0a1' # The full version, including alpha/beta/rc tags. -release = '0.6.0' +release = '0.7.0a1' # 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 e29f7ccf..683bcae7 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.6.0" +version = "0.7.0a1" 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 9a8fb4c5..ecc2c1b7 100644 --- a/src/flint/__init__.py +++ b/src/flint/__init__.py @@ -38,4 +38,4 @@ FLINT_RELEASE as __FLINT_RELEASE__, ) -__version__ = '0.6.0' +__version__ = '0.7.0a1' diff --git a/src/flint/test/test_all.py b/src/flint/test/test_all.py index 504d0d69..66775122 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.6.0" + assert flint.__version__ == "0.7.0a1" ctx = flint.ctx assert str(ctx) == repr(ctx) == _default_ctx_string