Skip to content

Commit 9ff91b8

Browse files
committed
fix: Exclude the appmap test files (#271)
* Exclude the appmap test files * Update glob to exclude more files * Include the necessary files only for the sdist exclude them otherwise * Use a lower working version of pytest-django * Update the tox config correctly
1 parent 7246453 commit 9ff91b8

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

pyproject.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,18 @@ classifiers = [
2121
'Topic :: Software Development :: Debuggers',
2222
'Topic :: Software Development :: Documentation'
2323
]
24-
include = ['appmap.pth']
24+
25+
include = [
26+
'appmap.pth',
27+
{ path = '_appmap/test/**/*', format = 'sdist' }
28+
]
29+
2530
exclude = ['_appmap/wrapt']
2631

2732
packages = [
28-
{ include = "appmap"}, {include = "_appmap" }, {include = "_appmap/wrapt", from = "vendor"}
33+
{ include = "appmap" },
34+
{ include = "_appmap/*.py" },
35+
{ include = "_appmap/wrapt/**/*", from = "vendor" }
2936
]
3037

3138
[tool.poetry.dependencies]
@@ -49,6 +56,7 @@ httpretty = "^1.0.5"
4956
pytest = "^6.1.2"
5057
pytest-randomly = "^3.5.0"
5158
pylint = "^2.6.0"
59+
pytest-django = "~ 4.5.2"
5260
flake8 = "^3.8.4"
5361
pyfakefs = "^4.3.2"
5462
pprintpp = ">=0.4.0"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ allowlist_externals =
1010
poetry
1111

1212
deps=
13-
pytest-django
13+
pytest-django >=4.5.2, <4.6
1414
web: Django >=4.0, <5.0
1515
web: Flask >= 2
1616
flask1: -rrequirements-flask1.txt

0 commit comments

Comments
 (0)