-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Drop support for Python 3.7 * Update GitHub workflow
- Loading branch information
Showing
3 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" }, | ||
] | ||
|
@@ -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", | ||
|
@@ -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" \ | ||
|