************************** Dependency version support ************************** SpacePy will occasionally drop support for old versions of :doc:`dependencies `. Failures with older versions will not be treated as SpacePy bugs. Dependency support is based on these principles: #. SpacePy supports released versions of a dependency that meet a minimum version requirement; there is no maximum supported version. #. Support for old versions of dependencies will be dropped only for reason, e.g. if a new version is required to support a new feature or fix a bug. Maintenance of convoluted workarounds is included in this category. #. Support will be maintained for versions included in the second-most-recent Ubuntu Long Term Support (LTS) release, e.g. upon release of Ubuntu 20.04 LTS, support will be maintained for at least the versions in 18.04 LTS #. Support will also be maintained for Python and NumPy versions in the spirit of `NEP 29 `_. #. A SpacePy release will support at least all minor versions of Python released in the prior 42 months, and at least the two latest minor versions. #. SpacePy will support all minor versions of NumPy and, where possible, other Python dependencies released in the prior 24 months, and at least the three latest minor versions. #. Non-Python dependencies that use a similar versioning system will be supported similarly where possible. #. This support is based on minor releases (x.y.0), not subsequent subminor releases (x.y.z for the same x.y). Where x.y.0 is supported, so is x.y.z for all z. #. All versions of all dependencies and all combinations thereof will *not* necessarily be tested in continuous integration. In particular, CI will only be run against versions of dependencies other than numpy which have binary wheels available. Numpy may be tested with earlier versions that do not conflict with other dependencies. For this reason, the CI configuration is not a reasonable guide of the minimum supported versoin. #. No support will be provided for conflicting versions of dependencies. E.g. SciPy 1.9 requires NumPy 1.18. Although SpacePy supports SciPy 1.9 and Numpy 1.17, it contains no workarounds for using them in that combination. #. Support for a particular version of a dependency does not imply a commitment to work around bugs in that version. #. A release of SpacePy that requires new dependency versions will always have a subminor version of 0, e.g. if the release that follows 0.5.2 requires updated dependencies, it will be numbered 0.6.0. #. The commit that requires a newer version of a dependency must also update the ``requirements.txt``, :doc:`dependencies`, and the table below. The commit message must include the reason for the dependency requirement. Regardless of minimum requirements, using the latest stable version of a package is generally preferred. The minimum supported version for SpacePy may not be recommended for other reasons (e.g. bug fixes or improved features elsewhere in the package.) This table summarizes the versions to be supported according to the above policy, as well as the minimum version currently supported by SpacePy. Where available, the dependency name links to its version history. The oldest version supported according to this policy is in **bold**. .. list-table:: SpacePy dependency versions (2022/9/20) :widths: 10 10 10 10 10 10 10 :header-rows: 1 * - Dependency - Current Release - Ubuntu 20.04LTS - Ubuntu 22.04LTS - NEP 29 (42/24 mo.) - NEP 29 (2/3 minor versions) - SpacePy current minimum * - `CPython `_ - 3.10.7 (2022/9/6) - 3.8.2 (2020/2/24) - 3.10.4 (2022/3/24) - **3.8.0** (2019/10/14) - 3.9.0 (2020/10/5) - 3.6.0 (2016/12/23) * - `AstroPy `_ - 5.1 (2022/5/24) - **4.0** (2019/12/16) - 5.0.2 (2022/3/10) - 4.1 (2020/10/21) - 4.3 (2021/7/26) - 1.0 (2015/2/18) * - `CDF `_ - 3.8.1 (2021/10/27) - N/A - N/A - 3.8.0 (2019/10/27) - **3.6.0** (2015/2/5) - 3.5.0 (2013/2/25) * - `dateutil `_ - 2.8.2 (2021/7/8) - 2.7.3 (2018/5/9) - 2.8.1 (2019/11/3) - 2.8.0 (2019/2/5) - **2.6.0** (2016/11/8) - 2.1.0 (2021/3/28) * - `h5py `_ - 3.7.0 (2022/5/24) - **2.10.0** (2019/9/6) - 3.6.0 (2021/11/16) - 3.0.0 (2020/10/30) - 3.5.0 (2021/10/20) - 2.10.0 (2019/9/6) * - `matplotlib `_ - 3.6.0 (2022/9/16) - **3.1.2** (2019/12/4) - 3.5.1 (2021/12/11) - 3.4.0 (2021/3/26) - 3.4.0 (2021/3/26) - 3.1.0 (2019/5/18) * - `numpy `_ - 1.23.3 (2022/9/9) - **1.16.5** (2019/8/27) - 1.21.5 (2021/12/19) - 1.20.0 (2021/1/30) - 1.21.0 (2021/6/22) - 1.15.1 (2018/8/21) * - `scipy `_ - 1.9.1 (2022/8/26) - **1.3.3** (2019/11/23) - 1.8.0 (2022/2/5) - 1.6.0 (2020/12/31) - 1.7.0 (2021/6/20) - 1.0.0 (2017/10/25) * - `pip `_ - 23.1.2 (2023/4/26) - **20.0.2** (2020/1/24) - 22.0.2 (2022/1/30) - 21.1 (2021/4/24) - 22.3 (2022/10/15) - tested with 20.0.2 * - `setuptools `_ - 67.7.1 (2023/4/21) - **44.1.1** (c. 2020/1/1) - 59.6.0 (2021/12/12) - 56.1.0 (2021/5/4) - 67.5.0 (2023/3/5) - tested with 44.1.1 * - `wheel `_ - 0.40.0 (2023/3/14) - **0.34.2** (2020/01/30) - 0.37.1 (2021/12/22) - 0.38.0 (2022/10/21) - 0.38.0 (2022/10/21) - tested with 0.34.2 * - `sphinx `_ (only needed for developers to build documentation) - 5.1.1 (2022/7/26) - **1.8.5** (2019/3/10) - 4.3.2 (2021/12/19) - 3.3.0 (2020/11/2) - 4.5.0 (2022/3/28) - 1.8.0 (2018/9/13) * - `build `_ (only needed for developers to build releases) - 0.10.0 (2023/1/11) - N/A - 0.7.0 (2021/9/16) - **0.4.0** (2021/5/23) - 0.8.0 (2022/5/22) - tested with 0.4.0