diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..093956f --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,3 @@ +# Keep the depletion chain xml files out of the sdist, they are downloaded +# from github on demand by download_chain rather than shipped in the package +exclude src/openmc_data/depletion/*.xml diff --git a/pyproject.toml b/pyproject.toml index 84bf8d0..10569a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,6 +43,14 @@ tests = [ [tool.setuptools] package-dir = {"" = "src"} +# The chain xml files in src/openmc_data/depletion are tracked in git so that +# they can be fetched with download_chain (see urls_xml.py), but they are far +# too big to ship in the distributions, so only the json data files are +# included as package data. +include-package-data = false + +[tool.setuptools.package-data] +"openmc_data.depletion" = ["*.json"] [project.scripts] convert_fendl = "openmc_data.convert.convert_fendl:main"