Skip to content

Commit

Permalink
Use setuptools-scm to track files in sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Feb 11, 2024
1 parent ec09607 commit e1df9e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
19 changes: 1 addition & 18 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -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
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e1df9e3

Please sign in to comment.