-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from alexfikl/update-build-system
Update build system to pyproject.toml
- Loading branch information
Showing
3 changed files
with
80 additions
and
25 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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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" |