File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ include LICENSE
13
13
include Makefile
14
14
include tox.ini
15
15
graft Tests
16
+ graft Tests/images
16
17
graft checks
17
18
graft patches
18
19
graft src
@@ -28,8 +29,19 @@ exclude .editorconfig
28
29
exclude .readthedocs.yml
29
30
exclude codecov.yml
30
31
exclude renovate.json
32
+ exclude Tests/images/README.md
33
+ exclude Tests/images/crash*.tif
34
+ exclude Tests/images/string_dimension.tiff
31
35
global-exclude .git*
32
36
global-exclude *.pyc
33
37
global-exclude *.so
34
38
prune .ci
35
39
prune wheels
40
+ prune winbuild/build
41
+ prune winbuild/depends
42
+ prune Tests/errors
43
+ prune Tests/images/jpeg2000
44
+ prune Tests/images/msp
45
+ prune Tests/images/picins
46
+ prune Tests/images/sunraster
47
+ prune Tests/test-images
Original file line number Diff line number Diff line change @@ -315,3 +315,6 @@ def test_embeddable(self) -> None:
315
315
process = subprocess .Popen (["embed_pil.exe" ], env = env )
316
316
process .communicate ()
317
317
assert process .returncode == 0
318
+
319
+ def teardown_method (self ) -> None :
320
+ os .remove ("embed_pil.c" )
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- from importlib .metadata import metadata
4
-
5
3
import pytest
6
4
7
5
from PIL import __version__
11
9
12
10
def test_pyroma () -> None :
13
11
# Arrange
14
- data = pyroma .projectdata .map_metadata_keys ( metadata ( "Pillow" ) )
12
+ data = pyroma .projectdata .get_data ( "." )
15
13
16
14
# Act
17
15
rating = pyroma .ratings .rate (data )
You can’t perform that action at this time.
0 commit comments