Merge pull request #893 from henryiii/henryiii/fix/manifest
fix: produce working SDists, check in CI
This commit is contained in:
@@ -22,6 +22,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
- uses: pre-commit/action@v2.0.3
|
- uses: pre-commit/action@v2.0.3
|
||||||
|
- run: pipx run nox -s check_manifest
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: Test cibuildwheel on ${{ matrix.os }}
|
name: Test cibuildwheel on ${{ matrix.os }}
|
||||||
|
|||||||
@@ -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
@@ -4,7 +4,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
import nox
|
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"]
|
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)
|
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)
|
@nox.session(python=PYTHON_ALL_VERSIONS)
|
||||||
def update_constraints(session: nox.Session) -> None:
|
def update_constraints(session: nox.Session) -> None:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -67,3 +67,18 @@ ignore_missing_imports = true
|
|||||||
|
|
||||||
[tool.pycln]
|
[tool.pycln]
|
||||||
all = true
|
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",
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user