Skip to content

Commit 3fc11e5

Browse files
committed
FIX(TEST): remove dirs from PYTEST addopts, so VSCode ...
can launch a single TC (microsoft/vscode-python#8849) + refact(build): mv pytest-ignores from setup.cfg --> conftest.py + doc(build): setup.cfg metadata sample explaining LIC-files for wheels & sdists.
1 parent cd50381 commit 3fc11e5

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
include LICENSE CHANGES.rst
2-

setup.cfg

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Python's setup.cfg for tool defaults:
22
#
3+
[metadata]
4+
## Include CHANGES in wheel
5+
# `license_files` it affects only "wheels" (not "sdists"), and defaults to ~5 files,
6+
# see https://wheel.readthedocs.io/en/stable/user_guide.html#including-license-files-in-the-generated-wheel-file
7+
#license_files = CHANGES.rst LICENSE
8+
39
[bdist_wheel]
410
universal = 1
511

@@ -9,16 +15,17 @@ universal = 1
915
markers =
1016
slow: slow-running tests, run them: with: -m slow OR -m 'slow and not slow'
1117

12-
# TODO: enable doctests in README.
13-
addopts = graphtik/ test/ docs/source/ README.rst
18+
addopts =
19+
--doctest-modules
1420
# Faciltate developer, rum'em all with -m 'slow or not slow'.
1521
-m 'not slow'
16-
# Version-from-sources code in docs/conf/py fails due to different cwd.
22+
# See https://stackoverflow.com/questions/42919871/avoid-no-commands-on-setup-py-with-py-test
23+
--ignore=setup.py
24+
# Version-from-sources trick fails due to different cwd.
1725
--ignore=docs/source/conf.py
1826
--doctest-report ndiff
1927
--doctest-continue-on-failure
2028
# --doctest-ignore-import-errors
21-
--doctest-modules
2229
--doctest-glob=*.md
2330
--doctest-glob=*.rst
2431
--cov-fail-under=80

0 commit comments

Comments
 (0)