Skip to content

Commit 46d0353

Browse files
committed
Bump to v2.2.5 and pin conan to v1
Closes #47
1 parent 292d268 commit 46d0353

File tree

9 files changed

+26
-53
lines changed

9 files changed

+26
-53
lines changed

.github/workflows/cmake.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818
python-version: [3.8]
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222

2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v3
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727

2828
- name: Create Build Environment
2929
run: |
30-
pip install --upgrade pip wheel conan
30+
pip install --upgrade pip wheel "conan<2"
3131
cmake -E make_directory ${{runner.workspace}}/build
3232
3333
- name: Configure CMake

.github/workflows/python.yml

Lines changed: 11 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -9,47 +9,20 @@ name: Python Build
99
pull_request:
1010

1111
jobs:
12-
development-mode:
13-
name: pip development mode on ${{ matrix.os }}
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
fail-fast: false
17-
matrix:
18-
os: [macos-latest]
19-
python-version: [3.8]
20-
21-
steps:
22-
- uses: actions/checkout@v2
23-
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
25-
with:
26-
python-version: ${{ matrix.python-version }}
27-
28-
- name: Install build packages and pytest
29-
run: |
30-
python -m pip install --upgrade pip wheel
31-
python -m pip install scikit-build
32-
33-
- name: Install python s2let
34-
run: pip install -e .[dev]
35-
36-
- name: run pytest
37-
run: pytest src/test/python/
38-
3912
from-sdist:
4013
name: python source distribution
4114
runs-on: ubuntu-latest
4215
steps:
43-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
4417
- name: Set up Python 3.8
45-
uses: actions/setup-python@v2
18+
uses: actions/setup-python@v3
4619
with:
4720
python-version: 3.8
4821

4922
- name: Install build packages and pytest
5023
run: |
5124
python -m pip install --upgrade pip wheel setuptools
52-
python -m pip install conan scikit-build pytest cython numpy
25+
python -m pip install "conan<2" scikit-build pytest cython numpy
5326
5427
- name: Create sdist
5528
run: python setup.py sdist
@@ -60,7 +33,7 @@ jobs:
6033
- name: run pytest
6134
run: pytest src/test/python/
6235

63-
- uses: actions/upload-artifact@v2
36+
- uses: actions/upload-artifact@v3
6437
if: ${{ startsWith(github.ref, 'refs/tags') }}
6538
with:
6639
path: ./dist/*.tar.gz
@@ -76,17 +49,17 @@ jobs:
7649
python-version: [3.8]
7750

7851
steps:
79-
- uses: actions/checkout@v2
52+
- uses: actions/checkout@v3
8053

81-
- uses: actions/setup-python@v2
54+
- uses: actions/setup-python@v3
8255
name: Install Python
8356
with:
8457
python-version: ${{ matrix.python-version }}
8558

8659
- name: Setup environment
8760
run: |
8861
python -m pip install --upgrade pip wheel
89-
python -m pip install conan pytest
62+
python -m pip install "conan<2" pytest
9063
conan profile new default --detect
9164
9265
- name: Build wheels
@@ -98,7 +71,7 @@ jobs:
9871
- name: run pytests
9972
run: pytest src/test/python/
10073

101-
- uses: actions/upload-artifact@v2
74+
- uses: actions/upload-artifact@v3
10275
if: ${{ startsWith(github.ref, 'refs/tags') }}
10376
with:
10477
path: ./dist/*.whl
@@ -111,22 +84,22 @@ jobs:
11184
needs: [build_wheels, from-sdist]
11285
steps:
11386
- name: Download wheels and sdist
114-
uses: actions/download-artifact@v2
87+
uses: actions/download-artifact@v3
11588

11689
- name: Move wheels and source distribution to dist/
11790
run: |
11891
mkdir -p dist
11992
mv source-distribution/*.tar.gz wheel-*/*.whl dist
12093
12194
- name: Publish distribution 📦 to Test PyPI
122-
if: ${{ github.ref != 'refs/tags/v2.2.4' }}
95+
if: ${{ github.ref != 'refs/tags/v2.2.5' }}
12396
uses: pypa/gh-action-pypi-publish@master
12497
with:
12598
password: ${{ secrets.TEST_PYPI_TOKEN }}
12699
repository_url: https://test.pypi.org/legacy/
127100

128101
- name: Publish distribution 📦 to PyPI
129-
if: ${{ github.ref == 'refs/tags/v2.2.4' }}
102+
if: ${{ github.ref == 'refs/tags/v2.2.5' }}
130103
uses: pypa/gh-action-pypi-publish@master
131104
with:
132105
password: ${{ secrets.PYPI_TOKEN }}

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.12...4.0)
22

33
project(
44
s2let
5-
VERSION "2.2.4"
5+
VERSION "2.2.5"
66
DESCRIPTION "Fast wavelets on the sphere"
77
HOMEPAGE_URL "http://astro-informatics.github.io/s2let/"
88
LANGUAGES C)

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ UNAME := $(shell uname)
2727

2828
# Compilers and options for C
2929
CC = gcc
30-
OPT = -Wall -g -fPIC -fopenmp -DS2LET_VERSION=\"2.2.4\" -DS2LET_BUILD=\"`git rev-parse HEAD`\"
30+
OPT = -Wall -g -fPIC -fopenmp -DS2LET_VERSION=\"2.2.5\" -DS2LET_BUILD=\"`git rev-parse HEAD`\"
3131

3232
# Compilers and options for Fortran
3333
FCC = gfortran

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"setuptools", "wheel", "scikit-build", "cmake>=3.12", "ninja", "cython",
4-
"oldest-supported-numpy", "conan"
4+
"numpy", "conan<2"
55
]
66
[tool.black]
77
line-length = 88

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.2.4
2+
current_version = 2.2.5
33
commit = False
44
tag = False
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
setup(
2222
name="pys2let",
23-
version="2.2.4",
23+
version="2.2.5",
2424
author=["Boris Leistedt", "Martin Büttner", "Jennifer Chan", "Jason McEwen"],
2525
install_requires=["numpy"],
2626
extras_require={

src/doxygen.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ PROJECT_NAME = S2LET
3131
# This could be handy for archiving the generated documentation or
3232
# if some version control system is used.
3333

34-
PROJECT_NUMBER = 2.2.4
34+
PROJECT_NUMBER = 2.2.5
3535

3636
# Using the PROJECT_BRIEF tag one can provide an optional one line description
3737
# for a project that appears at the top of each page and should give viewer

src/main/pys2let/pys2let.pyx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ def analysis_axisym_wav_mw(
317317
parameters.J_min = J_min
318318
J = s2let_j_max(&parameters)
319319

320-
f_wav = np.zeros(mw_size(L) * (J - J_min + 1), dtype=np.complex)
321-
f_scal = np.zeros(mw_size(L), dtype=np.complex)
320+
f_wav = np.zeros(mw_size(L) * (J - J_min + 1), dtype=complex)
321+
f_scal = np.zeros(mw_size(L), dtype=complex)
322322

323323
s2let_transform_axisym_wav_analysis_mw(
324324
<double complex*> np.PyArray_DATA(f_wav),
@@ -341,7 +341,7 @@ def analysis_adjoint_axisym_wav_mw(
341341
parameters.J_min = J_min
342342
J = s2let_j_max(&parameters)
343343

344-
f = np.zeros([L * (2 * L - 1),], dtype=np.complex)
344+
f = np.zeros([L * (2 * L - 1),], dtype=complex)
345345
s2let_transform_axisym_wav_analysis_adjoint_mw(
346346
<double complex*> np.PyArray_DATA(f),
347347
<double complex*> np.PyArray_DATA(f_wav),
@@ -405,7 +405,7 @@ def synthesis_axisym_wav_mw(
405405
parameters.J_min = J_min
406406
J = s2let_j_max(&parameters)
407407

408-
f = np.zeros(mw_size(L), dtype=np.complex)
408+
f = np.zeros(mw_size(L), dtype=complex)
409409
s2let_transform_axisym_wav_synthesis_mw(
410410
<double complex*> np.PyArray_DATA(f),
411411
<double complex*> np.PyArray_DATA(f_wav),
@@ -426,8 +426,8 @@ def synthesis_adjoint_axisym_wav_mw(
426426
parameters.J_min = J_min
427427
J = s2let_j_max(&parameters)
428428

429-
f_scal = np.zeros([L * (2 * L - 1),], dtype=np.complex)
430-
f_wav = np.zeros([L * (2 * L - 1) * (J - J_min + 1)], dtype=np.complex)
429+
f_scal = np.zeros([L * (2 * L - 1),], dtype=complex)
430+
f_wav = np.zeros([L * (2 * L - 1) * (J - J_min + 1)], dtype=complex)
431431
s2let_transform_axisym_wav_synthesis_adjoint_mw(
432432
<double complex*> np.PyArray_DATA(f_wav),
433433
<double complex*> np.PyArray_DATA(f_scal),

0 commit comments

Comments
 (0)