Skip to content

Commit

Permalink
build: uses setuptool_scm for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
gnikit committed Apr 1, 2024
1 parent 5fd63ca commit b47cfdc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
[build-system]
requires = ["setuptools>=42", "scikit-build>=0.13", "cmake>=3.18", "ninja"]
requires = [
"setuptools>=42",
"scikit-build>=0.13",
"cmake>=3.18",
"ninja",
"setuptools_scm>=8",
]
build-backend = "setuptools.build_meta"

[project]
name = "pymmg"
version = "0.1.0"
license = { text = "LGPL-3.0-or-later" }
authors = [{ name = "gnikit" }]
requires-python = ">=3.7"
Expand All @@ -27,7 +32,7 @@ classifiers = [
"Topic :: Scientific/Engineering",
"Topic :: Utilities",
]
dynamic = ["entry-points", "scripts"]
dynamic = ["version", "entry-points", "scripts"]

[project.urls]
Homepage = "https://www.mmgtools.org/"
Expand All @@ -38,6 +43,9 @@ Dicsussions = "https://forum.mmgtools.org/"
[project.optional-dependencies]
all = ["meshio[all]"]

[tool.setuptools_scm]
write_to = "src/general/_version.py"

[tool.cibuildwheel]
build = "cp311-*" # build wheels only for one Python version
skip = "pp*" # skip all pypy builds
Expand Down

0 comments on commit b47cfdc

Please sign in to comment.