diff --git a/fastboot/__init__.py b/fastboot/__init__.py index d72bbe5..aab79a8 100644 --- a/fastboot/__init__.py +++ b/fastboot/__init__.py @@ -1,12 +1 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. - from ._version import __version__ as __version__ diff --git a/fastboot/__main__.py b/fastboot/__main__.py index 8655495..22a1380 100644 --- a/fastboot/__main__.py +++ b/fastboot/__main__.py @@ -1,14 +1,3 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. - import fastboot if __name__ == "__main__": diff --git a/fastboot/_version.py b/fastboot/_version.py index 326795a..0016466 100644 --- a/fastboot/_version.py +++ b/fastboot/_version.py @@ -1,14 +1,3 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. - import importlib.metadata import pathlib import tomllib diff --git a/fastboot/config.py b/fastboot/config.py index 75c203e..e2090f5 100644 --- a/fastboot/config.py +++ b/fastboot/config.py @@ -1,14 +1,3 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. - import os from abc import ABCMeta from collections.abc import Callable diff --git a/fastboot/logging.py b/fastboot/logging.py index e031e0f..ad5e745 100644 --- a/fastboot/logging.py +++ b/fastboot/logging.py @@ -1,14 +1,3 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. - from logging.config import dictConfig, fileConfig from os import path from typing import Any diff --git a/tests/__init__.py b/tests/__init__.py index bb5e132..e69de29 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,10 +0,0 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. diff --git a/tests/test_config.py b/tests/test_config.py index 0fda43b..e0bf127 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,14 +1,3 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. - import math import textwrap diff --git a/tests/test_logging.py b/tests/test_logging.py index 8d961d3..5cbad85 100644 --- a/tests/test_logging.py +++ b/tests/test_logging.py @@ -1,14 +1,3 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. - import logging import uuid diff --git a/tests/test_version.py b/tests/test_version.py index fa7cde0..12cd351 100644 --- a/tests/test_version.py +++ b/tests/test_version.py @@ -1,17 +1,6 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. - import re -import fastboot +from fastboot import __version__ as version SEMANTIC_VERSION_REGEX: re.Pattern[str] = re.compile( "^([0-9]+)\\.([0-9]+)\\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$" @@ -20,10 +9,10 @@ def test_version_info_available() -> None: # Checks if the version string is defined - assert fastboot.version is not None, "Missing application version information" + assert version is not None, "Missing application version information" def test_version_info_follows_semantic_version_spec() -> None: # Checks if the version string follows semantic versioning - follows_semver_spec: bool = SEMANTIC_VERSION_REGEX.match(fastboot.version) is not None + follows_semver_spec: bool = SEMANTIC_VERSION_REGEX.match(version) is not None assert follows_semver_spec, "Application version number does not follow the semantic version specification" diff --git a/tests/utils.py b/tests/utils.py index 6f45cd1..41a0690 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,14 +1,3 @@ -# Copyright (c) 2024 Arpan Mahanty -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. -# -# This file is part of FastBoot released under the MIT license. -# See the LICENSE for more information. - import os from collections.abc import Generator from contextlib import contextmanager