Skip to content

Commit 1a75b4b

Browse files
committed
setup.py -> pyproject.toml
1 parent b23b45e commit 1a75b4b

File tree

7 files changed

+354
-59
lines changed

7 files changed

+354
-59
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ jobs:
2121
python -c "import sys; assert sys.version.startswith('${{ matrix.python-version }}.')"
2222
- name: Install Python package
2323
run: |
24-
$PIP_INSTALL .
25-
- name: Install test dependencies
26-
run: |
27-
$PIP_INSTALL -r tests/requirements.txt
24+
$PIP_INSTALL --group test .
2825
- name: Run pytest
2926
run: |
3027
python -m pytest

.readthedocs.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ build:
66
jobs:
77
post_checkout:
88
- git fetch --unshallow || true
9-
python:
10-
install:
11-
- requirements: doc/requirements.txt
12-
- method: pip
13-
path: .
9+
install:
10+
- pip install --upgrade pip
11+
- pip install --group doc .
1412
sphinx:
1513
configuration: doc/conf.py
1614
formats:

MANIFEST.in

Lines changed: 0 additions & 6 deletions
This file was deleted.

pyproject.toml

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
11
[build-system]
2-
requires = ["setuptools >= 40.8.0"]
2+
requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "splines"
7+
license = "MIT"
8+
dynamic = ["version"]
9+
description = "Splines in Euclidean Space and Beyond"
10+
readme = "README.rst"
11+
keywords = ["splines", "curves", "interpolation", "quaternions"]
12+
authors = [{ name = "Matthias Geier", email = "Matthias.Geier@gmail.com" }]
13+
classifiers = [
14+
"Intended Audience :: Education",
15+
"Intended Audience :: Science/Research",
16+
"Operating System :: OS Independent",
17+
"Programming Language :: Python",
18+
"Programming Language :: Python :: 3",
19+
]
20+
requires-python = ">=3.7"
21+
dependencies = ["numpy"]
22+
23+
[project.urls]
24+
Documentation = "https://splines.readthedocs.io/"
25+
Repository = "https://github.com/AudioSceneDescriptionFormat/splines/"
26+
Issues = "https://github.com/AudioSceneDescriptionFormat/splines/issues"
27+
28+
[dependency-groups]
29+
dev = [{ include-group = "test" }, { include-group = "doc" }]
30+
test = ["pytest"]
31+
doc = [
32+
"insipid-sphinx-theme",
33+
"nbsphinx",
34+
"ipython!=8.7.0", # see https://github.com/spatialaudio/nbsphinx/issues/687
35+
"ipykernel",
36+
"SymPy>=1.9",
37+
"SciPy",
38+
"matplotlib>=2.1",
39+
"sphinxcontrib-bibtex>=2.1",
40+
"sphinx-last-updated-by-git",
41+
"sphinx-codeautolink",
42+
]
43+
44+
[tool.setuptools.dynamic]
45+
version = { attr = "splines.__version__" }

setup.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

tests/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)