Skip to content

Commit 061763a

Browse files
authored
Merge pull request #50 from astro-informatics/feature/conan-center
Feature/conan center
2 parents f482dc8 + eafb124 commit 061763a

File tree

19 files changed

+405
-1662
lines changed

19 files changed

+405
-1662
lines changed

.github/workflows/conan.yml

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

.github/workflows/python.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ jobs:
6666
path: ./dist/*.tar.gz
6767
name: source-distribution
6868

69-
7069
build_wheels:
7170
name: Build wheels on ${{ matrix.os }}
7271
runs-on: ${{ matrix.os }}
@@ -115,18 +114,18 @@ jobs:
115114

116115
- name: Move wheels and source distribution to dist/
117116
run: |
118-
mkdir -p dist
119-
mv source-distribution/*.tar.gz wheel-*/*.whl dist
117+
mkdir -p dist
118+
mv source-distribution/*.tar.gz wheel-*/*.whl dist
120119
121120
- name: Publish distribution 📦 to Test PyPI
122-
if: ${{ github.ref != 'refs/tags/v1.3.5' }}
121+
if: ${{ github.ref != 'refs/tags/v1.3.6' }}
123122
uses: pypa/gh-action-pypi-publish@master
124123
with:
125124
password: ${{ secrets.TEST_PYPI_TOKEN }}
126125
repository_url: https://test.pypi.org/legacy/
127126

128127
- name: Publish distribution 📦 to PyPI
129-
if: ${{ github.ref == 'refs/tags/v1.3.5' }}
128+
if: ${{ github.ref == 'refs/tags/v1.3.6rc1' }}
130129
uses: pypa/gh-action-pypi-publish@master
131130
with:
132131
password: ${{ secrets.PYPI_TOKEN }}

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Python Build",
8+
"type": "shell",
9+
"command": "direnv exec ${workspaceFolder} python setup.py develop",
10+
"problemMatcher": [],
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
}
15+
}
16+
]
17+
}

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)
22

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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
[docs-img]: https://img.shields.io/badge/docs-stable-blue.svg
44
[docs-url]: https://astro-informatics.github.io/ssht/
5-
[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.5:stable/link
5+
[bintray-img]: https://img.shields.io/badge/ConanCenter-C%20Package-red.svg
6+
[bintray-url]: https://conan.io/center/ssht
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
@@ -25,7 +25,7 @@ sphere derived in <a href="http://www.jasonmcewen.org/publication/mcewen-fssht/"
2525

2626
## INSTALLATION
2727

28-
The python package, <strong>pyssht</strong>, is available on <a href="https://pypi.org/project/pyssht/">pypi</a> and can be installed with:
28+
The python package, **pyssht**, is available on <a href="https://pypi.org/project/pyssht/">pypi</a> and can be installed with:
2929

3030
```bash
3131
pip install pyssht
@@ -74,7 +74,7 @@ If you use **SSHT** for work that results in publication, please reference <a hr
7474
## LICENSE
7575

7676
SSHT is released under the GPL-3 license. For further details see
77-
[LICENSE.txt](https://github.com/astro-informatics/ssht/blob/main/LICENSE).
77+
[LICENSE](https://github.com/astro-informatics/ssht/blob/main/LICENSE).
7878

7979

8080
## AUTHORS

cmake/SshtConfig.in.cmake

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
get_filename_component(Ssht_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
2-
message(STATUS "Linking to ssht package in ${Ssht_CMAKE_DIR}")
3-
if(NOT TARGET ssht AND EXISTS "${Ssht_CMAKE_DIR}/SshtTargets.cmake")
4-
include("${Ssht_CMAKE_DIR}/SshtTargets.cmake")
1+
set(Ssht_VERSION "@PROJECT_VERSION@")
2+
3+
@PACKAGE_INIT@
4+
5+
if(NOT "@conan_deps@" AND NOT "@CONAN_EDITABLE_MODE@")
6+
include(CMakeFindDependencyMacro)
7+
find_dependency(FFTW3 REQUIRED COMPONENTS SERIAL DOUBLE)
58
endif()
69

7-
set(Ssht_INCLUDE_DIRS "@ALL_INCLUDE_DIRS@")
10+
set(Ssht_INCLUDE_DIRS "@PACKAGE_INCLUDE_INSTALL_DIR@")
811
set(Ssht_LIBRARIES ssht)
12+
13+
check_required_components(Ssht)

cmake/SshtConfigVersion.in.cmake

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

cmake/exporting.cmake

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,24 @@ if(NOT NOEXPORT)
66
export(PACKAGE Ssht)
77
endif()
88

9-
# First in binary dir
10-
set(ALL_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}")
11-
configure_File(cmake/SshtConfig.in.cmake
12-
"${PROJECT_BINARY_DIR}/SshtConfig.cmake" @ONLY
13-
)
14-
configure_File(cmake/SshtConfigVersion.in.cmake
15-
"${PROJECT_BINARY_DIR}/SshtConfigVersion.cmake" @ONLY
16-
)
9+
set(INCLUDE_INSTALL_DIR include/)
10+
include(CMakePackageConfigHelpers)
11+
configure_package_config_file(cmake/SshtConfig.in.cmake
12+
"${PROJECT_BINARY_DIR}/SshtConfig.cmake"
13+
INSTALL_DESTINATION lib/cmake/Ssht
14+
PATH_VARS INCLUDE_INSTALL_DIR)
15+
write_basic_package_version_file(
16+
SshtConfigVersion.cmake
17+
VERSION ${PROJECT_VERSION}
18+
COMPATIBILITY SameMajorVersion)
1719

18-
# Then for installation tree
19-
file(RELATIVE_PATH REL_INCLUDE_DIR
20-
"${CMAKE_INSTALL_PREFIX}/share/cmake/ssht"
21-
"${CMAKE_INSTALL_PREFIX}/include"
22-
)
23-
set(ALL_INCLUDE_DIRS "\${Ssht_CMAKE_DIR}/${REL_INCLUDE_DIR}")
24-
configure_file(cmake/SshtConfig.in.cmake
25-
"${PROJECT_BINARY_DIR}/CMakeFiles/SshtConfig.cmake" @ONLY
26-
)
27-
28-
# Finally install all files
29-
install(FILES
30-
"${PROJECT_BINARY_DIR}/CMakeFiles/SshtConfig.cmake"
31-
"${PROJECT_BINARY_DIR}/SshtConfigVersion.cmake"
32-
DESTINATION share/cmake/ssht
20+
if(NOT CONAN_CENTER)
21+
install(FILES
22+
"${PROJECT_BINARY_DIR}/SshtConfig.cmake"
23+
"${PROJECT_BINARY_DIR}/SshtConfigVersion.cmake"
24+
DESTINATION lib/cmake/ssht
3325
COMPONENT dev
34-
)
26+
)
27+
endif()
3528

36-
install(EXPORT SshtTargets DESTINATION share/cmake/ssht COMPONENT dev)
29+
install(EXPORT SshtTargets DESTINATION lib/cmake/ssht COMPONENT dev)

conanfile.py

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

0 commit comments

Comments
 (0)