Skip to content

Commit 640f55a

Browse files
authored
Update for pyroma 5.0 (#9093)
2 parents d560320 + f4d86e4 commit 640f55a

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

MANIFEST.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ include LICENSE
1313
include Makefile
1414
include tox.ini
1515
graft Tests
16+
graft Tests/images
1617
graft checks
1718
graft patches
1819
graft src
@@ -28,8 +29,19 @@ exclude .editorconfig
2829
exclude .readthedocs.yml
2930
exclude codecov.yml
3031
exclude renovate.json
32+
exclude Tests/images/README.md
33+
exclude Tests/images/crash*.tif
34+
exclude Tests/images/string_dimension.tiff
3135
global-exclude .git*
3236
global-exclude *.pyc
3337
global-exclude *.so
3438
prune .ci
3539
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

Tests/test_image_access.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,3 +315,6 @@ def test_embeddable(self) -> None:
315315
process = subprocess.Popen(["embed_pil.exe"], env=env)
316316
process.communicate()
317317
assert process.returncode == 0
318+
319+
def teardown_method(self) -> None:
320+
os.remove("embed_pil.c")

Tests/test_pyroma.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from __future__ import annotations
22

3-
from importlib.metadata import metadata
4-
53
import pytest
64

75
from PIL import __version__
@@ -11,7 +9,7 @@
119

1210
def test_pyroma() -> None:
1311
# Arrange
14-
data = pyroma.projectdata.map_metadata_keys(metadata("Pillow"))
12+
data = pyroma.projectdata.get_data(".")
1513

1614
# Act
1715
rating = pyroma.ratings.rate(data)

0 commit comments

Comments
 (0)