Skip to content

Commit c8ee701

Browse files
authored
Merge pull request #3752 from hugovk/update-classifiers
Update Trove licence classifiers
2 parents ed59649 + b21ea99 commit c8ee701

2 files changed

Lines changed: 14 additions & 15 deletions

File tree

Tests/test_pyroma.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
@unittest.skipIf(pyroma is None, "Pyroma is not installed")
1212
class TestPyroma(PillowTestCase):
13-
1413
def test_pyroma(self):
1514
# Arrange
1615
data = pyroma.projectdata.get_data(".")
@@ -19,12 +18,13 @@ def test_pyroma(self):
1918
rating = pyroma.ratings.rate(data)
2019

2120
# Assert
22-
if 'rc' in __version__:
23-
# Pyroma needs to chill about RC versions
24-
# and not kill all our tests.
25-
self.assertEqual(rating, (9, [
26-
"The package's version number does not comply with PEP-386."]))
21+
if "rc" in __version__:
22+
# Pyroma needs to chill about RC versions and not kill all our tests.
23+
self.assertEqual(
24+
rating,
25+
(9, ["The package's version number does not comply with PEP-386."]),
26+
)
2727

2828
else:
29-
# Should have a perfect score
30-
self.assertEqual(rating, (10, []))
29+
# Should have a near-perfect score
30+
self.assertEqual(rating, (9, ["Your package does not have license data."]))

setup.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -765,12 +765,7 @@ def debug_build():
765765
url='http://python-pillow.org',
766766
classifiers=[
767767
"Development Status :: 6 - Mature",
768-
"Topic :: Multimedia :: Graphics",
769-
"Topic :: Multimedia :: Graphics :: Capture :: Digital Camera",
770-
"Topic :: Multimedia :: Graphics :: Capture :: Screen Capture",
771-
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
772-
"Topic :: Multimedia :: Graphics :: Viewers",
773-
"License :: Other/Proprietary License",
768+
"License :: OSI Approved :: Historical Permission Notice and Disclaimer (HPND)", # noqa: E501
774769
"Programming Language :: Python :: 2",
775770
"Programming Language :: Python :: 2.7",
776771
"Programming Language :: Python :: 3",
@@ -779,6 +774,11 @@ def debug_build():
779774
"Programming Language :: Python :: 3.7",
780775
"Programming Language :: Python :: Implementation :: CPython",
781776
"Programming Language :: Python :: Implementation :: PyPy",
777+
"Topic :: Multimedia :: Graphics",
778+
"Topic :: Multimedia :: Graphics :: Capture :: Digital Camera",
779+
"Topic :: Multimedia :: Graphics :: Capture :: Screen Capture",
780+
"Topic :: Multimedia :: Graphics :: Graphics Conversion",
781+
"Topic :: Multimedia :: Graphics :: Viewers",
782782
],
783783
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*",
784784
cmdclass={"build_ext": pil_build_ext},
@@ -789,7 +789,6 @@ def debug_build():
789789
packages=["PIL"],
790790
package_dir={'': 'src'},
791791
keywords=["Imaging", ],
792-
license='Standard PIL License',
793792
zip_safe=not (debug_build() or PLATFORM_MINGW), )
794793
except RequiredDependencyException as err:
795794
msg = """

0 commit comments

Comments
 (0)