Skip to content

Commit 0bfbd5b

Browse files
committed
fix: produce working SDists
1 parent 4515cd2 commit 0bfbd5b

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

Diff for: .github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- uses: actions/checkout@v2
2323
- uses: actions/setup-python@v2
2424
- uses: pre-commit/[email protected]
25+
- run: pipx run nox -s check_manifest
2526

2627
test:
2728
name: Test cibuildwheel on ${{ matrix.os }}

Diff for: MANIFEST.in

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
recursive-include cibuildwheel *.cfg
2+
recursive-include cibuildwheel *.in
3+
recursive-include cibuildwheel *.py
4+
recursive-include cibuildwheel *.toml
5+
recursive-include cibuildwheel *.txt
6+
recursive-include cibuildwheel *.typed

Diff for: noxfile.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import nox
66

7-
nox.options.sessions = ["lint", "tests"]
7+
nox.options.sessions = ["lint", "check_manifest", "tests"]
88

99
PYTHON_ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
1010

@@ -34,6 +34,16 @@ def lint(session: nox.Session) -> None:
3434
session.run("pre-commit", "run", "--all-files", *session.posargs)
3535

3636

37+
@nox.session
38+
def check_manifest(session: nox.Session) -> None:
39+
"""
40+
Ensure all needed files are included in the manifest.
41+
"""
42+
43+
session.install("check-manifest")
44+
session.run("check-manifest", *session.posargs)
45+
46+
3747
@nox.session(python=PYTHON_ALL_VERSIONS)
3848
def update_constraints(session: nox.Session) -> None:
3949
"""

Diff for: pyproject.toml

+15
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,18 @@ ignore_missing_imports = true
6767

6868
[tool.pycln]
6969
all = true
70+
71+
[tool.check-manifest]
72+
ignore = [
73+
".*",
74+
".circleci/**",
75+
"test/**",
76+
"unit_test/**",
77+
"docs/**",
78+
"examples/**",
79+
"bin/**",
80+
"*.yml",
81+
"CI.md", # TODO: can change test/test_ssl and remove this
82+
"requirements-dev.txt",
83+
"noxfile.py",
84+
]

0 commit comments

Comments
 (0)