Skip to content

Commit

Permalink
Move to pyproject.toml package config
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed May 12, 2023
1 parent 0641c91 commit 5704739
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 71 deletions.
69 changes: 69 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,71 @@
[build-system]
requires = [
"setuptools >= 61.0.0",
"setuptools_scm[toml] >= 6.2",
]
build-backend = "setuptools.build_meta"

[project]
name = "boututils"
description = "Python utilities for BOUT++"
readme = "README.md"
authors = [{name = "Ben Dudson"}, {name = "BOUT++ team"}]
license = {file = "LICENSE"}
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
keywords=[
"bout++",
"bout",
"plasma",
"physics",
"data-extraction",
"data-analysis",
"data-visualization",
]
requires-python = ">=3.8"
dependencies = [
"numpy>=1.22.0",
"matplotlib>=3.2.1",
"scipy>=1.4.1",
"netCDF4",
]

[project.optional-dependencies]
tests = [
"pytest",
"pytest-cov",
]
docs = [
"sphinx>=3.4,<5",
]

[project.urls]
Tracker = "https://github.com/boutproject/boututils/issues/"
Documentation = "https://bout-dev.readthedocs.io/en/latest/"
Source = "https://github.com/boutproject/boututils/"

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

[tool.setuptools.dynamic]
version = { attr = "setuptools_scm.get_version" }

[tool.setuptools_scm]
write_to = "boututils/_version.py"

[tool.pytest.ini_options]
addopts = "--cov=boututils"

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
8 changes: 0 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88

[flake8]
max-line-length = 88
extend-ignore = E203, W503, E722
63 changes: 0 additions & 63 deletions setup.py

This file was deleted.

0 comments on commit 5704739

Please sign in to comment.