Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build system to pyproject.toml #5

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.