Skip to content

Commit 096dc22

Browse files
committed
Getting ready for release 2.0.0
1 parent 0132962 commit 096dc22

18 files changed

+292
-1
lines changed

ANNOUNCE.rst

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
Announcing python-blosc2 2.0.0
2+
==============================
3+
4+
Changes from python-blosc to python-blosc2
5+
------------------------------------------
6+
7+
* The functions `compress_ptr` and `decompress_ptr` are replaced by pack and unpack since Pickle protocol 5 comes with out-of-band data.
8+
* The function `pack_array` is equivalent to `pack`, which accepts any object with attributes `itemsize` and `size`.
9+
* On the other hand, the function `unpack` doesn't return a numpy array whereas the `unpack_array` builds that array.
10+
* The `blosc.NOSHUFFLE` is replaced by the `blosc2.NOFILTER`
11+
12+
13+
14+
15+
16+
In this release the package is compiled using the scikit-build tool
17+
for a better integration
18+
with the C dependencies.
19+
20+
21+
For more info, you can have a look at the release notes in:
22+
23+
https://github.com/Blosc/python-blosc2/releases
24+
25+
More docs and examples are available in the documentation site:
26+
27+
https://python-blosc2.rtfd.io
28+
29+
30+
## What is it?
31+
32+
Blosc is an open source high performance compressor optimized for binary data
33+
(i.e. floating point numbers, integers and booleans). It has
34+
been designed to transmit data to the processor cache faster
35+
than the traditional, non-compressed, direct memory fetch approach
36+
via a memcpy() OS call. Blosc main goal is not just to reduce the
37+
size of large datasets
38+
on-disk or in-memory, but also to accelerate memory-bound computations.
39+
40+
41+
python-blosc2 is a pythonic wrapper for the c-blosc2 library.
42+
43+
44+
## Sources repository
45+
46+
The sources and documentation are managed through github services at:
47+
48+
http://github.com/Blosc/c-blosc2
49+
50+
c-blosc2 is distributed using the BSD license, see
51+
[LICENSE](https://github.com/Blosc/c-blosc2/blob/master/LICENSE.txt)
52+
for details.
53+
54+
55+
## Mailing list
56+
57+
There is an official Blosc mailing list where discussions about
58+
c-blosc2 are welcome:
59+
60+
61+
62+
http://groups.google.es/group/blosc
63+
64+
65+
Enjoy Data!
66+
- The Blosc Development Team

RELEASING.rst

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
python-blosc2 release procedure
2+
===============================
3+
4+
Preliminaries
5+
-------------
6+
7+
* Make sure that the current master branch is passing the tests on Microsoft Azure.
8+
9+
* Make sure that `RELEASE_NOTES.rst` and `ANNOUNCE.rst` are up to date with the latest news
10+
in the release.
11+
12+
* Check that `VERSION` file contains the correct number.
13+
14+
* Check any copyright listings and update them if necessary. You can use ``grep
15+
-i copyright`` to figure out where they might be.
16+
17+
* Commit the changes::
18+
19+
git commit -a -m "Getting ready for release X.Y.Z"
20+
git push
21+
22+
* Check that the documentation is correctly created in https://python-blosc2.rtfd.io.
23+
24+
25+
Tagging
26+
-------
27+
28+
* Create a signed tag ``X.Y.Z`` from ``master``. Use the next message::
29+
30+
git tag -a vX.Y.Z -m "Tagging version X.Y.Z"
31+
32+
* Push the tag to the github repo::
33+
34+
git push
35+
git push --tags
36+
37+
After the tag would be up, update the release notes in: https://github.com/Blosc/python-blosc2/releases
38+
39+
Packaging
40+
---------
41+
42+
* Make sure that you are in a clean directory. The best way is to
43+
re-clone and re-build::
44+
45+
cd /tmp
46+
git clone --recursive [email protected]:Blosc/python-blosc2.git
47+
cd python-blosc2
48+
python setup.py build_ext
49+
50+
* Check that all Cython generated ``*.c`` files are present.
51+
52+
* Make the tarball with the command::
53+
54+
python setup.py sdist
55+
pip install dist/*
56+
57+
Do a quick check that the tarball is sane.
58+
59+
60+
Uploading
61+
---------
62+
63+
* Register and upload it also in the PyPi repository::
64+
65+
twine upload dist/*
66+
67+
68+
It takes about 15 minutes for it to be installed using::
69+
70+
pip install blosc2
71+
72+
73+
74+
Announcing
75+
----------
76+
77+
* Send an announcement to the Blosc list. Use the ``ANNOUNCE.rst`` file as skeleton
78+
(or possibly as the definitive version).
79+
80+
* Announce in Twitter via @Blosc2 account and rejoice.
81+
82+
83+
Post-release actions
84+
--------------------
85+
86+
* Change back to the actual python-blosc2 repo::
87+
88+
cd $HOME/blosc/python-blosc2
89+
90+
91+
* Create new headers for adding new features in ``RELEASE_NOTES.rst``
92+
add this place-holder:
93+
94+
XXX version-specific blurb XXX
95+
96+
* Edit ``VERSION`` in master to increment the version to the next
97+
minor one (i.e. X.Y.Z --> X.Y.(Z+1).dev0).
98+
99+
* Commit your changes with::
100+
101+
git commit -a -m "Post X.Y.Z release actions done"
102+
git push
103+
104+
105+
That's all folks!

bench/compress_numpy.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
########################################################################
2+
#
3+
# Created: April 30, 2021
4+
# Author: The Blosc development team - [email protected]
5+
#
6+
########################################################################
7+
8+
19
"""
210
Small benchmark that compares a plain NumPy array copy against
311
compression through different compressors in blosc2.

bench/pack_compress.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
########################################################################
2+
#
3+
# Created: April 30, 2021
4+
# Author: The Blosc development team - [email protected]
5+
#
6+
########################################################################
7+
8+
19
"""
210
Small benchmark that compares a plain NumPy array copy against
311
compression through different compressors in blosc2.

bench/pack_unpack_deep.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
########################################################################
2+
#
3+
# Created: April 30, 2021
4+
# Author: The Blosc development team - [email protected]
5+
#
6+
########################################################################
7+
8+
19
"""
210
Small benchmark that compares a plain NumPy array copy against
311
compression through different compressors in blosc2.

blosc2/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
########################################################################
2+
#
3+
# Created: April 30, 2021
4+
# Author: The Blosc development team - [email protected]
5+
#
6+
########################################################################
7+
8+
19
from .version import __version__
210

311
# Codecs

blosc2/blosc2_ext.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
########################################################################
2+
#
3+
# Created: April 30, 2021
4+
# Author: The Blosc development team - [email protected]
5+
#
6+
########################################################################
7+
8+
19
from libcpp cimport bool
210
from libc.stdlib cimport malloc, free
311

blosc2/utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
########################################################################
2+
#
3+
# Created: April 30, 2021
4+
# Author: The Blosc development team - [email protected]
5+
#
6+
########################################################################
7+
8+
19
import os
210
import sys
311
from . import blosc2_ext

examples/compress_decompress.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
########################################################################
2+
#
3+
# Created: April 30, 2021
4+
# Author: The Blosc development team - [email protected]
5+
#
6+
########################################################################
7+
8+
19
# Compress and decompress different arrays
210
import blosc2
311
import array

examples/gil.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
########################################################################
2+
#
3+
# Created: April 30, 2021
4+
# Author: The Blosc development team - [email protected]
5+
#
6+
########################################################################
7+
8+
19
import blosc2
210

311
print(blosc2.set_releasegil(True))

0 commit comments

Comments
 (0)