Skip to content

Commit

Permalink
Prepare release v1.11 (#234)
Browse files Browse the repository at this point in the history
* Drop support for Python 3.7

* Update GitHub workflow
  • Loading branch information
gmloose authored Jul 26, 2024
1 parent f0eaac8 commit 4c87c0e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 15 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,30 @@ jobs:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-12]
toolchain:
- {compiler: gcc, version: 12}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
# Needed for `setuptools-scm`
fetch-depth: 0

- name: Setup GNU Fortran
uses: modflowpy/install-gfortran-action@v1
id: macos-setup-fortran
- name: Setup Fortran
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
if: runner.os == 'macOS'

- name: Build wheels
uses: pypa/[email protected]
uses: pypa/[email protected]
env:
MACOSX_DEPLOYMENT_TARGET: "12.0"

- name: Upload wheels
uses: actions/upload-artifact@v3
Expand All @@ -37,7 +48,7 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build sdist
run: pipx run build --sdist
Expand All @@ -61,10 +72,10 @@ jobs:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@v1.5.0
- uses: pypa/gh-action-pypi-publish@v1.9.0
with:
user: __token__
password: ${{ secrets.pypi_password }}
# # To test:
# repository_url: https://test.pypi.org/legacy/
# To test:
# repository-url: https://test.pypi.org/legacy/
# password: ${{ secrets.test_pypi_password }}
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Apt install required packages
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ name = "bdsf"
dynamic = ["version"]
description = "Blob Detection and Source Finder"
readme = "README.rst"
requires-python = ">=3.7"
requires-python = ">=3.8"
authors = [
{ name = "David Rafferty", email = "[email protected]" },
]
Expand All @@ -39,7 +39,6 @@ classifiers = [
"Programming Language :: C++",
"Programming Language :: Fortran",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down Expand Up @@ -76,7 +75,7 @@ Documentation = "https://pybdsf.readthedocs.io"
[tool.cibuildwheel]
before-all = "cibuildwheel/before_all.sh"
before-build = "cibuildwheel/before_build.sh"
build = "cp3{7,8,9,10,11,12}-*_x86_64"
build = "cp3{8,9,10,11,12}-*_x86_64"
build-verbosity = 1
environment = """ \
BOOST_VERSION="1.81.0" \
Expand Down

0 comments on commit 4c87c0e

Please sign in to comment.