From e1df9e3d5f9eaff2ddf6a6b77cd0978c89e11c68 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sun, 11 Feb 2024 22:51:25 +0000 Subject: [PATCH] Use setuptools-scm to track files in sdist --- MANIFEST.in | 19 +------------------ pyproject.toml | 7 ++++++- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index e2fcaa3..643c189 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,24 +1,7 @@ -include LICENSE -include LICENSE.dexie -include README.md -include pyproject.toml - -include package.json -include ts*.json -include webpack.config.js -include yarn.lock +# setuptools-scm includes all source controlled files graft jupyter_offlinenotebook/static # Javascript files -graft src -graft style prune **/node_modules prune lib - -# Patterns to exclude from any directory -global-exclude *~ -global-exclude *.pyc -global-exclude *.pyo -global-exclude .git -global-exclude .ipynb_checkpoints diff --git a/pyproject.toml b/pyproject.toml index 9f8d582..a7cd0a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,12 @@ requires = [ "jupyter_packaging~=0.12.3", "jupyterlab~=4.0", # jlpm is used to build static js - "setuptools>=40.8.0", + "setuptools>=60", + "setuptools-scm>=8", "wheel" ] build-backend = "setuptools.build_meta" + +[tool.setuptools_scm] +# Used to ensure all files are packaged in the sdist +# This is not used for versioning