Skip to content

Commit 6493a2f

Browse files
authored
Merge pull request #43 from astro-informatics/cmake/macos
Build issue on macos
2 parents 2856fbe + 7a61f0f commit 6493a2f

File tree

11 files changed

+16
-49
lines changed

11 files changed

+16
-49
lines changed

.github/workflows/conan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: create stable package
3535
shell: bash
3636
run: |
37-
if [ "${{ github.ref }}" = "refs/tags/v1.3.3" ]; then
37+
if [ "${{ github.ref }}" = "refs/tags/v1.3.4" ]; then
3838
channel="stable"
3939
else
4040
channel="testing"
@@ -54,4 +54,4 @@ jobs:
5454

5555
run: |
5656
conan remote add astro-informatics ${CONAN_REMOTE_URL}
57-
conan upload ssht/1.3.3 -c --all -r=astro-informatics
57+
conan upload ssht/1.3.4 -c --all -r=astro-informatics

.github/workflows/python.yml

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

128128
- name: Publish distribution 📦 to PyPI
129-
if: ${{ github.ref == 'refs/tags/v1.3.3' }}
129+
if: ${{ github.ref == 'refs/tags/v1.3.4' }}
130130
uses: pypa/gh-action-pypi-publish@master
131131
with:
132132
password: ${{ secrets.PYPI_TOKEN }}

CMakeLists.txt

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

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

1010
option(tests "Enable testing" ON)
11-
option(python "Creates python package only" OFF)
1211
option(conan_deps "Download dependencies using conan" OFF)
1312
if(NOT WIN32)
1413
option(fPIC "Compile with fPIC" ON)
@@ -36,12 +35,9 @@ if(tests)
3635
add_subdirectory(tests)
3736
endif()
3837

39-
if(NOT python)
38+
if(NOT SKBUILD)
4039
include("exporting")
4140
else()
42-
include("python-setup")
43-
find_python()
44-
setup_skbuild()
4541
find_package(PythonExtensions REQUIRED)
4642
find_package(Cython REQUIRED)
4743
find_package(NumPy REQUIRED)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[docs-img]: https://img.shields.io/badge/docs-stable-blue.svg
44
[docs-url]: https://astro-informatics.github.io/ssht/
55
[bintray-img]: https://img.shields.io/bintray/v/astro-informatics/astro-informatics/ssht:astro-informatics?label=C%20package
6-
[bintray-url]: https://bintray.com/astro-informatics/astro-informatics/ssht:astro-informatics/1.3.3:stable/link
6+
[bintray-url]: https://bintray.com/astro-informatics/astro-informatics/ssht:astro-informatics/1.3.4:stable/link
77
[pypi-img]: https://badge.fury.io/py/pyssht.svg
88
[pypi-url]: https://badge.fury.io/py/pyssht
99
[codefactor-img]: https://www.codefactor.io/repository/github/astro-informatics/ssht/badge/main

cmake/python-setup.cmake

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

conanfile.py

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

44
class SshtConan(ConanFile):
55
name = "ssht"
6-
version = "1.3.3"
6+
version = "1.3.4"
77
license = "GPL-3.0"
88
url = "https://github.com/astro-informatics/ssht"
99
homepage = "https://github.com/astro-informatics/ssht"

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.3.3\" -DSSHT_BUILD=\"`git rev-parse HEAD`\"
4+
OPT = -std=c99 -pedantic -Wall -O3 -fopenmp -DSSHT_VERSION=\"1.3.4\" -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.3.3
2+
current_version = 1.3.4
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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from skbuild import setup
44

55
cmake_args = [
6-
"-Dpython:BOOL=ON",
76
"-Dtests:BOOL=OFF",
87
"-Dconan_deps=ON",
98
"-DfPIC=ON",
@@ -27,7 +26,7 @@
2726

2827
setup(
2928
name="pyssht",
30-
version="1.3.3",
29+
version="1.3.4",
3130
author=[
3231
"J. D. McEwen",
3332
"C. R. G. Wallis",

src/c/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if(fPIC)
1414
set_target_properties(ssht PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
1515
endif()
1616

17-
if(NOT python)
17+
if(NOT SKBUILD)
1818
install(
1919
TARGETS ssht
2020
EXPORT SshtTargets

0 commit comments

Comments
 (0)