Skip to content

Commit b778bd7

Browse files
committed
build: switch from setup.py to pyproject.toml
1 parent c894e85 commit b778bd7

File tree

6 files changed

+58
-47
lines changed

6 files changed

+58
-47
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ sphinx:
2121
python:
2222
install:
2323
- requirements: requirements-dev.txt
24-
- method: setuptools
24+
- method: pip
2525
path: .

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dev-install_conda:
3131

3232
tests:
3333
make pythoncheck
34-
$(PYTHON) setup.py test
34+
pytest
3535

3636
doc:
3737
cd docs && rm -rf source/api/generated && rm -rf source/gallery &&\

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
displayName: 'Install prerequisites and library'
6565
6666
- script: |
67-
python setup.py test
67+
pytest
6868
condition: succeededOrFailed()
6969
displayName: 'Run tests'
7070
@@ -93,7 +93,7 @@ jobs:
9393
displayName: 'Install prerequisites and library'
9494
9595
- script: |
96-
python setup.py test
96+
pytest
9797
condition: succeededOrFailed()
9898
displayName: 'Run tests'
9999

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["setuptools", "setuptools-scm"]
3+
build-backend = "setuptools.build_meta"

setup.cfg

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,56 @@
1+
[metadata]
2+
name = pyproximal
3+
fullname = PyProximal
4+
description = Python library implementing proximal operators to solve non-smooth, constrained convex problems with proximal algorithms
5+
long_description = file: README.md
6+
long_description_content_type = text/markdown
7+
author = The PyLops Development Team
8+
author_email = [email protected]
9+
maintainer = "Matteo Ravasi"
10+
maintainer_email = [email protected]
11+
license = LGPL-3.0 License
12+
license_file = LICENSE.md
13+
platform = any
14+
keywords = algebra, inverse problems, proximal, convex optimization, large-scale optimization
15+
classifiers =
16+
Development Status :: 5 - Production/Stable
17+
Intended Audience :: Developers
18+
Intended Audience :: Science/Research
19+
Intended Audience :: Education
20+
License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3),
21+
Natural Language :: English
22+
Operating System :: OS Independent
23+
Programming Language :: Python :: 3 :: Only
24+
Programming Language :: Python :: 3.8
25+
Programming Language :: Python :: 3.9
26+
Programming Language :: Python :: 3.10
27+
Topic :: Scientific/Engineering : Mathematics
28+
url = https://github.com/pylops/pyproximal
29+
30+
project_urls =
31+
Documentation = https://pyproximal.readthedocs.io/
32+
Release Notes = https://github.com/pylops/pyproximal/releases
33+
Bug Tracker = https://github.com/pylops/pyproximal/issues
34+
Source Code = https://github.com/pylops/pyproximal
35+
36+
[options]
37+
zip_safe = True
38+
include_package_data = True
39+
packages = find:
40+
python_requires = >=3.8
41+
install_requires =
42+
numpy >= 1.15.0
43+
scipy >= 1.8.0
44+
pylops >= 2.0.0
45+
46+
[options.extras_require]
47+
advanced =
48+
llvmlite
49+
numba
50+
151
[aliases]
252
test=pytest
353

454
[tool:pytest]
555
addopts = --verbose
6-
python_files = pytests/*.py
56+
python_files = pytests/*.py

setup.py

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

0 commit comments

Comments
 (0)