Skip to content

Commit 401ff25

Browse files
committed
Convert setup.py to pyproject.toml
1 parent 5a5ec1e commit 401ff25

2 files changed

Lines changed: 57 additions & 62 deletions

File tree

pyproject.toml

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,58 @@
11
[build-system]
2-
requires = ["setuptools", "wheel"]
2+
requires = ["setuptools>=61", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "openmc-plotter"
7+
dynamic = ["version"]
8+
authors = [
9+
{ name = "OpenMC Development Team", email = "openmc@anl.gov" },
10+
]
11+
license = "MIT"
12+
description = "Plotting tool for OpenMC models and tally data"
13+
readme = "README.md"
14+
classifiers = [
15+
"Development Status :: 4 - Beta",
16+
"Intended Audience :: Developers",
17+
"Intended Audience :: End Users/Desktop",
18+
"Intended Audience :: Science/Research",
19+
"Natural Language :: English",
20+
"Topic :: Scientific/Engineering",
21+
"Programming Language :: Python :: 3",
22+
"Programming Language :: Python :: 3.10",
23+
"Programming Language :: Python :: 3.11",
24+
"Programming Language :: Python :: 3.12",
25+
"Programming Language :: Python :: 3.13",
26+
]
27+
requires-python = ">=3.10"
28+
dependencies = [
29+
"openmc>=0.15.0",
30+
"numpy",
31+
"matplotlib",
32+
"PySide6",
33+
]
34+
35+
[project.optional-dependencies]
36+
test = ["pytest", "pytest-qt"]
37+
vtk = ["vtk"]
38+
39+
[project.urls]
40+
"Homepage" = "https://github.com/openmc-dev/plotter"
41+
"Download" = "https://github.com/openmc-dev/plotter"
42+
"Issue Tracker" = "https://github.com/openmc-dev/plotter/issues"
43+
"Source Code" = "https://github.com/openmc-dev/plotter"
44+
45+
[project.scripts]
46+
openmc-plotter = "openmc_plotter.__main__:main"
47+
48+
[tool.setuptools]
49+
include-package-data = true
50+
51+
[tool.setuptools.packages.find]
52+
include = ["openmc_plotter*"]
53+
54+
[tool.setuptools.package-data]
55+
openmc_plotter = ["assets/*.png"]
56+
57+
[tool.setuptools.dynamic]
58+
version = { attr = "openmc_plotter.__version__" }

setup.py

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

0 commit comments

Comments
 (0)