Skip to content

Commit 92aeab4

Browse files
authored
Fix tox "manifest" environment to pass (jpadilla#566)
* Fix tox "manifest" environment to pass The command `tox -e manifest` now passes. Added missing files to the sdist: - .pre-commit-config.yaml - CODE_OF_CONDUCT.md - jwt/py.typed - docs/ Alphabetized MANIFEST.in Moved .flake8 to setup.cfg to avoid the need to include yet another file to MANIFEST.in. Exclude codecov.yml. This is for CI only. * Move check-manifest to a pre-commit hook
1 parent 541dd0d commit 92aeab4

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

.flake8

Lines changed: 0 additions & 3 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ repos:
2828
- id: trailing-whitespace
2929
- id: end-of-file-fixer
3030
- id: debug-statements
31+
32+
- repo: https://github.com/mgedmin/check-manifest
33+
rev: "0.45"
34+
hooks:
35+
- id: check-manifest
36+
args: [--no-build-isolation]

MANIFEST.in

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
include README.rst
1+
include .pre-commit-config.yaml
2+
include CODE_OF_CONDUCT.md
3+
include AUTHORS.rst
24
include CHANGELOG.md
35
include LICENSE
4-
include AUTHORS.rst
6+
include README.rst
57
include tox.ini
8+
include jwt/py.typed
9+
graft docs
610
graft tests
7-
recursive-exclude * __pycache__
11+
exclude codecov.yml
12+
recursive-exclude docs/_build *
813
recursive-exclude * *.py[co]
14+
recursive-exclude * __pycache__

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ exclude =
6363
tests
6464
tests.*
6565

66+
[flake8]
67+
max-line-length = 79
68+
extend-ignore = E203, E501
69+
6670
[mypy]
6771
python_version = 3.6
6872
ignore_missing_imports = true

tox.ini

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ filterwarnings =
1010
python =
1111
3.6: py36
1212
3.7: py37, docs
13-
3.8: py38, lint, manifest, typing
13+
3.8: py38, lint, typing
1414
3.9: py39
1515

1616

@@ -26,7 +26,6 @@ envlist =
2626
typing
2727
py{36,37,38,39}-crypto-{linux,windows}
2828
py{36,37,38,39}-nocrypto-{linux,windows}
29-
manifest
3029
docs
3130
pypi-description
3231
coverage-report
@@ -66,13 +65,6 @@ passenv = HOMEPATH # needed on Windows
6665
commands = pre-commit run --all-files
6766

6867

69-
[testenv:manifest]
70-
basepython = python3.8
71-
deps = check-manifest
72-
skip_install = true
73-
commands = check-manifest
74-
75-
7668
[testenv:pypi-description]
7769
basepython = python3.8
7870
skip_install = true

0 commit comments

Comments
 (0)