Skip to content

Commit 8d5a77c

Browse files
committed
cookiecutter: Add MANIFEST.in file
This makes sure that we don't ship useless files when building the distribution package and that we include all the relevant files too, like generated *.pyi files for API repositories. This is a great leap forward for #13. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent dc277d3 commit 8d5a77c

File tree

7 files changed

+55
-1
lines changed

7 files changed

+55
-1
lines changed

RELEASE_NOTES.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,18 @@
3232

3333
## New Features
3434

35-
- Cookiecutter: Add a new GitHub workflow to check that release notes were updated.
35+
### Cookietutter template
36+
37+
- Add a new GitHub workflow to check that release notes were updated.
3638

3739
This workflow will check PRs to see if a change was done in the `src/` directory, and if so, it will fail if the `RELEASE_NOTES.md` wasn't also updated.
3840

3941
Users can override this by assigning the label `cmd:skip-release-notes` to the PR for changes that don't really need a release notes update.
4042

43+
- Add `MANIFEST.in` file.
44+
45+
This makes sure that we don't ship useless files when building the distribution package and that we include all the relevant files too, like generated *.pyi files for API repositories.
46+
4147
## Bug Fixes
4248

4349
- The distribution package doesn't include tests and other useless files anymore.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
exclude .gitignore
2+
{%- if cookiecutter.type == "api" %}
3+
exclude .gitmodules
4+
{%- endif %}
5+
exclude CODEOWNERS
6+
exclude noxfile.py
7+
recursive-exclude .github *
8+
{%- if cookiecutter.type == "api" %}
9+
recursive-exclude pytests *
10+
{%- else %}
11+
recursive-exclude tests *
12+
{%- endif %}
13+
recursive-include py *.pyi
14+
{%- if cookiecutter.type == "api" %}
15+
recursive-include submodules *.proto
16+
{%- endif %}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exclude .gitignore
2+
exclude CODEOWNERS
3+
exclude noxfile.py
4+
recursive-exclude .github *
5+
recursive-exclude tests *
6+
recursive-include py *.pyi
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
exclude .gitignore
2+
exclude .gitmodules
3+
exclude CODEOWNERS
4+
exclude noxfile.py
5+
recursive-exclude .github *
6+
recursive-exclude pytests *
7+
recursive-include py *.pyi
8+
recursive-include submodules *.proto
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exclude .gitignore
2+
exclude CODEOWNERS
3+
exclude noxfile.py
4+
recursive-exclude .github *
5+
recursive-exclude tests *
6+
recursive-include py *.pyi
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exclude .gitignore
2+
exclude CODEOWNERS
3+
exclude noxfile.py
4+
recursive-exclude .github *
5+
recursive-exclude tests *
6+
recursive-include py *.pyi
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exclude .gitignore
2+
exclude CODEOWNERS
3+
exclude noxfile.py
4+
recursive-exclude .github *
5+
recursive-exclude tests *
6+
recursive-include py *.pyi

0 commit comments

Comments
 (0)