Skip to content

Commit c2e3631

Browse files
committed
Add MANIFEST.in
At the moment, it's more flexible than setuptools' configuration
1 parent 18e90f7 commit c2e3631

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
!.gitignore
33
!.travis.yml
44

5-
# The migrations are built each time
6-
tests/migrations/
7-
85
# Temporary, DB binary files
96
*~
107
*.db

MANIFEST.in

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include LICENSE MANIFEST.in *.md *.rst *.toml *.yml *.ini *.cfg
2+
3+
recursive-include docs *
4+
recursive-include src/rest_framework_jwt *
5+
recursive-include tests *
6+
7+
recursive-exclude * __pycache__
8+
recursive-exclude * *.py[co]
9+
recursive-exclude html *
10+
recursive-exclude demo *
11+
recursive-exclude changelog.d *

setup.cfg

-6
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,6 @@ install_requires =
4141
Django>=1.11
4242
djangorestframework>=3.7
4343

44-
[options.package_data]
45-
* = *.md, *.rst, LICENSE, pyproject.toml, setup.cfg, setup.py
46-
47-
[options.exclude_package_data]
48-
* = __pycache__, *.py[co]
49-
5044
[options.extras_require]
5145
dev =
5246
tox

tox.ini

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
docs,
3+
docs,manifest,
44
py{27,34,35,36,37}-dj111-drf{37,38,39}-codecov
55
py{34,35,36,37}-dj20-drf{37,38,39}-codecov
66
py{35,36,37}-dj21-drf{37,38,39,310}-codecov
@@ -58,6 +58,12 @@ commands =
5858
python -V
5959
towncrier {posargs}
6060

61+
[testenv:manifest]
62+
basepython = python3
63+
deps = check-manifest
64+
skip_install = true
65+
commands = check-manifest
66+
6167
[testenv:make-release]
6268
description = build the changelog, bump the package version, commit and tag
6369
basepython=python2.7

0 commit comments

Comments
 (0)