No more raising errors when detected licenses are invalid

This commit is contained in:
Karolina Surma
2024-10-22 17:52:24 +02:00
parent db7f375440
commit e997edff90
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -15,10 +15,6 @@ from pyp2spec.license_processor import license_keyword_to_spdx_identifiers, good
from pyp2spec.utils import Pyp2specError
class NoLicenseDetectedError(Pyp2specError):
"""Raised when there's no valid license detected"""
class SdistNotFoundError(Pyp2specError):
"""Raised when there's no sdist file in the PyPI metadata"""
+1 -1
View File
@@ -11,7 +11,7 @@ except ImportError:
import tomli as tomllib
from pyp2spec.pyp2conf import PypiPackage, create_config_contents
from pyp2spec.pyp2conf import convert_version_to_rpm_scheme, NoLicenseDetectedError, PackageNotFoundError
from pyp2spec.pyp2conf import convert_version_to_rpm_scheme, PackageNotFoundError
def test_non_existent_package(betamax_session):