-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #283 from snek5000/doc/copier-template
Doc/copier template
- Loading branch information
Showing
5 changed files
with
90 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Changes here will be overwritten by Copier | ||
_commit: 23.04.1 | ||
_src_path: gh://snek5000/template-snek5000-solver | ||
author: Ashwin Vishnu | ||
ci: none | ||
description: An empty solver to demonstrate the packaging layout of a typical Snek5000 | ||
solver | ||
kth_framework: false | ||
package_name: snek5000_canonical | ||
project_name: snek5000-canonical | ||
short_name: canonical |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[build-system] | ||
requires = ["setuptools"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "snek5000_canonical" | ||
version = "0.0.1" | ||
description = "An empty solver to demonstrate the packaging layout of a typical Snek5000 solver" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = {file = "LICENSE"} | ||
authors = [ | ||
{name = "Ashwin Vishnu" } | ||
] | ||
keywords = ["Snek5000", "Fluidsim", "Nek5000", "CFD"] | ||
dependencies = [ | ||
"snek5000 >= 0.9.0" | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"nox", | ||
"pytest", | ||
"pytest-cov" | ||
] | ||
|
||
[project.entry-points."snek5000.solvers"] | ||
canonical = "snek5000_canonical.solver" | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.package-data] | ||
snek5000_canonical = ["*.usr.f", "*.par.cfg", "Snakefile", "etc/*.yml"] | ||
|
||
[tool.coverage.run] | ||
source = ["snek5000_canonical", "./tests"] | ||
data_file = ".coverage/coverage" | ||
omit = [ | ||
"*/try_*.py", | ||
"*/_old_*.py", | ||
"tests/test_slow_*.py", | ||
] | ||
|
||
[tool.coverage.report] | ||
show_missing = true | ||
exclude_lines = [ | ||
"if __name__ == .__main__.:", | ||
'if "sphinx" in sys.modules:', | ||
"raise ValueError", | ||
"raise NotImplementedError", | ||
"except KeyError:", | ||
"except ImportError:", | ||
"except AttributeError:", | ||
"except NotImplementedError:" | ||
] | ||
|
||
[tool.coverage.html] | ||
directory = ".coverage/html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters