Skip to content

Commit 6d549e6

Browse files
committed
simplify pyproject.toml
And be more explicit about included package data: - make sure that manpage is included in the sdist tar archive - include tests in sdist archive but not in the wheel - eliminate deprecation warnings in newer setuptools versions Since the build.yaml workflow explicitly installs the built system_calls wheel, there is no need to add the current working directory (CWD) to pytest's pythonpath. Furthermore, in case a future update breaks the system_calls wheel creation, the pytest invocation will not detect it, because it imports the package from the working directory and not from the installed location. FWIW, in case you want to explicitly run the tests against the CWD, e.g. during development, you can invoke pytest like this from the CWD: python3 -m pytest -v This works because it adds `.` to the pythonpath, by default, in contrast to the `pytest ...` frontend. closes #131
1 parent 996b70e commit 6d549e6

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include man/syscall.1
2+
include system_calls/tests/*.py

pyproject.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,4 @@ syscall = "system_calls.cli:main"
3131

3232
[tool.setuptools]
3333
packages = ["system_calls", "system_calls.tables"]
34-
35-
[tool.setuptools.package-data]
36-
system_calls = ["share/man/man1", "man/syscall.1"]
37-
38-
[tool.pytest.ini_options]
39-
pythonpath = ["."]
34+
include-package-data = false

0 commit comments

Comments
 (0)