From 04effb2744ff7b7e2b23fd79121f1bd2b3a7fc8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Tue, 19 Nov 2024 18:27:32 +0100 Subject: [PATCH] BLD: exclude tests, docs and dev-only configuration files from published artifacts --- .gitignore | 1 + pyproject.toml | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index eff628bf..4fbfd10a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ __pycache__ .python-version .ipynb_checkpoints .coverage +htmlcov # temp files *\# diff --git a/pyproject.toml b/pyproject.toml index a1442eb4..2c25ac0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,18 @@ nonos = "nonos.main:main" [project.urls] Homepage = "https://github.com/volodia99/nonos" +[tool.hatch.build.targets.sdist] +exclude = [ + "tests", + ".github", + "docs", + "mkdocs.yml", + "_typos.toml", + ".readthedocs.yaml", + ".pre-commit-config.yaml", + ".gitignore", +] + [tool.ruff.lint] exclude = [ "*__init__.py",