Skip to content

Commit 5fde796

Browse files
authored
Update package name to toast from toast-cmb. (#488)
* Update package name to toast from toast-cmb. * Update authors * Add local linux test script for cibuildwheel
1 parent b0bca96 commit 5fde796

File tree

7 files changed

+41
-16
lines changed

7 files changed

+41
-16
lines changed

.github/workflows/wheels.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
name: Test Binary Wheels
33

44
# Uncomment here for testing and comment out schedule below.
5-
on:
6-
push:
7-
branches: [ master ]
8-
pull_request:
9-
branches: [ master ]
5+
# on:
6+
# push:
7+
# branches: [ master ]
8+
# pull_request:
9+
# branches: [ master ]
1010

1111
# Uncomment here for production and comment out push / PR above.
12-
# on:
13-
# schedule:
14-
# - cron: '0 4 * * *'
12+
on:
13+
schedule:
14+
- cron: '0 4 * * *'
1515

1616
jobs:
1717
sdist:

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ Theodore Kisner <[email protected]>
22
Reijo Keskitalo <[email protected]>
33
Andrea Zonca <[email protected]>
44
Giuseppe Puglisi <[email protected]>
5+
Nestor Demeure <[email protected]>
6+
Kolen Cheung <[email protected]>

docs/changes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Change Log
44
-------------------------
55

6-
2.3.13 (2021-09-23)
6+
2.3.13 (2021-09-29)
77
~~~~~~~~~~~~~~~~~~~~~~~~~
88

99
* Add support for generating observation matrices (PR `#374`_).

docs/install.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ If you want to use TOAST at NERSC, see :ref:`nersc`.
2121
Pip Binary Wheels
2222
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2323

24-
If you already have a newer Python3 (>= 3.6), then you can install pre-built TOAST
24+
If you already have a newer Python3 (>= 3.7), then you can install pre-built TOAST
2525
packages from PyPI. You should always use virtualenv or similar tools to manage your
2626
python environments rather than pip-installing packages as root.
2727

@@ -38,7 +38,7 @@ On Redhat / Centos we need to take extra steps to install a recent python3::
3838
scl enable rh-python36 bash
3939

4040
On MacOS, you can use homebrew or macports to install a recent python3. Now verify that
41-
your python is at least 3.6::
41+
your python is at least 3.7::
4242

4343
python3 --version
4444

@@ -55,10 +55,14 @@ install more recent wheels from PyPI::
5555

5656
python3 -m pip install --upgrade pip
5757

58-
Next, use pip to install toast and its requirements (note that the name of the package
59-
is "toast-cmb" on PyPI)::
58+
Next, use pip to install toast and its requirements::
6059

61-
pip install toast-cmb
60+
pip install toast
61+
62+
.. warning::
63+
As of version 2.3.13, the package name on PyPI is "toast" instead of "toast-cmb".
64+
If you think you may have an old version of toast with the previous name installed,
65+
then do "pip uninstall toast-cmb" before installing toast.
6266

6367
At this point you have toast installed and you can use it from serial scripts and
6468
notebooks. If you want to enable effective parallelism with toast (useful if you

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def readme():
234234

235235

236236
conf = dict()
237-
conf["name"] = "toast-cmb"
237+
conf["name"] = "toast"
238238
conf["description"] = "Time Ordered Astrophysics Scalable Tools"
239239
conf["long_description"] = readme()
240240
conf["long_description_content_type"] = "text/markdown"

src/toast/RELEASE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.13a1
1+
2.3.13rc1

wheels/test_local_cibuildwheel.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# Before running this from the toast git checkout directory,
4+
# you shoul pip install cibuildwheel
5+
6+
export CIBW_BUILD="cp38-manylinux_x86_64"
7+
export CIBW_MANYLINUX_X86_64_IMAGE="manylinux2010"
8+
export CIBW_BUILD_VERBOSITY=3
9+
export CIBW_ENVIRONMENT_LINUX="TOAST_BUILD_BLAS_LIBRARIES='-lopenblas -fopenmp -lm -lgfortran' TOAST_BUILD_LAPACK_LIBRARIES='-lopenblas -fopenmp -lm -lgfortran' TOAST_BUILD_CMAKE_VERBOSE_MAKEFILE=ON"
10+
export CIBW_BEFORE_BUILD_LINUX=./wheels/install_deps_linux.sh
11+
export CIBW_BEFORE_TEST="pip3 install numpy && pip3 install mpi4py"
12+
export CIBW_TEST_COMMAND="export OMP_NUM_THREADS=2; python -c 'import toast.tests; toast.tests.run()'"
13+
14+
# Get the current date for logging
15+
now=$(date "+%Y-%m-%d_%H:%M:%S")
16+
17+
# Run it
18+
cibuildwheel --platform linux --archs x86_64 --output-dir wheelhouse . 2>&1 | tee log_${now}
19+

0 commit comments

Comments
 (0)