Skip to content

Commit

Permalink
build: switch from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 committed Sep 30, 2023
1 parent 0e5fb0b commit c586d49
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 55 deletions.
47 changes: 47 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[build-system]
requires = [
"setuptools>=60",
"setuptools-scm>=8.0"]

[project]
name = "pylops"
authors = [
{name = "Matteo Ravasi", email = "[email protected]"},
]
description = "Python library implementing linear operators to allow solving large-scale optimization problems without requiring to explicitly create a dense (or sparse) matrix."
readme = "README.md"
requires-python = ">=3.7"
keywords = ["algebra", "inverse problems", "large-scale optimization"]
license.file = "LICENSE.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
"Natural Language :: English",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Mathematics",
]
dynamic = ["version", ]
dependencies = [
"numpy >= 1.21.0",
"scipy >= 1.4.0",
"pylops >= 1.17.0",
"setuptools >= 61.2.0",
]
[project.optional-dependencies]
advanced = ["llvmlite",
"numba",
"pyfftw",
"PyWavelets",
"scikit-fmm",
"spgl1",
]

[tool.setuptools.packages.find]
where = ["pylops"]
namespaces = false

[tool.setuptools_scm]
version_file = "pylops/version.py"
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ matplotlib
ipython
pytest
pytest-runner
setuptools_scm<8.0.0
setuptools_scm
docutils<0.18
Sphinx
pydata-sphinx-theme
Expand Down
54 changes: 0 additions & 54 deletions setup.py

This file was deleted.

0 comments on commit c586d49

Please sign in to comment.