From ed4f58e3badb7656e35283b69a5e0a92fdbbce03 Mon Sep 17 00:00:00 2001 From: sigma67 Date: Tue, 21 Mar 2023 22:30:39 +0100 Subject: [PATCH] add proper excludes, pytest config --- MANIFEST.in | 11 +++++++++++ pyproject.toml | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 000000000..bf7d7cc75 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,11 @@ +prune */__pycache__ +prune *.egg-info +prune rst2pdf/examples +prune rst2pdf/tests +prune rst2pdf/ezsetup +prune snap +prune doc +prune .* +exclude .* +exclude *.md +exclude *.txt diff --git a/pyproject.toml b/pyproject.toml index 102c55602..7b0f74a3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,9 +71,6 @@ where = ["rst2pdf"] 'templates/*tmpl' ] -[tool.setuptools.exclude-package-data] -rst2pdf = ['ez_setup', 'examples', 'tests'] - [tool.black] line-length = 88 target-version = ['py36'] @@ -92,6 +89,9 @@ exclude = ''' ) ''' +[tool.pytest.ini_options] +testpaths = ["rst2pdf/tests"] + [tool.tox] legacy_tox_ini = """ [tox]