Skip to content

Commit 1acac9a

Browse files
authored
Corrects build issues for pyso3 on macos (#22)
* Build using skbuild primitives only Because issues with CMake python primitives on macos. * Update ssht to 1.3.4 * Bump to 1.3.1
1 parent a32c6af commit 1acac9a

File tree

12 files changed

+18
-53
lines changed

12 files changed

+18
-53
lines changed

.github/workflows/conan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: create stable or testing package
3737
shell: bash
3838
run: |
39-
if [ "${{ github.ref }}" = "refs/tags/v1.3.0" ]; then
39+
if [ "${{ github.ref }}" = "refs/tags/v1.3.1" ]; then
4040
channel="stable"
4141
else
4242
channel="testing"
@@ -53,4 +53,4 @@ jobs:
5353
CONAN_PASSWORD: ${{secrets.BINTRAY_TOKEN}}
5454
CONAN_LOGIN_USERNAME: astroinformaticsci
5555
CONAN_REMOTE_URL: https://api.bintray.com/conan/astro-informatics/astro-informatics
56-
run: conan upload so3/1.3.0 -c --all -r=astro-informatics
56+
run: conan upload so3/1.3.1 -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.0' }}
122+
if: ${{ github.ref != 'refs/tags/v1.3.1' }}
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.0' }}
129+
if: ${{ github.ref == 'refs/tags/v1.3.1' }}
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
@@ -1,13 +1,12 @@
11
cmake_minimum_required(VERSION 3.12)
22
project(
33
so3
4-
VERSION "1.3.0"
4+
VERSION "1.3.1"
55
DESCRIPTION "Fast and exact Wigner transforms"
66
HOMEPAGE_URL "http://astro-informatics.github.io/so3/"
77
LANGUAGES C)
88

99
option(tests "Enable testing" ON)
10-
option(python "Creates python package only" OFF)
1110
option(conan_deps "Download ssht using conan" ON)
1211
if(NOT WIN32)
1312
option(fPIC "Enable position independent code" ON)
@@ -33,12 +32,9 @@ if(tests)
3332
add_subdirectory(tests)
3433
endif()
3534

36-
if(NOT python)
35+
if(NOT SKBUILD)
3736
include("exporting")
3837
else()
39-
include("python-setup")
40-
find_python()
41-
setup_skbuild()
4238
find_package(PythonExtensions REQUIRED)
4339
find_package(Cython REQUIRED)
4440
find_package(NumPy REQUIRED)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[docs-img]: https://img.shields.io/badge/docs-stable-blue.svg
33
[docs-url]: http://astro-informatics.github.io/so3/
44
[bintray-img]: https://img.shields.io/bintray/v/astro-informatics/astro-informatics/so3:astro-informatics?label=C%20package
5-
[bintray-url]: https://bintray.com/astro-informatics/astro-informatics/so3:astro-informatics/1.3.0:stable/link
5+
[bintray-url]: https://bintray.com/astro-informatics/astro-informatics/so3:astro-informatics/1.3.1:stable/link
66
[pypi-img]: https://badge.fury.io/py/so3.svg
77
[pypi-url]: https://badge.fury.io/py/so3
88
[codefactor-img]: https://www.codefactor.io/repository/github/astro-informatics/so3/badge/main

cmake/conan_dependencies.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ elseif(NOT CONAN_OPTIONS)
1515
list(APPEND CONAN_OPTIONS "ssht:fPIC=False")
1616
endif()
1717
if(NOT CONAN_DEPS)
18-
set(CONAN_DEPS "ssht/1.3.3@astro-informatics/stable")
18+
set(CONAN_DEPS "ssht/1.3.4@astro-informatics/stable")
1919
endif()
2020
if(NOT CONAN_BUILD)
2121
set(CONAN_BUILD "missing")

cmake/python-setup.cmake

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

conanfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class So3Conan(ConanFile):
55
name = "so3"
6-
version = "1.3.0"
6+
version = "1.3.1"
77
license = "GPL-3"
88
url = "https://github.com/astro-informatics/so3"
99
homepage = "https://github.com/astro-informatics/so3"
@@ -25,7 +25,7 @@ class So3Conan(ConanFile):
2525

2626
def requirements(self):
2727
location = "astro-informatics/stable" if self.in_local_cache else "user/testing"
28-
self.requires(f"ssht/1.3.3@{location}")
28+
self.requires(f"ssht/1.3.4@{location}")
2929

3030
def configure(self):
3131
if self.settings.compiler == "Visual Studio":

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
CC = gcc
55

66
#OPT = -Wall -O3 -fopenmp -DSO3_VERSION=\"0.1\" -DSO3_BUILD=\"`git rev-parse HEAD`\"
7-
OPT = -Wall -g -fopenmp -DSO3_VERSION=\"1.3.0\" -DSO3_BUILD=\"`git rev-parse HEAD`\"
7+
OPT = -Wall -g -fopenmp -DSO3_VERSION=\"1.3.1\" -DSO3_BUILD=\"`git rev-parse HEAD`\"
88

99

1010
# ======== LINKS ========

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.0
2+
current_version = 1.3.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: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
from skbuild import setup
22

3-
cmake_args = [
4-
"-Dpython:BOOL=ON",
5-
"-Dtests:BOOL=OFF",
6-
]
3+
cmake_args = ["-Dtests:BOOL=OFF"]
74

85
setup(
96
name="so3",
10-
version="1.3.0",
7+
version="1.3.1",
118
author="Jason McEwen",
129
install_requires=["numpy", "cython", "scipy"],
1310
extras_require={

0 commit comments

Comments
 (0)