Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch away from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
this is consistent with PEP 517 and 621
zingale committed Apr 22, 2024
1 parent e75ab52 commit 5b4f63c
Showing 2 changed files with 56 additions and 45 deletions.
57 changes: 56 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,61 @@
# pyproject.toml
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"


# project metadata

[project]
name = "pyro-hydro"
description = "A python hydrodynamics code for teaching and prototyping"
readme = "README.md"
license.text = "BSD"
authors = [
{name="pyro development group"},
{email="michael.zingale@stonybrook.edu"},
]
dynamic = ["version"]

dependencies = [
"numba",
"numpy",
"matplotlib",
"h5py",
]

[project.scripts]
"pyro_sim.py" = "pyro.pyro_sim:main"

[project.urls]
Homepage = "https://github.com/python-hydro/pyro2"
Documentation = "https://python-hydro.github.io/pyro2"

# packaging

[tool.setuptools]
zip-safe = false
# we explicitly list the data we want below
include-package-data = false

[tool.setuptools.packages.find]
include = ["pyro*"]
exclude = ["*.tests*"]
namespaces = false

[tool.setuptools.package-data]
# additional files to include when building a wheel
pyro = [
"**/_*.defaults",
"**/inputs*",
"*/tests/*.h5"
]

[tool.setuptools_scm]
version_scheme = "post-release"
version_file = "pyro/_version.py"

# development tools

[tool.pylint."MESSAGES CONTROL"]
disable = [
44 changes: 0 additions & 44 deletions setup.py

This file was deleted.

0 comments on commit 5b4f63c

Please sign in to comment.