Skip to content

Commit

Permalink
Add pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 committed Dec 23, 2023
1 parent c0b8ead commit f1b1838
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions pvgmsh/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import gmsh
import pyvista as pv
from pvgmsh._version import __version__ # noqa: F401


def generate_mesh(surf):
Expand Down
14 changes: 14 additions & 0 deletions pvgmsh/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Version info for fe2pv.
On the ``main`` branch, use 'dev0' to denote a development version.
For example:
version_info = 0, 1, 'dev0'
---
When generating pre-release wheels, use '0rcN', for example:
version_info = 0, 2, '0rc1'
Denotes the first release candidate.
"""
# major, minor, patch
version_info = 0, 0, "dev0"

# Nice string for the version
__version__ = ".".join(map(str, version_info))
20 changes: 20 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[build-system]
requires = [
'gmsh',
'meshio',
'pyvista',
'setuptools',
]
build-backend = 'setuptools.build_meta'

[project]
name = "pyvista-gmsh"
dynamic = ['version']
dependencies = [
'gmsh',
'meshio',
'pyvista',
]

[tool.setuptools.dynamic]
version = {attr = 'pvgmsh.__version__'}

0 comments on commit f1b1838

Please sign in to comment.