Merge pull request #893 from henryiii/henryiii/fix/manifest

fix: produce working SDists, check in CI
This commit is contained in:
Joe Rickerby
2021-10-26 18:29:43 +01:00
committed by GitHub
4 changed files with 33 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.3
- run: pipx run nox -s check_manifest
test:
name: Test cibuildwheel on ${{ matrix.os }}
+6
View File
@@ -0,0 +1,6 @@
recursive-include cibuildwheel *.cfg
recursive-include cibuildwheel *.in
recursive-include cibuildwheel *.py
recursive-include cibuildwheel *.toml
recursive-include cibuildwheel *.txt
recursive-include cibuildwheel *.typed
+11 -1
View File
@@ -4,7 +4,7 @@ from pathlib import Path
import nox
nox.options.sessions = ["lint", "tests"]
nox.options.sessions = ["lint", "check_manifest", "tests"]
PYTHON_ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
@@ -34,6 +34,16 @@ def lint(session: nox.Session) -> None:
session.run("pre-commit", "run", "--all-files", *session.posargs)
@nox.session
def check_manifest(session: nox.Session) -> None:
"""
Ensure all needed files are included in the manifest.
"""
session.install("check-manifest")
session.run("check-manifest", *session.posargs)
@nox.session(python=PYTHON_ALL_VERSIONS)
def update_constraints(session: nox.Session) -> None:
"""
+15
View File
@@ -67,3 +67,18 @@ ignore_missing_imports = true
[tool.pycln]
all = true
[tool.check-manifest]
ignore = [
".*",
".circleci/**",
"test/**",
"unit_test/**",
"docs/**",
"examples/**",
"bin/**",
"*.yml",
"CI.md", # TODO: can change test/test_ssl and remove this
"requirements-dev.txt",
"noxfile.py",
]