Skip to content

Commit

Permalink
Switch to pdm
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinvis committed Feb 4, 2024
1 parent 68c653b commit e23ff35
Show file tree
Hide file tree
Showing 4 changed files with 193 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ docs/_build
# test related
test.rea
test*.f*

# pdm
.pdm-python
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
EXTRA_REQUIRES = ("main", "vtk", "docs", "tests", "types", "dev")

no_venv_session = partial(nox.session, venv_backend="none")
nox.options.sessions = ["tests", "types"]
# nox.options.sessions = ["tests", "types"]


def run_ext(session, cmd):
Expand Down
183 changes: 183 additions & 0 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 6 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
requires = ["pdm-backend"]
build-backend = "pdm.backend"

[project]
name = "pymech"
dynamic = ["version"]
description = "A Python suite of routines for Nek5000 and Simson."
readme = "README.md"
license = "GPL-3.0-or-later"
license = {text = "GPL-3.0-or-later"}
requires-python = ">= 3.9"
authors = [
{ name = "eX-Mech Developers", email = "[email protected]" },
Expand Down Expand Up @@ -74,23 +74,13 @@ dev = [
pymech = "pymech.dataset:PymechXarrayBackend"

[project.urls]
"Bug Tracker" = "https://github.com/eX-Mech/pymech/issues"
"Bug-Tracker" = "https://github.com/eX-Mech/pymech/issues"
Changelog = "https://pymech.readthedocs.io/en/stable/changelog.html"
Documentation = "https://pymech.readthedocs.io/en/stable"
Homepage = "https://github.com/eX-Mech/pymech"

[tool.hatch.build.hooks.vcs]
version-file = "pymech/_version.py"

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.targets.sdist]
include = [
"/pymech",
]

[tool.setuptools_scm]
[tool.pdm.version]
source = "scm"
write_to = "pymech/_version.py"

[tool.coverage.run]
Expand Down

0 comments on commit e23ff35

Please sign in to comment.