forked from RomanHargrave/displaycal
-
Notifications
You must be signed in to change notification settings - Fork 61
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 #343 from eoyilmaz/336-build-install-fail
336 build install fail
- Loading branch information
Showing
6 changed files
with
118 additions
and
61 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
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 |
---|---|---|
|
@@ -35,3 +35,6 @@ install_script = util/DisplayCAL_postinstall.py | |
|
||
[install] | ||
record = INSTALLED_FILES | ||
|
||
[black] | ||
line-length = 88 |
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,21 @@ | ||
# -*- coding: utf-8 -+- | ||
import os | ||
import pytest | ||
|
||
from DisplayCAL.setup import get_data | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"tgt_dir, key, pkgname, subkey, excludes", [ | ||
["DisplayCAL", "doc", None, None, ["LICENSE.txt"]] | ||
] | ||
) | ||
def test_get_data_returns_relative_paths( | ||
tgt_dir, key, pkgname, subkey, excludes | ||
): | ||
"""DisplayCAL.setup.get_data() returns relative paths.""" | ||
result = get_data(tgt_dir, key, pkgname, subkey, excludes) | ||
all_paths = [] | ||
for r in result: | ||
all_paths += r[1] | ||
assert all([not os.path.isabs(path) for path in all_paths]) |