Skip to content

Commit c039e4e

Browse files
authored
Merge pull request #59 from astro-informatics/features/conan-Center
Minor bug update
2 parents d4d3d94 + 1b4a9f1 commit c039e4e

File tree

8 files changed

+16
-24
lines changed

8 files changed

+16
-24
lines changed

.github/workflows/python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ jobs:
118118
mv source-distribution/*.tar.gz wheel-*/*.whl dist
119119
120120
- name: Publish distribution 📦 to Test PyPI
121-
if: ${{ github.ref != 'refs/tags/v1.5.0' }}
121+
if: ${{ github.ref != 'refs/tags/v1.5.1' }}
122122
uses: pypa/gh-action-pypi-publish@master
123123
with:
124124
password: ${{ secrets.TEST_PYPI_TOKEN }}
125125
repository_url: https://test.pypi.org/legacy/
126126

127127
- name: Publish distribution 📦 to PyPI
128-
if: ${{ github.ref == 'refs/tags/v1.5.0' }}
128+
if: ${{ github.ref == 'refs/tags/v1.5.1' }}
129129
uses: pypa/gh-action-pypi-publish@master
130130
with:
131131
password: ${{ secrets.PYPI_TOKEN }}

CMakeLists.txt

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,17 @@ cmake_minimum_required(VERSION 3.12)
22

33
project(
44
Ssht
5-
VERSION "1.5.0"
5+
VERSION "1.5.1"
66
DESCRIPTION "Fast and exact spin spherical harmonic transforms"
77
HOMEPAGE_URL "http://astro-informatics.github.io/ssht/"
88
LANGUAGES C)
99

10-
option(tests "Enable testing" ON)
1110
option(conan_deps "Download dependencies using conan" OFF)
12-
if(NOT WIN32)
13-
option(fPIC "Compile with fPIC" ON)
14-
endif()
1511

1612
if(NOT CMAKE_BUILD_TYPE)
1713
set(CMAKE_BUILD_TYPE Debug)
1814
endif()
19-
if(tests)
20-
enable_testing()
21-
endif()
15+
include(CTest)
2216
if(conan_deps OR CONAN_EDITABLE_MODE)
2317
include("${PROJECT_SOURCE_DIR}/cmake/conan_dependencies.cmake")
2418
endif()
@@ -33,18 +27,18 @@ find_package(FFTW3 REQUIRED)
3327
find_library(MATH_LIBRARY m)
3428

3529
add_subdirectory(src/c)
36-
if(tests)
30+
if(BUILD_TESTING)
3731
include("${PROJECT_SOURCE_DIR}/cmake/fetch_cmocka.cmake")
3832
add_subdirectory(tests)
3933
endif()
4034

41-
if(NOT SKBUILD AND NOT CONAN_EXPORTED)
42-
include("${PROJECT_SOURCE_DIR}/cmake/exporting.cmake")
43-
elseif(NOT CONAN_EXPORTED)
35+
if(SKBUILD)
4436
find_package(PythonExtensions REQUIRED)
4537
find_package(Cython REQUIRED)
4638
find_package(NumPy REQUIRED)
4739
add_subdirectory(src/pyssht)
40+
elseif(NOT CONAN_EXPORTED)
41+
include("${PROJECT_SOURCE_DIR}/cmake/exporting.cmake")
4842
endif()
4943

5044
# only run documentation if this is not a sub-project

cmake/conan_dependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ conan_cmake_install(
1818
BUILD
1919
missing
2020
REMOTE
21-
conan-center
21+
conancenter
2222
SETTINGS
2323
${settings})

docs/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ <h2>News</h2>
5151

5252
<ul>
5353

54+
<li><strong>Oct 2021</strong><br />
55+
Release of SSHT 1.5.1
5456
<li><strong>July 2021</strong><br />
5557
Release of SSHT 1.5.0 (<a href="https://pypi.org/project/ducc0/">ducc0</a> forward adjoint)
5658
<li><strong>July 2021</strong><br />

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ======== COMPILER ========
22

33
CC = gcc
4-
OPT = -std=c99 -pedantic -Wall -O3 -fopenmp -DSSHT_VERSION=\"1.5.0\" -DSSHT_BUILD=\"`git rev-parse HEAD`\"
4+
OPT = -std=c99 -pedantic -Wall -O3 -fopenmp -DSSHT_VERSION=\"1.5.1\" -DSSHT_BUILD=\"`git rev-parse HEAD`\"
55
#OPT = -Wall -g -fopenmp -DSSHT_VERSION=\"1.0b1\" -DSSHT_BUILD=\"`git rev-parse HEAD`\"
66

77

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 = 1.5.0
2+
current_version = 1.5.1
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(rc(?P<rc>\d+))?

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from skbuild import setup
44

55
cmake_args = [
6-
"-Dtests:BOOL=OFF",
6+
"-DBUILD_TESTING:BOOL=OFF",
77
"-Dconan_deps=ON",
8-
"-DfPIC=ON",
8+
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
99
]
1010

1111
dev_requirements = [
@@ -27,7 +27,7 @@
2727

2828
setup(
2929
name="pyssht",
30-
version="1.5.0",
30+
version="1.5.1",
3131
author=[
3232
"J. D. McEwen",
3333
"C. R. G. Wallis",

src/c/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ target_compile_features(ssht PUBLIC c_std_99)
1212
configure_file(${PROJECT_SOURCE_DIR}/include/ssht/ssht_version.in.h
1313
${PROJECT_BINARY_DIR}/include/ssht/ssht_version.h)
1414

15-
if(fPIC)
16-
set_target_properties(ssht PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
17-
endif()
18-
1915
if(NOT SKBUILD)
2016
install(
2117
TARGETS ssht

0 commit comments

Comments
 (0)