Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3220 from lioman/centralize-python-information
- Loading branch information
Showing
14 changed files
with
176 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ htmlcov | |
venv | ||
samples/output | ||
*.pem | ||
poetry.lock | ||
*.lock | ||
.pdm-python |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
def pytest_addoption(parser): | ||
parser.addoption( | ||
"--check-wheel", | ||
action="store", | ||
default=False, | ||
help="Check wheel contents.", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from pathlib import Path | ||
import pytest | ||
from zipfile import ZipFile | ||
|
||
|
||
@pytest.mark.skipif( | ||
"not config.getoption('--check-wheel')", | ||
reason="Only run when --check-wheel is given", | ||
) | ||
def test_wheel_contents(pytestconfig): | ||
""" | ||
This test, should test the contents of the wheel to make sure, | ||
that everything that is needed is included in the final build | ||
""" | ||
wheel_file = pytestconfig.getoption("--check-wheel") | ||
assert wheel_file.endswith(".whl") | ||
files_list = ZipFile(wheel_file).namelist() | ||
## Check is theme files are copiedto wheel | ||
simple_theme = Path("./pelican/themes/simple/templates") | ||
for x in simple_theme.iterdir(): | ||
assert str(x) in files_list | ||
|
||
## Check is tool templatesare copiedto wheel | ||
tools = Path("./pelican/tools/templates") | ||
for x in tools.iterdir(): | ||
assert str(x) in files_list | ||
|
||
assert "pelican/tools/templates/tasks.py.jinja2" in files_list |
Oops, something went wrong.