Skip to content

Commit

Permalink
Updated the mechanism to retrieve the version according to the instal…
Browse files Browse the repository at this point in the history
…lation type
  • Loading branch information
ShadowXBoss696 committed May 19, 2024
1 parent 5f93a1a commit 0de9a3f
Show file tree
Hide file tree
Showing 10 changed files with 109 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fastboot/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
# 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__
11 changes: 11 additions & 0 deletions fastboot/__main__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 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__":
Expand Down
11 changes: 11 additions & 0 deletions fastboot/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 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
Expand Down
11 changes: 11 additions & 0 deletions fastboot/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 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
Expand Down
11 changes: 11 additions & 0 deletions fastboot/logging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 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
Expand Down
10 changes: 10 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 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.
11 changes: 11 additions & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 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

Expand Down
11 changes: 11 additions & 0 deletions tests/test_logging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 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

Expand Down
11 changes: 11 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 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
Expand Down
11 changes: 11 additions & 0 deletions tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 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
Expand Down

0 comments on commit 0de9a3f

Please sign in to comment.