Skip to content

Commit

Permalink
use a pyproject.toml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
paquiteau committed Feb 14, 2024
1 parent 2b1764c commit e28d3db
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 208 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
python -m pip install -r develop.txt
python -m pip install -r docs/requirements.txt
python -m pip install astropy "scikit-image<0.20" scikit-learn matplotlib
python -m pip install tensorflow>=2.4.1
python -m pip install tensorflow>=2.4.1 torch
python -m pip install twine
python -m pip install .
Expand Down
2 changes: 0 additions & 2 deletions .pylintrc

This file was deleted.

14 changes: 0 additions & 14 deletions .pyup.yml

This file was deleted.

5 changes: 0 additions & 5 deletions MANIFEST.in

This file was deleted.

12 changes: 0 additions & 12 deletions develop.txt

This file was deleted.

56 changes: 56 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[project]
name="modopt"
description = 'Modular Optimisation tools for soliving inverse problems.'
version = "1.7.1"
requires-python= ">=3.8"

authors = [{name="Samuel Farrens", email="[email protected]"},
{name="Chaithya GR", email="[email protected]"},
{name="Pierre-Antoine Comby", email="[email protected]"}
]
readme="README.md"
license={file="LICENCE.txt"}

dependencies = ["numpy", "scipy", "tqdm"]

[project.optional-dependencies]
gpu=["torch", "ptwt"]
doc=["myst-parser==0.16.1",
"nbsphinx==0.8.7",
"nbsphinx-link==1.3.0",
"sphinx-gallery==0.11.1",
"sphinxawesome-theme==3.2.1",
"sphinxcontrib-bibtex"]
dev=["black", "pytest<8.0.0", "pytest-cases", "pytest-cov", "pytest-sugar", "ruff"]

[build-system]
requires=["setuptools", "setuptools-scm[toml]", "wheel"]

[tool.setuptools]
packages=["modopt"]

[tool.coverage.run]
omit = ["*tests*", "*__init__*", "*setup.py*", "*_version.py*", "*example*"]

[tool.coverage.report]
precision = 2
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]

[tool.black]

[tool.ruff]

src=["modopt"]
select = ["E", "F", "B", "Q", "UP", "D", "NPY", "RUF"]

[tool.ruff.pydocstyle]
convention="numpy"

[tool.isort]
profile="black"

[tool.pytest.ini_options]
minversion = "6.0"
norecursedirs = ["tests/helpers"]
testpaths=["modopt"]
addopts = ["--verbose", "--cov=modopt", "--cov-report=term-missing", "--cov-report=xml", "--junitxml=pytest.xml"]
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

97 changes: 0 additions & 97 deletions setup.cfg

This file was deleted.

73 changes: 0 additions & 73 deletions setup.py

This file was deleted.

0 comments on commit e28d3db

Please sign in to comment.