From ab1efbb71897d1d1e449719272a69639a227b28c Mon Sep 17 00:00:00 2001 From: Marten Henric van Kerkwijk Date: Wed, 17 Jul 2024 14:11:37 +0200 Subject: [PATCH 1/2] Changelog entry for 4.2 --- CHANGES.rst | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 7aa0fa87..d8d4586f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,24 +1,8 @@ -4.2 (unreleased) +4.2 (2024-07-17) ================ -- The minimum versions required by baseband are now python 3.8, astropy 5.0, - and numpy 1.18. - -New Features ------------- - -API Changes ------------ - -Bug Fixes ---------- - -Other Changes and Additions ---------------------------- - - -4.1.4 (2024-07-17) -================== +- The minimum versions required by baseband are now python 3.10, astropy 5.1, + and numpy 1.24. Bug Fixes --------- From 52e5fbc5f4f90525634b9c65d4522cb832c2970c Mon Sep 17 00:00:00 2001 From: Marten Henric van Kerkwijk Date: Wed, 17 Jul 2024 14:11:21 +0200 Subject: [PATCH 2/2] Prepare for 4.2 by upping minimum versions --- .github/workflows/ci_cron_monthly.yml | 12 +++++------- .github/workflows/ci_workflows.yml | 18 +++++++++--------- baseband/__init__.py | 6 +++--- setup.cfg | 4 ++-- tox.ini | 6 +++--- 5 files changed, 22 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci_cron_monthly.yml b/.github/workflows/ci_cron_monthly.yml index b373b1ad..427f639f 100644 --- a/.github/workflows/ci_cron_monthly.yml +++ b/.github/workflows/ci_cron_monthly.yml @@ -21,7 +21,7 @@ jobs: name: Test on ${{ matrix.arch }} # Don't run on forks of the repository. if: (github.repository == 'mhvk/baseband' && (github.event_name == 'schedule' || contains(github.event.pull_request.labels.*.name, 'Extra CI'))) - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest env: apt_packages: git python3-astropy python3-pip @@ -34,7 +34,7 @@ jobs: - arch: ppc64le steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: uraimo/run-on-arch-action@v2 @@ -43,8 +43,6 @@ jobs: with: arch: ${{ matrix.arch }} distro: ubuntu_latest - # Speeds up builds by storing container images in a GitHub package registry. - githubToken: ${{ github.token }} shell: /bin/bash install: | apt-get update -q -y @@ -61,7 +59,7 @@ jobs: apt_packages: git python3-astropy python3-pip steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install system dependencies @@ -84,10 +82,10 @@ jobs: - os: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v5 with: python-version: 3.x - name: Install Python dependencies diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index 8ad76726..d1b4532c 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -18,18 +18,18 @@ jobs: include: - name: Test basics and coverage - python: "3.10" - toxenv: py310-test-cov + python: "3.12" + toxenv: py312-test-cov - name: Code style checks python: "3.x" toxenv: codestyle steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - name: Install Python dependencies @@ -48,13 +48,13 @@ jobs: # doc build done on readthedocs. # - name: Documentation build - # python: 3.8 + # python: 3.x # toxenv: build_docs # apt_packages: graphviz - name: Test oldest supported version - python: "3.8" - toxenv: py38-test-oldestdeps + python: "3.10" + toxenv: py310-test-oldestdeps - name: Windows os: windows-latest @@ -62,13 +62,13 @@ jobs: toxenv: py312-test steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install system dependencies if: matrix.apt_packages run: sudo apt-get install ${{ matrix.apt_packages }} - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python }} - name: Install Python dependencies diff --git a/baseband/__init__.py b/baseband/__init__.py index 4bd67a5b..9b4af91c 100644 --- a/baseband/__init__.py +++ b/baseband/__init__.py @@ -8,8 +8,8 @@ # ---------------------------------------------------------------------------- # Define minima for the documentation, but do not bother to explicitly check. -__minimum_python_version__ = '3.8' -__minimum_astropy_version__ = '5.0' -__minimum_numpy_version__ = '1.18' +__minimum_python_version__ = '3.10' +__minimum_astropy_version__ = '5.1' +__minimum_numpy_version__ = '1.24' from .io import file_info, open # noqa diff --git a/setup.cfg b/setup.cfg index 7a9aa6f7..ddeb30bc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,10 +17,10 @@ github_project = mhvk/baseband [options] zip_safe = False packages = find: -python_requires = >=3.8 +python_requires = >=3.10 setup_requires = setuptools_scm install_requires = - astropy>=5.0 + astropy>=5.1 [options.entry_points] baseband.io = diff --git a/tox.ini b/tox.ini index d87c5fd6..a0da882b 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{38,39,310,311}-test{,-alldeps,-oldestdeps,-devdeps,-cov} + py{310,311,312}-test{,-alldeps,-oldestdeps,-devdeps,-cov} build_docs codestyle requires = @@ -34,8 +34,8 @@ description = # The following provides some specific pinnings for key packages deps = - oldestdeps: astropy==5.0.* - oldestdeps: numpy==1.18.* + oldestdeps: astropy==5.1.* + oldestdeps: numpy==1.24.* devdeps: git+https://github.com/numpy/numpy.git#egg=numpy devdeps: git+https://github.com/astropy/astropy.git#egg=astropy