Skip to content

Commit 65e7c91

Browse files
authored
Add MANIFEST.in file (#110)
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. - Add manifest file - cookiecutter: Add MANIFEST.in file This is a great leap forward for #13.
2 parents e544200 + 8d5a77c commit 65e7c91

File tree

8 files changed

+63
-1
lines changed

8 files changed

+63
-1
lines changed

MANIFEST.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
exclude CODEOWNERS
2+
exclude noxfile.py
3+
recursive-exclude .github *
4+
recursive-exclude tests *
5+
recursive-exclude tests_golden *
6+
recursive-include py *.pyi

RELEASE_NOTES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,20 @@
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

49+
- The distribution package doesn't include tests and other useless files anymore.
50+
4351
- Cookiecutter: Now the CI workflow will checkout the submodules.
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)