-
Notifications
You must be signed in to change notification settings - Fork 12
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 #110 from ecmwf-ifs/102-install-and-doc
Migrate to pyproject.toml package installation
- Loading branch information
Showing
16 changed files
with
170 additions
and
156 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
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
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 |
---|---|---|
@@ -1,5 +1,31 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 45", | ||
"setuptools >= 61", | ||
"setuptools_scm[toml] >= 6.2", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "lint_rules" | ||
authors = [ | ||
{name = "ECMWF", email = "user_support_section@ecmwf.int"}, | ||
] | ||
description = "Linter rule implementations for loki-lint" | ||
requires-python = ">=3.8" | ||
license = {text = "Apache-2.0"} | ||
dynamic = ["version"] | ||
dependencies = ["loki"] | ||
|
||
[tool.setuptools] | ||
license-files = ["../LICENSE", "../AUTHORS.md"] | ||
packages = ["lint_rules"] | ||
|
||
# Enable SCM versioning | ||
[tool.setuptools_scm] | ||
root = ".." | ||
relative_to = "__file__" | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = [ | ||
"tests" | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,12 +1,90 @@ | ||
# Make sure we use setuptools and have all required dependencies for that | ||
[build-system] | ||
requires = [ | ||
"setuptools >= 45", | ||
"setuptools >= 61", | ||
"wheel", | ||
"setuptools_scm >= 6.2", | ||
"numpy" | ||
"setuptools_scm[toml] >= 6.2", | ||
"numpy<1.24" | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "loki" | ||
authors = [ | ||
{name = "ECMWF", email = "user_support_section@ecmwf.int"}, | ||
] | ||
description = "Experimental Fortran IR to facilitate source-to-source transformations" | ||
requires-python = ">=3.8,<3.12" | ||
license = {text = "Apache-2.0"} | ||
dynamic = ["version", "readme"] | ||
dependencies = [ | ||
"numpy<1.24", # essential for tests, loop transformations and other dependencies | ||
"pymbolic>=2022.1", # essential for expression tree | ||
"PyYAML", # essential for loki-lint | ||
"pcpp", # essential for preprocessing | ||
"more-itertools", # essential for SCC transformation | ||
"click", # essential for CLI scripts | ||
"toml", # essential for scheduler configuration | ||
"networkx", # essential for scheduler and build utilities | ||
"fparser>=0.0.15", # (almost) essential as frontend | ||
"graphviz", # optional for scheduler callgraph | ||
"tqdm", # optional for build utilities | ||
"coloredlogs", # optional for loki-build utility | ||
"junit_xml", # optional for JunitXML output in loki-lint | ||
"codetiming", # essential for scheduler and sourcefile timings | ||
"pydantic<2.0", # type checking for IR nodes | ||
] | ||
|
||
[project.optional-dependencies] | ||
tests = [ | ||
"pytest", | ||
"pytest-cov", | ||
"coverage2clover", | ||
"pylint!=2.11.0,!=2.11.1", | ||
"pandas", | ||
"f90wrap>=0.2.3", | ||
"nbconvert", | ||
] | ||
ofp = [ | ||
"open-fortran-parser @ git+https://github.com/mlange05/open-fortran-parser-xml@mlange05-dev#egg=open-fortran-parser", | ||
] | ||
dace = [ | ||
"dace>=0.11.2", | ||
] | ||
docs = [ | ||
"sphinx", # to build documentation | ||
"recommonmark", # to allow parsing markdown | ||
"sphinx-rtd-theme", # ReadTheDocs theme | ||
"myst-parser", # Markdown parser for sphinx | ||
"nbsphinx", # Jupyter notebook parser for sphinx | ||
"sphinx-design", # Add panels, cards and dropdowns for sphinx | ||
] | ||
examples = [ | ||
"jupyter", | ||
"ipyparams", | ||
] | ||
|
||
[project.scripts] | ||
"loki-transform.py" = "scripts.loki_transform:cli" | ||
"loki-lint.py" = "scripts.loki_lint:cli" | ||
|
||
[tool.setuptools] | ||
license-files = ["LICENSE", "AUTHORS.md"] | ||
packages = ["loki", "scripts"] | ||
|
||
[tool.setuptools.dynamic] | ||
# version = {attr = "loki.__version__"} | ||
readme = {file = ["README.md", "INSTALL.md"], content-type = "test/markdown"} | ||
|
||
# [tool.setuptools.packages.find] | ||
# where = ["."] | ||
# include = ["loki", "scripts"] | ||
# exclude = ["tests", "transformations", "lint_rules"] | ||
|
||
# Enable SCM versioning | ||
[tool.setuptools_scm] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = [ | ||
"tests" | ||
] |
Oops, something went wrong.