-
Notifications
You must be signed in to change notification settings - Fork 27
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
Bump versions and add automatic releases #149
Changes from all commits
fde77ce
a05f6c7
2a6f5a1
352586d
685ad4d
46f7197
4f1f09b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks I forgot to change the URL when adapting this code... |
||
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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know much about what |
||
- [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 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = "[email protected]"}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ | |
FLINT_RELEASE as __FLINT_RELEASE__, | ||
) | ||
|
||
__version__ = '0.6.0' | ||
__version__ = '0.7.0a1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once this is merged I will test pushing a tag to trigger release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might need a few attempts while fixing up the Actions workflow.
I guess it might work first time...