Skip to content

Commit 71bf110

Browse files
Merge pull request #58 from oscarbenjamin/pr_0.4.2
Release 0.4.2
2 parents b658fd3 + 59d9015 commit 71bf110

File tree

10 files changed

+50
-54
lines changed

10 files changed

+50
-54
lines changed

.github/workflows/buildwheel.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,25 @@ jobs:
5757
with:
5858
path: wheelhouse/*.whl
5959

60+
build_sdist:
61+
name: Build sdist
62+
runs-on: ubuntu-20.04
63+
64+
steps:
65+
- uses: actions/checkout@v3
66+
67+
- uses: actions/setup-python@v4
68+
with:
69+
python-version: '3.11'
70+
71+
- run: pip install --upgrade pip
72+
- run: pip install cython numpy
73+
- run: python setup.py sdist
74+
75+
- uses: actions/upload-artifact@v3
76+
with:
77+
path: dist/*.tar.gz
78+
6079
test_wheels:
6180
needs: build_wheels
6281
name: Test ${{ matrix.python-version }} wheel on ${{ matrix.os }}

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

README.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,32 @@ and Arb (arbitrary-precision ball arithmetic). Features:
1111

1212
Documentation: http://fredrikj.net/python-flint/
1313

14-
Repository: https://github.com/fredrik-johansson/python-flint/
14+
Repository: https://github.com/flintlib/python-flint/
1515

1616
Author: Fredrik Johansson <[email protected]>
1717

1818
Installation
1919
------------
2020

21-
On Windows (x86-64) or OSX (x86-64 or arm64) there are prebuilt wheels for
22-
python-flint 0.4.1 that can be installed from PyPI using pip
21+
For Windows (x86-64) or OSX (x86-64 or arm64) or Linux (x86-64
22+
`manylinux_2_17`) there are binary wheels for python-flint on PyPI. For these
23+
platforms python-flint can be installed simply with `pip`
2324

2425
pip install python-flint
2526

26-
There is currently a problem with the Linux wheels and so for now Linux wheels
27-
are not available on PyPI. Instead for Linux first install both FLINT 2.9.0 and
28-
Arb 2.23. Note that as of python-flint 0.4.1 only these *exact* versions of
29-
FLINT and Arb will work. While some Linux distributions may provide FLINT and
30-
Arb it is unlikely that they will provide the exact versions required (e.g.
31-
for Ubuntu only Ubuntu 23.04 provides these versions at the time of writing).
27+
Alternatively python-flint can be installed using `conda`
28+
29+
conda install -c conda-forge python-flint
30+
31+
Build from source
32+
-----------------
33+
34+
For other platforms or architectures installation needs to build from source.
35+
First install both FLINT 2.9.0 and Arb 2.23. Note that for python-flint 0.4
36+
only these *exact* versions of FLINT and Arb will work. While some Linux
37+
distributions may provide FLINT and Arb it is unlikely that they will provide
38+
the exact versions required (e.g. for Ubuntu only Ubuntu 23.04 provides these
39+
versions at the time of writing).
3240

3341
See here for instructions on building FLINT and Arb:
3442

@@ -49,7 +57,7 @@ as follows:
4957
A script that builds and installs FLINT, Arb and Python-FLINT that is tested on
5058
Ubuntu can be found in the git repo here:
5159

52-
* https://github.com/fredrik-johansson/python-flint/blob/master/bin/pip_install_ubuntu.sh
60+
* https://github.com/flintlib/python-flint/blob/master/bin/pip_install_ubuntu.sh
5361

5462
See the documentation for further notes on building and installing
5563
Python-FLINT:

bin/build_mingw64_wheel.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# - Then checkout the code:
1313
#
14-
# $ git clone https://github.com/fredrik-johansson/python-flint/issues/1
14+
# $ git clone https://github.com/flintlib/python-flint.git
1515
#
1616
# - Then install msys2
1717
#
@@ -44,7 +44,7 @@ fi
4444
PYTHON=$PYTHONDIR/python
4545
VER="${PYTHONVER//./}"
4646

47-
WHEELNAME=python_flint-0.4.1-cp$VER-cp$VER-win_amd64.whl
47+
WHEELNAME=python_flint-0.4.2-cp$VER-cp$VER-win_amd64.whl
4848

4949
$PYTHON -c 'print("hello world")'
5050

@@ -90,7 +90,7 @@ wheel pack python_flint-*
9090
cd ..
9191

9292
# Make the wheel relocatable
93-
delvewheel repair dist/python_flint-0.4.1-cp$VER-cp$VER-win_amd64.whl \
93+
delvewheel repair dist/python_flint-0.4.2-cp$VER-cp$VER-win_amd64.whl \
9494
--add-path .local/bin:.local/lib/
9595

9696
# Make a virtual enironment to test the wheel

bin/pip_install_ubuntu.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -o errexit
44

55
# This script should work to install python-flint on Ubuntu from a VCS checkout
66
#
7-
# $ git checkout https://github.com/fredrik-johansson/python-flint.git
7+
# $ git checkout https://github.com/flintlib/python-flint.git
88
# $ bin/pip_install_ubuntu.sh .
99
#
1010
# To install an sdist from PyPI, use
@@ -18,12 +18,12 @@ set -o errexit
1818
# system installation of Flint and Arb in Ubuntu.
1919
#
2020
# Ubuntu 23.04 has Flint 2.9.0 and Arb 2.23.0, so this script might work there
21-
# (for python-flint 0.4.1). That is untested though (23.04 not available in CI).
21+
# (for python-flint 0.4.x). That is untested though (23.04 not available in CI).
2222
#
2323
# With Ubuntu 22.04, this will build but then crashes when running the tests.
2424
# most likely this is because the versions of flint and flint-arb are too old.
2525
# At the time of writing in Ubuntu 22.04 there is Flint 2.8.4 and Arb 2.22. The
26-
# main CI tests and wheels for python-flint 0.4.1 are built with Flint 2.9.0
26+
# main CI tests and wheels for python-flint 0.4.x are built with Flint 2.9.0
2727
# and Arb 2.23.0.
2828
#
2929
# Link against libflint-arb instead of libarb on Ubuntu

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.4.1'
54+
version = '0.4.2'
5555
# The full version, including alpha/beta/rc tags.
56-
release = '0.4.1'
56+
release = '0.4.2'
5757

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

doc/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and Arb_ (arbitrary-precision ball arithmetic). Features:
2020

2121
Author: `Fredrik Johansson <http://fredrikj.net/>`_ <[email protected]>
2222

23-
Repository: https://github.com/fredrik-johansson/python-flint/
23+
Repository: https://github.com/flintlib/python-flint/
2424

2525
Introduction
2626
------------

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
description='Bindings for FLINT and Arb',
8787
long_description=open('README.md').read(),
8888
long_description_content_type='text/markdown',
89-
version='0.4.1',
90-
url='https://github.com/python-flint/python-flint',
89+
version='0.4.2',
90+
url='https://github.com/flintlib/python-flint',
9191
author='Fredrik Johansson',
9292
author_email='[email protected]',
9393
license='MIT',

src/flint/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from ._flint import *
22

3-
__version__ = '0.4.1'
3+
__version__ = '0.4.2'

src/flint/test/test.py

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

3131
def test_pyflint():
3232

33-
assert flint.__version__ == "0.4.1"
33+
assert flint.__version__ == "0.4.2"
3434

3535
ctx = flint.ctx
3636
assert str(ctx) == repr(ctx) == _default_ctx_string

0 commit comments

Comments
 (0)