Skip to content

Commit 225d87f

Browse files
Merge pull request #248 from Blosc/fetch-content
Fetch content
2 parents cb1dcfc + fe909c8 commit 225d87f

File tree

9 files changed

+20
-21
lines changed

9 files changed

+20
-21
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16-
with:
17-
submodules: 'recursive'
1816

1917
- name: Set up Python ${{ matrix.python-version }}
2018
uses: actions/setup-python@v5

.github/workflows/cibuildwheels.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
# Fetch all history for all branches and tags
4848
# (important for guessing the correct version with setuptools_scm)
4949
fetch-depth: 0
50-
submodules: 'recursive'
5150

5251
- name: Set up Python
5352
uses: actions/setup-python@v5
@@ -95,7 +94,6 @@ jobs:
9594
# Fetch all history for all branches and tags
9695
# (important for guessing the correct version with setuptools_scm)
9796
fetch-depth: 0
98-
submodules: 'recursive'
9997

10098
- uses: actions/setup-python@v5
10199
name: Setup Python ${{ matrix.python-version }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ parts/
2020
sdist/
2121
var/
2222
wheels/
23+
wheelhouse/
2324
pip-wheel-metadata/
2425
share/python-wheels/
2526
*.egg-info/
2627
.installed.cfg
2728
*.egg
2829
MANIFEST
30+
src/blosc2/_version.py
2931

3032
# PyInstaller
3133
# Usually these files are written by a python script from a template

.gitmodules

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

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,13 @@ else()
3434
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
3535
# we want the binaries of the C-Blosc2 library to go into the wheels
3636
set(BLOSC_INSTALL ON)
37-
add_subdirectory(${PROJECT_SOURCE_DIR}/c-blosc2)
38-
include_directories("${PROJECT_SOURCE_DIR}/c-blosc2/include")
37+
include(FetchContent)
38+
FetchContent_Declare(blosc2
39+
GIT_REPOSITORY https://github.com/Blosc/c-blosc2
40+
GIT_TAG b179abf1132dfa5a263b2ebceb6ef7a3c2890c64
41+
)
42+
FetchContent_MakeAvailable(blosc2)
43+
include_directories("${blosc2_SOURCE_DIR}/include")
3944
target_link_libraries(blosc2_ext PRIVATE blosc2_static)
4045
endif()
4146

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Building from sources
183183

184184
.. code-block:: console
185185
186-
git clone --recursive https://github.com/Blosc/python-blosc2/
186+
git clone https://github.com/Blosc/python-blosc2/
187187
cd python-blosc2
188188
pip install . # add -e for editable mode
189189

RELEASING.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Preliminaries
88
to figure it out based on git tags:
99
https://scikit-build-core.readthedocs.io/en/latest/configuration.html#dynamic-metadata
1010

11-
* Make sure that the c-blosc2 submodule is updated to the latest version (or a specific
12-
version that will be documented in the ``RELEASE_NOTES.md``)::
13-
14-
cd c-blosc2
15-
git pull
16-
git checkout <desired tag>
17-
cd ../..
18-
git commit -m "Update C-Blosc2 sources to <desired tag>" c-blosc2
19-
git push
11+
* Make sure that the c-blosc2 repository is updated to the latest version (or a specific
12+
version that will be documented in the ``RELEASE_NOTES.md``). In `CMakeLists.txt` edit::
13+
14+
FetchContent_Declare(blosc2
15+
GIT_REPOSITORY https://github.com/Blosc/c-blosc2
16+
GIT_TAG b179abf1132dfa5a263b2ebceb6ef7a3c2890c64
17+
)
18+
19+
to point to the desired commit/tag in the c-blosc2 repo.
2020

2121
* Make sure that the current main branch is passing the tests in continuous integration.
2222

c-blosc2

Lines changed: 0 additions & 1 deletion
This file was deleted.

doc/getting_started/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Source code
1515

1616
.. code-block:: console
1717
18-
git clone --recursive https://github.com/Blosc/python-blosc2/
18+
git clone https://github.com/Blosc/python-blosc2/
1919
cd python-blosc2
2020
pip install -e .[test]
2121

0 commit comments

Comments
 (0)