From a5592478406f6ebb05aae9dc9e0a13d161186c43 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 28 Sep 2023 21:12:28 +0530 Subject: [PATCH] Set up MANIFEST.in --- MANIFEST.in | 6 ++++++ pyproject.toml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000000..24ae488d04 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,6 @@ +graft pybamm +prune tests + +exclude CHANGELOG.md CODE-OF-CONDUCT.md CONTRIBUTING.md GOVERNANCE.md CMakeLists.txt + +global-exclude __pycache__ *.py[cod] .venv diff --git a/pyproject.toml b/pyproject.toml index b58fe11370..c928b2f6e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -159,6 +159,7 @@ include-package-data = true # List of files to include as package data. These are mainly the parameter CSV files in # the input/parameters/ subdirectories. Other files such as the CITATIONS file, relevant # README.md files, and specific .txt files inside the pybamm/ directory are also included. +# These are specified to be included in the SDist through MANIFEST.in. [tool.setuptools.package-data] pybamm = [ "*.txt", @@ -170,4 +171,4 @@ pybamm = [ ] [tool.setuptools.packages.find] -include = ["pybamm", "pybamm.*"] +include = ["pybamm"]