mirror of
https://github.com/danieldemus/pyp2spec.git
synced 2026-07-27 21:00:37 +02:00
No more raising errors when detected licenses are invalid
This commit is contained in:
@@ -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"""
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user