From 2e417a59eab85f09554b8c3b85980b73ab9d9f14 Mon Sep 17 00:00:00 2001 From: Omkar Phansopkar Date: Sat, 14 Oct 2023 15:32:14 +0530 Subject: [PATCH] Added pyproject.toml & updated readthedocs config Signed-off-by: Omkar Phansopkar --- docs/.readthedocs.yml => .readthedocs.yml | 5 +-- pyproject.toml | 52 +++++++++++++++++++++++ 2 files changed, 54 insertions(+), 3 deletions(-) rename docs/.readthedocs.yml => .readthedocs.yml (89%) create mode 100644 pyproject.toml diff --git a/docs/.readthedocs.yml b/.readthedocs.yml similarity index 89% rename from docs/.readthedocs.yml rename to .readthedocs.yml index be0c8060..56c359b3 100644 --- a/docs/.readthedocs.yml +++ b/.readthedocs.yml @@ -24,6 +24,5 @@ sphinx: python: install: - method: pip - path: . - extra_requirements: - - docs \ No newline at end of file + path: docs + \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..b39aed29 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,52 @@ +[build-system] +requires = ["setuptools >= 50", "wheel", "setuptools_scm[toml] >= 6"] +build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] +# this is used populated when creating a git archive +# and when there is .git dir and/or there is no git installed +fallback_version = "9999.$Format:%h-%cs$" + +[tool.pytest.ini_options] +norecursedirs = [ + ".git", + "bin", + "dist", + "build", + "_build", + "dist", + "etc", + "local", + "ci", + "docs", + "man", + "share", + "samples", + ".cache", + ".settings", + "Include", + "include", + "Lib", + "lib", + "lib64", + "Lib64", + "Scripts", + "thirdparty", + "tmp", + "venv", + "tests/data", + ".eggs", + "src/*/data", + "tests/*/data" +] + +python_files = "*.py" + +python_classes = "Test" +python_functions = "test" + +addopts = [ + "-rfExXw", + "--strict-markers", + "--doctest-modules" +] \ No newline at end of file