Skip to content

Commit

Permalink
Merge pull request #5 from alexfikl/update-build-system
Browse files Browse the repository at this point in the history
Update build system to pyproject.toml
  • Loading branch information
Wrzlprmft authored Nov 21, 2024
2 parents ec343ec + 04498e1 commit e6239dd
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 25 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [ 'master' ]
pull_request:
branches: [ 'master' ]
schedule:
# at 12:00 on Sunday (UTC)
- cron: '0 12 * * 0'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
name: Unittest ({{ matrix.os}}/py${{ matrix.python-version }})
runs-on: {{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.6', '3.10', '3.x']
fail-fast: false
steps:
- uses: actions/checkout@v4
-
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Main Script
run: |
python -m pip install --upgrade pip setuptools setuptools-scm wheel
python -m pip install --verbose --no-build-isolation --editable .
python -m unittest discover -b -f tests
45 changes: 45 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=64",
"setuptools-scm>=7",
]

[project]
name = "CHSPy"
dynamic = ["version"]
description = "Cubic Hermite splines"
readme = "README.md"
license = { text = "BSD-3-Clause" }
authors = [
{ name = "Gerrit Ansmann", email = "[email protected]" },
]
requires-python = ">=3.6"
classifiers = [
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
]
dependencies = [
"numpy",
]

[project.optional-dependencies]
test = [
"symengine"
]

[project.urls]
Documentation = "https://chspy.readthedocs.io"
Homepage = "https://github.com/neurophysik/CHSPy"

[tool.setuptools.packages.find]
include = [
"chspy*",
]

[tool.setuptools_scm]
version_file = "chspy/version.py"
25 changes: 0 additions & 25 deletions setup.py

This file was deleted.

0 comments on commit e6239dd

Please sign in to comment.