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)
77# IMO, this would need to be solved in Fedora, so we can just use the following line:
88find_package (Python COMPONENTS Interpreter NumPy Development.Module REQUIRED)
99
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+
1018# Compile the Cython extension manually...
1119add_custom_command (
1220 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 = [
3838 " py-cpuinfo" ,
3939 " httpx" ,
4040]
41- dynamic = [ " version " ]
41+ version = " 3.0.0rc3 "
4242
4343
4444[project .optional-dependencies ]
@@ -86,13 +86,6 @@ test-command = "pytest {project}/tests"
8686manylinux-x86_64-image = " manylinux2014"
8787manylinux-aarch64-image = " manylinux2014"
8888
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-
9689[tool .ruff ]
9790line-length = 109
9891extend-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