Skip to content

Commit

Permalink
build: switch from setup.py to pyproject.toml (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrava87 authored Oct 13, 2023
1 parent 4199f5b commit f1d856e
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 41 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get history and tags for SCM versioning to work
run: |
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
Expand All @@ -43,7 +47,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Installing Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools
if [ -f requirements.txt ]; then pip install -r requirements-dev.txt; fi
- name: Install pylops-mpi
run: pip install .
Expand Down
44 changes: 44 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[build-system]
requires = [
"setuptools >= 65",
"setuptools_scm[toml]",
"wheel",
]
build-backend = "setuptools.build_meta"

[project]
name = "pylops-mpi"
description = "Python library implementing linear operators with MPI"
readme = "README.md"
authors = [
{name = "Rohan Babbar", email = "[email protected]"},
{name = "Matteo Ravasi", email = "[email protected]"},
]
license = {file = "LICENSE"}
keywords = ["algebra", "inverse problems", "large-scale optimization", "distributed computing",]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering : Mathematics",
]
dependencies = [
"numpy >= 1.15.0",
"scipy >= 1.4.0",
"pylops >= 2.0",
"mpi4py",
"matplotlib",
]
dynamic = ["version"]

[tool.setuptools.packages.find]
exclude = ["pytests"]

[tool.setuptools_scm]
version_file = "pylops_mpi/version.py"
40 changes: 0 additions & 40 deletions setup.py

This file was deleted.

0 comments on commit f1d856e

Please sign in to comment.