Skip to content

Commit

Permalink
Moved from setup.cfg to pyproject.toml, modernized CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanDunfield committed Nov 18, 2024
1 parent 27cb0c7 commit c2b4857
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 38 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
os: [ubuntu-latest, windows-latest, macos-12, macos-latest]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/[email protected]
env:
# Skip Python 2.7 and 3.5, 32 bit Linux, and PyPy.
CIBW_SKIP: cp27-* cp35-* *-manylinux_i686 *musllinux* pp*
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
CIBW_REPAIR_WHEEL_COMMAND_LINUX: auditwheel repair --strip -w {dest_dir} {wheel}
CIBW_TEST_COMMAND: python -m low_index.test
uses: pypa/[email protected]

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: low_index-wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
39 changes: 36 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "low_index"
dynamic = ["version"]
description = "Enumerates low index subgroups of a finitely presented group"
readme = "README.rst"
requires-python = ">=3.8"
authors = [
{name = "Marc Culler", email = "[email protected]"},
{name = "Nathan M. Dunfield", email = "[email protected]"},
{name = "Matthias Goerner", email = "[email protected]"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: OS Independent",
"Programming Language :: C++",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Mathematics",
]

[project.urls]
Homepage = "https://github.com/3-manifolds/low_index"

[tool.setuptools.dynamic]
version = {attr = "low_index.__version__"}

[tool.cibuildwheel]
build = "cp38* cp39* cp310* cp311* cp312* cp313*"
skip = "*musllinux*"
archs = "auto64"
test-command = "python -m low_index.test"

[tool.cibuildwheel.linux]
repair-wheel-command = "auditwheel repair --strip -w {dest_dir} {wheel}"
25 changes: 0 additions & 25 deletions setup.cfg

This file was deleted.

0 comments on commit c2b4857

Please sign in to comment.