diff --git a/.github/workflows/ci_workflows.yml b/.github/workflows/ci_workflows.yml index b7a51f4..38fdde3 100644 --- a/.github/workflows/ci_workflows.yml +++ b/.github/workflows/ci_workflows.yml @@ -70,29 +70,29 @@ jobs: - name: Test without optional deps os: ubuntu-latest - python: 3.9 - toxenv: py39-test + python: '3.12' + toxenv: py312-test - name: Coverage test with remote data os: ubuntu-latest - python: '3.10' - toxenv: py310-test-alldeps-cov + python: '3.11' + toxenv: py311-test-alldeps-cov toxposargs: --remote-data - name: Test with dev dependencies os: ubuntu-latest - python: '3.12' - toxenv: py312-test-devdeps + python: '3.13' + toxenv: py313-test-devdeps - name: Test with old dependencies - os: ubuntu-20.04 - python: 3.9 - toxenv: py39-test-oldestdeps + os: ubuntu-latest + python: '3.10' + toxenv: py310-test-oldestdeps - name: Test in OSX os: macos-latest - python: '3.10' - toxenv: py310-test + python: '3.12' + toxenv: py312-test # NOTE: If TRDS cannot take the hit, disable --remote-data - name: Test in Windows with remote data diff --git a/.github/workflows/open_actions.yml b/.github/workflows/open_actions.yml deleted file mode 100644 index e1bc804..0000000 --- a/.github/workflows/open_actions.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: When Opened - -on: - issues: - types: - - opened - pull_request_target: - types: - - opened - -jobs: - triage: - runs-on: ubuntu-latest - steps: - - name: Label PR - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 - if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request' - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - - name: 'Comment Draft PR' - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 - if: github.event.pull_request.draft == true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - await github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: '👋 Thank you for your draft pull request! Do you know that you can use `[ci skip]` or `[skip ci]` in your commit messages to skip running continuous integration tests until you are ready?' - }) - - name: Special comment - uses: pllim/action-special_pr_comment@5126c189c02418a55448480b28efd1a00af48d7b # 0.2 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGES.rst b/CHANGES.rst index 7ddf399..f8080fa 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,9 @@ -1.3.1 (unreleased) +1.4.0 (2024-11-19) ================== +- Bumped minimum supported versions for Python to 3.10, + ``numpy`` to 1.23, ``astropy`` to 6.0, and ``scipy`` to 1.9. [#201] + 1.3.0 (2023-11-28) ================== diff --git a/docs/index.rst b/docs/index.rst index 75e35be..9f874f1 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -41,7 +41,7 @@ reported) or contact `STScI Help Desk `_. Installation and Setup ====================== -**stsynphot** works for Python 3.9 or later only. It requires the following +**stsynphot** works for Python 3.10 or later only. It requires the following packages: * numpy diff --git a/setup.cfg b/setup.cfg index a3c3773..c8b0aad 100644 --- a/setup.cfg +++ b/setup.cfg @@ -16,9 +16,6 @@ filterwarnings = ignore:.*Column disp option ignore:BlackBody provides the same capabilities ignore:The MexicanHat1D class is deprecated - # Ignore numpy 2.0 warning, see https://github.com/astropy/astropy/pull/15495 - # and https://github.com/scipy/scipy/pull/19275 - ignore:.*numpy\.core.*:DeprecationWarning [metadata] name = stsynphot @@ -48,12 +45,12 @@ zip_safe = False setup_requires = setuptools_scm install_requires = - numpy>=1.20 - astropy>=5 - scipy>=1.6 + numpy>=1.23 + astropy>=6 + scipy>=1.9 synphot>=1.1 beautifulsoup4 -python_requires = >=3.9 +python_requires = >=3.10 [options.extras_require] all = diff --git a/tox.ini b/tox.ini index dbe8805..ee130a2 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{39,310,311,312}-test{,-alldeps,-oldestdeps,-devdeps,-predeps}{,-cov} + py{310,311,312,313}-test{,-alldeps,-oldestdeps,-devdeps,-predeps}{,-cov} codestyle twine bandit @@ -36,9 +36,9 @@ deps = # The oldestdeps factor is intended to be used to install the oldest versions of all # dependencies that have a minimum version. - oldestdeps: numpy==1.20.* - oldestdeps: scipy==1.6.* - oldestdeps: astropy==5.0.* + oldestdeps: numpy==1.23.* + oldestdeps: scipy==1.9.* + oldestdeps: astropy==6.0.* oldestdeps: attrs < 24.1.0 # ASDF_LT_3_4 oldestdeps: asdf==2.14.* oldestdeps: synphot==1.1.*