File tree Expand file tree Collapse file tree 4 files changed +98
-8
lines changed Expand file tree Collapse file tree 4 files changed +98
-8
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ project(python-blosc2)
7
7
# IMO, this would need to be solved in Fedora, so we can just use the following line:
8
8
find_package (Python COMPONENTS Interpreter NumPy Development.Module REQUIRED )
9
9
10
+ # Add custom command to generate the version file
11
+ add_custom_command (
12
+ OUTPUT src/blosc2/_version.py
13
+ COMMAND ${Python_EXECUTABLE} generate_version.py
14
+ DEPENDS generate_version.py pyproject.toml
15
+ VERBATIM
16
+ )
17
+
10
18
# Compile the Cython extension manually...
11
19
add_custom_command (
12
20
OUTPUT blosc2_ext.c
Original file line number Diff line number Diff line change
1
+ # generate_version.py
2
+
3
+ import tomllib as toml
4
+
5
+ # Read the pyproject.toml file
6
+ with open ("pyproject.toml" , "rb" ) as f :
7
+ pyproject = toml .load (f )
8
+
9
+ # Extract the version
10
+ version = pyproject ["project" ]["version" ]
11
+
12
+ # Write the version to blosc2/_version.py
13
+ with open ("src/blosc2/_version.py" , "w" ) as f :
14
+ f .write (f'__version__ = "{ version } "\n ' )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ dependencies = [
38
38
" py-cpuinfo" ,
39
39
" httpx" ,
40
40
]
41
- dynamic = [ " version " ]
41
+ version = " 3.0.0rc3 "
42
42
43
43
44
44
[project .optional-dependencies ]
@@ -86,13 +86,6 @@ test-command = "pytest {project}/tests"
86
86
manylinux-x86_64-image = " manylinux2014"
87
87
manylinux-aarch64-image = " manylinux2014"
88
88
89
- [tool .scikit-build ]
90
- metadata.version.provider = " scikit_build_core.metadata.setuptools_scm"
91
- sdist.include = [" src/blosc2/_version.py" ]
92
-
93
- [tool .setuptools_scm ]
94
- write_to = " src/blosc2/_version.py"
95
-
96
89
[tool .ruff ]
97
90
line-length = 109
98
91
extend-exclude = [" bench" ]
Original file line number Diff line number Diff line change
1
+ {% set name = "blosc2" %}
2
+ {% set version = "3.0.0rc3" %}
3
+
4
+ package :
5
+ name : {{ name|lower }}
6
+ version : {{ version }}
7
+
8
+ source :
9
+ # url: https://github.com/Blosc/python-blosc2/archive/refs/tags/v{{ version }}.tar.gz
10
+ # url: https://github.com/Blosc/python-blosc2/archive/refs/tags/v3.0.0-rc2.tar.gz
11
+ # sha256: cbf42b475c02145a979e4ac6cbd5ad9df49d23a417b56b6b7bdf5a9d0a4b0716
12
+ url : /tmp/blosc2-3.0.0rc3.tar.gz
13
+ sha256 : 74c7c81cdbf28702fc751f3b6079b1e3653fec8fd285d54214e962c2113c593c
14
+ include :
15
+ - pyproject.toml
16
+
17
+ build :
18
+ number : 0
19
+ script_env :
20
+ - USE_SYSTEM_BLOSC2=1
21
+ script :
22
+ # - {{ PYTHON }} -m pip install --no-deps --ignore-installed .
23
+ # - -no-deps --no-build-isolation
24
+ - {{ PYTHON }} -m pip install . -vv
25
+
26
+ requirements :
27
+ build :
28
+ - {{ compiler('c') }}
29
+ - {{ stdlib('c') }}
30
+ - python >=3.11
31
+ - pip
32
+ - scikit-build-core
33
+ - cython >=3
34
+ - numpy >=2.0.0
35
+ - c-blosc2 >=2.15.2
36
+ - ninja
37
+ host :
38
+ - python >=3.11
39
+ - pip
40
+ - scikit-build-core
41
+ - cython >=3
42
+ - numpy >=2.0.0
43
+ run :
44
+ - python >=3.11
45
+ - numpy >=1.25.0
46
+ - ndindex
47
+ - msgpack-python
48
+ - numexpr
49
+ - py-cpuinfo
50
+ - httpx
51
+
52
+ test :
53
+ imports :
54
+ - blosc2
55
+ requires :
56
+ - pip
57
+ - pytest
58
+ commands :
59
+ - pip check
60
+ - pytest -v --pyargs blosc2
61
+
62
+ about :
63
+ home : https://github.com/Blosc/python-blosc2
64
+ license : BSD-3-Clause
65
+ license_family : BSD
66
+ license_file : LICENSE.txt
67
+ summary : A flexible computational engine for the fast Blosc2 compression library
68
+ description : |
69
+ Blosc2 is a high-performance compressor optimized for binary data. It adds a flexible computational engine, making it ideal for scientific computing and other data-intensive applications.
70
+ doc_url : https://www.blosc.org/python-blosc2
71
+ dev_url : https://github.com/Blosc/python-blosc2
72
+
73
+ extra :
74
+ recipe-maintainers :
75
+ - FrancescAlted
You can’t perform that action at this time.
0 commit comments