Skip to content

Commit

Permalink
Merge pull request #36 from gnikit/feat/automatic-versioning
Browse files Browse the repository at this point in the history
build: uses setuptool_scm for versioning
  • Loading branch information
gnikit authored Apr 1, 2024
2 parents f810408 + b47cfdc commit 7f2cc56
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ dist/
_skbuild/
__pycache__/

wheelhouse/
MANIFEST.in

*.egg-info
src/mmgs/mmgs_O3
src/mmg2d/mmg2d_O3
src/mmg3d/mmg3d_O3
src/**/_version.py
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 7f2cc56

Please sign in to comment.