Skip to content

Commit

Permalink
👌 IMPROVE: Switch to using MANIFEST.in
Browse files Browse the repository at this point in the history
Toward ensuring we don't mess up our source distributions.
  • Loading branch information
pradyunsg committed Aug 12, 2020
1 parent fbb8b18 commit c96dbbd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ repos:
rev: stable
hooks:
- id: black

- repo: https://github.com/mgedmin/check-manifest
rev: "0.39"
hooks:
- id: check-manifest
24 changes: 24 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
exclude .binder
recursive-exclude .binder *
exclude docs
recursive-exclude docs *
exclude tests
recursive-exclude tests *

exclude .flake8
exclude .pre-commit-config.yaml
exclude .readthedocs.yml
exclude .boussole.json
exclude noxfile.py

include CHANGELOG.md
include LICENSE
include MANIFEST.in
include README.md

include sphinx_book_theme/theme.conf
recursive-include sphinx_book_theme *.html
recursive-include sphinx_book_theme *.js
recursive-include sphinx_book_theme *.png
recursive-include sphinx_book_theme *.scss
recursive-include sphinx_book_theme *.svg
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@
package_data={
"sphinx_book_theme": [
"theme.conf",
# Templates
"*.html",
"topbar/*.html",
# Static files
"static/*",
"static/images/*",
"topbar/*.html",
]
},
include_package_data=True,
Expand Down

0 comments on commit c96dbbd

Please sign in to comment.