Skip to content

Commit

Permalink
Merge branch 'release1.0.1' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
lindstro committed Dec 16, 2023
2 parents 63eeefa + cd174e0 commit 3f8de26
Show file tree
Hide file tree
Showing 18 changed files with 120 additions and 40 deletions.
35 changes: 35 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
# You can also specify other tool versions:
# nodejs: "20"
# rust: "1.70"
# golang: "1.20"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration: docs/source/conf.py
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
# builder: "dirhtml"
# Fail on all warnings to avoid broken references
# fail_on_warning: true

# Optionally build your docs in additional formats such as PDF and ePub
formats:
- pdf
# - epub

# Optional but recommended, declare the Python requirements required
# to build your documentation
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements.txt
20 changes: 16 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@ Change Log

---

## Unreleased
## 1.0.1 (2023-12-15)

This patch release primarily addresses minor bug fixes and is needed to update
the zfpy Python wheels.

### Added

- A new build macro, `BUILD_TESTING_FULL`, specifies that all unit tests be
built; `BUILD_TESTING` produces a smaller subset of tests. Full tests and
documentation are now included in releases.

### Fixed

- #220: Errors reported with scikit-build when running `CMake` with `BUILD_ZFPY` enabled
- #177: Full test suite not in release
- #176: `CFP` API is not exposed via CMake configuration file
- #169: `libm` dependency is not always correctly detected.
- #171: `ptrdiff_t` is not always imported in Cython.
- #176: cfp API is not exposed via CMake configuration file.
- #177: Full test suite is not included in release.
- #181: `rpath` is not set correctly in executables.
- #204: Array strides are not passed by value in zFORp.
- #220: Errors reported with scikit-build when building zfpy.

---

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2014-2022, Lawrence Livermore National Security, LLC
Copyright (c) 2014-2023, Lawrence Livermore National Security, LLC
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ZFP
===
[![Github Actions Build Status](https://github.com/LLNL/zfp/workflows/Run%20Tests/badge.svg)](https://github.com/LLNL/zfp/actions/workflows/tests.yml)
[![Appveyor Build Status](https://ci.appveyor.com/api/projects/status/qb3ld7j11segy52k/branch/develop?svg=true)](https://ci.appveyor.com/project/lindstro/zfp)
[![Documentation Status](https://readthedocs.org/projects/zfp/badge/?version=release1.0.0)](https://zfp.readthedocs.io/en/release1.0.0/)
[![Documentation Status](https://readthedocs.org/projects/zfp/badge/?version=release1.0.1)](https://zfp.readthedocs.io/en/release1.0.1/)
[![codecov](https://codecov.io/gh/LLNL/zfp/branch/develop/graph/badge.svg?token=jqvMVvgRQ9)](https://codecov.io/gh/LLNL/zfp)
[![R&D100 - Winner](https://img.shields.io/badge/R%26D100-Winner-gold)](https://www.rdworldonline.com/rd-100-winners-for-2023-are-announced-2/)

Expand Down Expand Up @@ -58,18 +58,18 @@ Note: GNU builds are less flexible and do not support all available features,
e.g., CUDA support.

For further configuration and build instructions, please consult the
[documentation](https://zfp.readthedocs.io/en/release1.0.0/installation.html).
[documentation](https://zfp.readthedocs.io/en/release1.0.1/installation.html).
For examples of how to call the C library and use the C++ array classes,
see the [examples](https://zfp.readthedocs.io/en/release1.0.0/examples.html)
see the [examples](https://zfp.readthedocs.io/en/release1.0.1/examples.html)
section.


Documentation
-------------

Full HTML [documentation](http://zfp.readthedocs.io/en/release1.0.0) is
Full HTML [documentation](http://zfp.readthedocs.io/en/release1.0.1) is
available online.
A [PDF](http://readthedocs.org/projects/zfp/downloads/pdf/release1.0.0/)
A [PDF](http://readthedocs.org/projects/zfp/downloads/pdf/release1.0.1/)
version is also available.

Further information on the zfp software is included in these files:
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.0.0-{build}
version: 1.0.1-{build}

environment:
# zfpy only build for Release builds (otherwise need debug python libs python27_d.lib)
Expand Down
4 changes: 4 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sphinx-fortran==1.1.1

# required by sphinx-fortran but not installed on RTD
six
13 changes: 8 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@

# General information about the project.
project = u'zfp'
copyright = u'2014-2022, LLNL-CODE-663824'
author = u'Peter Lindstrom, Garrett Morrison'
copyright = u'2014-2023, LLNL-CODE-663824'
author = u'Peter Lindstrom, Danielle Asher'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand All @@ -56,14 +56,17 @@
# The short X.Y version.
version = u'1.0'
# The full version, including alpha/beta/rc tags.
release = u'1.0.0'
release = u'1.0.1'

# The release date (as the RTD server is in another time zone).
today = u'Dec 15, 2023'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# Enable automatic numbering of figures referenced by :numref:.
numfig = True
Expand Down Expand Up @@ -149,7 +152,7 @@
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'zfp.tex', u'zfp Documentation',
u'\shortstack[l]{Peter Lindstrom\\\\Garrett Morrison}', 'manual'),
u'\shortstack[l]{Peter Lindstrom\\\\Danielle Asher}', 'manual'),
]


Expand Down
2 changes: 1 addition & 1 deletion docs/source/contributors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Contributors
* |zfp| development team

- Peter Lindstrom
- Garrett Morrison
- Danielle Asher

* Major contributors

Expand Down
10 changes: 6 additions & 4 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ core library can also be built using GNU make on Linux, macOS, and MinGW.
C++11, and C++14.

.. note::
|zfp| requires 64-bit compiler and operating system support.
|zfp| requires compiler support for 64-bit integers.

.. _cmake_builds:

Expand All @@ -30,7 +30,7 @@ CMake Builds
To build |zfp| using `CMake <https://cmake.org>`__ on Linux or macOS, start
a Unix shell and type::

cd zfp-1.0.0
cd zfp-1.0.1
mkdir build
cd build
cmake ..
Expand All @@ -48,7 +48,7 @@ By default, CMake builds will attempt to locate and use
To build |zfp| using Visual Studio on Windows, start a DOS shell
and type::

cd zfp-1.0.0
cd zfp-1.0.1
mkdir build
cd build
cmake ..
Expand All @@ -67,7 +67,7 @@ GNU Builds
To build |zfp| using `gcc <https://gcc.gnu.org>`__ without
`OpenMP <http://www.openmp.org>`__, type::

cd zfp-1.0.0
cd zfp-1.0.1
gmake

This builds |libzfp| as a static library as well as the |zfp|
Expand Down Expand Up @@ -193,6 +193,8 @@ Regardless of the settings below, |libzfp| will always be built.
CMake default: on.
GNU make default: off.

.. note::
On macOS, add :code:`OS=mac` when building shared libraries with GNU make.

.. index::
single: Configuration
Expand Down
15 changes: 9 additions & 6 deletions docs/source/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ exactly, is also supported.
`Lawrence Livermore National Laboratory <https://www.llnl.gov>`__
and is supported by the U.S. Department of Energy's
`Exascale Computing Project <https://www.exascaleproject.org>`__.
|zfp| is a
`2023 R&D 100 Award Winner <https://www.rdworldonline.com/2023-rd-100-award-winners/>`__.


Availability
Expand All @@ -57,11 +59,12 @@ bindings) to install.
|zfp| is also available through several package managers, including
Conda (both `C/C++ <https://anaconda.org/conda-forge/zfp>`__ and
`Python <https://anaconda.org/conda-forge/zfpy>`__ packages are available),
`PIP <https://pypi.org/project/zfpy>`__, and
`Spack <https://spack.readthedocs.io/en/latest/package_list.html#zfp>`__.
`RPM packages <https://repology.org/project/zfp/versions>`__ are available
for several Linux distributions and may be installed using :code:`apt` or
:code:`yum`.
`PIP <https://pypi.org/project/zfpy>`__,
`Spack <https://packages.spack.io/package.html?name=zfp>`__, and
`MacPorts <https://ports.macports.org/port/zfp/details/>`__.
`Linux packages <https://repology.org/project/zfp/versions>`__ are available
for several distributions and may be installed, for example, using :code:`apt`
and :code:`yum`.


.. _app-support:
Expand All @@ -83,7 +86,7 @@ plugins, and formats, such as
select compressors shipped with
`HDF5 binaries <https://www.hdfgroup.org/downloads/hdf5/>`__.

* `Compression functions <https://software.intel.com/en-us/ipp-dev-reference-zfp-compression-functions>`__
* `Compression functions <https://www.intel.com/content/www/us/en/developer/articles/technical/parallel-compression-and-decompression-in-intel-integrated-performance-primitives-zfp-.html>`__
for Intel\ |reg| `Integrated Performance Primitives <https://software.intel.com/en-us/intel-ipp>`__.

* `Compressed MPI messages <https://doi.org/10.1109/IPDPS49936.2021.00053>`__
Expand Down
2 changes: 1 addition & 1 deletion docs/source/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
License
=======

| Copyright (c) 2014-2022, Lawrence Livermore National Security, LLC
| Copyright (c) 2014-2023, Lawrence Livermore National Security, LLC
| All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down
24 changes: 24 additions & 0 deletions docs/source/versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@
Release Notes
=============

1.0.1 (2023-12-15)
------------------

This patch release primarily addresses minor bug fixes and is needed to update
the zfpy Python wheels.

**Added**

- A new build macro, ``BUILD_TESTING_FULL``, specifies that all unit tests be
built; ``BUILD_TESTING`` produces a smaller subset of tests. Full tests and
documentation are now included in releases.

**Fixed**

- #169: `libm` dependency is not always correctly detected.
- #171: `ptrdiff_t` is not always imported in Cython.
- #176: cfp API is not exposed via CMake configuration file.
- #177: Full test suite is not included in release.
- #181: `rpath` is not set correctly in executables.
- #204: Array strides are not passed by value in zFORp.
- #220: Errors reported with scikit-build when building zfpy.

----

1.0.0 (2022-08-01)
------------------

Expand Down
6 changes: 3 additions & 3 deletions fortran/zfp.f90
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module zfp

integer, parameter :: const_zFORp_version_major = 1
integer, parameter :: const_zFORp_version_minor = 0
integer, parameter :: const_zFORp_version_patch = 0
integer, parameter :: const_zFORp_version_patch = 1
integer, parameter :: const_zFORp_version_tweak = 0
integer, protected, bind(c, name="zFORp_version_major") :: zFORp_version_major
integer, protected, bind(c, name="zFORp_version_minor") :: zFORp_version_minor
Expand All @@ -68,11 +68,11 @@ module zfp
integer, protected, bind(c, name="zFORp_codec_version") :: zFORp_codec_version
data zFORp_codec_version/const_zFORp_codec_version/

integer, parameter :: const_zFORp_library_version = 4096 ! 0x1000
integer, parameter :: const_zFORp_library_version = 4112 ! 0x1010
integer, protected, bind(c, name="zFORp_library_version") :: zFORp_library_version
data zFORp_library_version/const_zFORp_library_version/

character(len = 36), parameter :: zFORp_version_string = 'zfp version 1.0.0 (August 1, 2022)'
character(len = 36), parameter :: zFORp_version_string = 'zfp version 1.0.1 (December 15, 2023)'

integer, parameter :: const_zFORp_min_bits = 1
integer, parameter :: const_zFORp_max_bits = 16658
Expand Down
2 changes: 1 addition & 1 deletion include/zfp.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
** Copyright (c) 2014-2022, Lawrence Livermore National Security, LLC and
** Copyright (c) 2014-2023, Lawrence Livermore National Security, LLC and
** other zfp project contributors. See the top-level LICENSE file for details.
** SPDX-License-Identifier: BSD-3-Clause
*/
Expand Down
2 changes: 1 addition & 1 deletion include/zfp.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef ZFP_HPP
#define ZFP_HPP

// Copyright (c) 2014-2022, Lawrence Livermore National Security, LLC and
// Copyright (c) 2014-2023, Lawrence Livermore National Security, LLC and
// other zfp project contributors. See the top-level LICENSE file for details.
// SPDX-License-Identifier: BSD-3-Clause

Expand Down
5 changes: 1 addition & 4 deletions include/zfp/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
/* library version information */
#define ZFP_VERSION_MAJOR 1 /* library major version number */
#define ZFP_VERSION_MINOR 0 /* library minor version number */
#define ZFP_VERSION_PATCH 0 /* library patch version number */
#define ZFP_VERSION_PATCH 1 /* library patch version number */
#define ZFP_VERSION_TWEAK 0 /* library tweak version number */

/* defined for work in progress (indicates unofficial release) */
#define ZFP_VERSION_DEVELOP 1

/* codec version number (see also zfp_codec_version) */
#define ZFP_CODEC 5

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

setup(
name="zfpy",
version="1.0.0",
author="Peter Lindstrom",
version="1.0.1",
author="Peter Lindstrom, Danielle Asher",
author_email="[email protected]",
url="https://zfp.llnl.gov",
description="zfp compression in Python",
Expand Down
2 changes: 1 addition & 1 deletion src/zfp.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

const uint zfp_codec_version = ZFP_CODEC;
const uint zfp_library_version = ZFP_VERSION;
const char* const zfp_version_string = "zfp version " ZFP_VERSION_STRING " (August 1, 2022)";
const char* const zfp_version_string = "zfp version " ZFP_VERSION_STRING " (December 15, 2023)";

/* private functions ------------------------------------------------------- */

Expand Down

0 comments on commit 3f8de26

Please sign in to comment.