Skip to content

Commit

Permalink
v2.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Mar 10, 2023
2 parents 44cace3 + a83d739 commit 4c6d0a4
Show file tree
Hide file tree
Showing 14 changed files with 905 additions and 25 deletions.
1 change: 0 additions & 1 deletion .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ jobs:
- PlatformTesting
with:
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
requirements: -r build/requirements.txt
artifact: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).package_all }}

Release:
Expand Down
3 changes: 0 additions & 3 deletions build/requirements.txt

This file was deleted.

8 changes: 6 additions & 2 deletions doc/Dependency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ the mandatory dependencies too.
+--------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------+----------------------+
| `pytest-benchmark <https://GitHub.com/ionelmc/pytest-benchmark>`__ | ≥4.0.0 | `BSD 2-Clause <https://GitHub.com/ionelmc/pytest-benchmark/blob/master/LICENSE>`__ | *Not yet evaluated.* |
+--------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------+----------------------+
| `Coverage <https://GitHub.com/nedbat/coveragepy>`__ | ≥7.1 | `Apache License, 2.0 <https://GitHub.com/nedbat/coveragepy/blob/master/LICENSE.txt>`__ | *Not yet evaluated.* |
| `Coverage <https://GitHub.com/nedbat/coveragepy>`__ | ≥7.2 | `Apache License, 2.0 <https://GitHub.com/nedbat/coveragepy/blob/master/LICENSE.txt>`__ | *Not yet evaluated.* |
+--------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------+----------------------+
| `mypy <https://GitHub.com/python/mypy>`__ |0.990 | `MIT <https://GitHub.com/python/mypy/blob/master/LICENSE>`__ | *Not yet evaluated.* |
| `mypy <https://GitHub.com/python/mypy>`__ |1.0.1 | `MIT <https://GitHub.com/python/mypy/blob/master/LICENSE>`__ | *Not yet evaluated.* |
+--------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------+----------------------+
| `lxml <https://GitHub.com/lxml/lxml>`__ | ≥4.9 | `BSD 3-Clause <https://GitHub.com/lxml/lxml/blob/master/LICENSE.txt>`__ | *Not yet evaluated.* |
+--------------------------------------------------------------------+-------------+----------------------------------------------------------------------------------------+----------------------+
Expand Down Expand Up @@ -120,6 +120,10 @@ the mandatory dependencies too.
+-------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
| `Sphinx <https://GitHub.com/sphinx-doc/sphinx>`__ | ≥5.3.0 | `BSD 3-Clause <https://GitHub.com/sphinx-doc/sphinx/blob/master/LICENSE>`__ | *Not yet evaluated.* |
+-------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
| `sphinxcontrib-mermaid <https://GitHub.com/mgaitan/sphinxcontrib-mermaid>`__ | ≥0.8.1 | `BSD <https://GitHub.com/mgaitan/sphinxcontrib-mermaid/blob/master/LICENSE.rst>`__ | *Not yet evaluated.* |
+-------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
| `autoapi <https://GitHub.com/carlos-jenkins/autoapi>`__ | ≥2.0.1 | `Apache License, 2.0 <https://GitHub.com/carlos-jenkins/autoapi/blob/master/LICENSE>`__ | *Not yet evaluated.* |
+-------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
| `sphinx_btd_theme <https://GitHub.com/buildthedocs/sphinx.theme>`__ | ≥0.5.2 | `MIT <https://GitHub.com/buildthedocs/sphinx.theme/blob/master/LICENSE>`__ | *Not yet evaluated.* |
+-------------------------------------------------------------------------------------------------+--------------+----------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------+
| !! `sphinx_fontawesome <https://GitHub.com/fraoustin/sphinx_fontawesome>`__ | ≥0.0.6 | `GPL 2.0 <https://GitHub.com/fraoustin/sphinx_fontawesome/blob/master/LICENSE>`__ | *Not yet evaluated.* |
Expand Down
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sphinx >=5.3, <6.0
# Sphinx Extenstions
#sphinx.ext.coverage
#sphinxcontrib-actdiag>=0.8.5
sphinxcontrib-mermaid>=0.7.1
sphinxcontrib-mermaid>=0.8.1
#sphinxcontrib-seqdiag>=0.8.5
#sphinxcontrib-textstyle>=0.2.1
#sphinxcontrib-spelling>=2.2.0
Expand Down
13 changes: 10 additions & 3 deletions pyTooling/Common/Platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ class Platform(metaclass=ExtendedType, singleton=True):
class Platforms(Flag):
Unknown = 0

OS_BSD = auto() #: Operating System: BSD (Unix).
OS_Linux = auto() #: Operating System: Linux.
OS_MacOS = auto() #: Operating System: macOS.
OS_Windows = auto() #: Operating System: Windows.

OperatingSystem = OS_Linux | OS_MacOS | OS_Windows #: Mask: Any operating system.
OperatingSystem = OS_BSD | OS_Linux | OS_MacOS | OS_Windows #: Mask: Any operating system.

SEP_WindowsPath = auto() #: Seperator: Path element seperator (e.g. for directories).
SEP_WindowsValue = auto() #: Seperator: Value seperator in variables (e.g. for paths in PATH).
Expand All @@ -75,6 +76,7 @@ class Platforms(Flag):
Arch_Arm = ARCH_AArch64 #: Mask: Any Arm architecture.
Architecture = Arch_x86 | Arch_Arm #: Mask: Any architecture.

FreeBSD = OS_BSD | ENV_Native | ARCH_x86_64 #: Group: native FreeBSD on x86-64.
Linux = OS_Linux | ENV_Native | ARCH_x86_64 #: Group: native Linux on x86-64.
MacOS = OS_MacOS | ENV_Native | ARCH_x86_64 #: Group: native macOS on x86-64.
Windows = OS_Windows | ENV_Native | ARCH_x86_64 | SEP_WindowsPath | SEP_WindowsValue #: Group: native Windows on x86-64.
Expand All @@ -86,7 +88,7 @@ class Platforms(Flag):
Clang32 = auto() #: MSYS2 Runtime: Clang32.
Clang64 = auto() #: MSYS2 Runtime: Clang64.

MSYS2_Runtime = MSYS | MinGW32 | MinGW64 | UCRT64 | Clang32 | Clang64 #: Mask: Any MSYS2 runtime environment.
MSYS2_Runtime = MSYS | MinGW32 | MinGW64 | UCRT64 | Clang32 | Clang64 #: Mask: Any MSYS2 runtime environment.

Windows_MSYS2_MSYS = OS_Windows | ENV_MSYS2 | ARCH_x86_64 | MSYS #: Group: MSYS runtime running on Windows x86-64
Windows_MSYS2_MinGW32 = OS_Windows | ENV_MSYS2 | ARCH_x86_64 | MinGW32 #: Group: MinGW32 runtime running on Windows x86-64
Expand Down Expand Up @@ -152,7 +154,7 @@ def __init__(self):
if sysconfig_platform == "linux-x86_64": # native Linux x86_64; Windows 64 + WSL
self._platform |= self.Platforms.ARCH_x86_64
elif sysconfig_platform == "linux-aarch64": # native Linux Aarch64
self._platform |= self.Platforms.ARCH_x86_32
self._platform |= self.Platforms.ARCH_AArch64
else:
raise Exception(f"Unknown architecture '{sysconfig_platform}' for a native Linux.")

Expand Down Expand Up @@ -194,6 +196,11 @@ def __init__(self):
else:
raise Exception(f"Unknown architecture '{machine}' for Cygwin on Windows.")

elif sys_platform.startswith("freebsd"):
if machine == "amd64":
self._platform = self.Platforms.FreeBSD
else:
raise Exception(f"Unknown architecture '{machine}' for FreeBSD.")
else:
raise Exception(f"Unknown POSIX platform '{sys_platform}'.")
else:
Expand Down
4 changes: 2 additions & 2 deletions pyTooling/Common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
__email__ = "Paebbels@gmail.com"
__copyright__ = "2017-2022, Patrick Lehmann"
__license__ = "Apache License, Version 2.0"
__version__ = "2.12.3"
__keywords__ = ["decorators", "meta classes", "exceptions", "platform", "versioning", "licensing", "overloading",
__version__ = "2.13.0"
__keywords__ = ["decorators", "meta-classes", "exceptions", "platform", "versioning", "licensing", "overloading",
"singleton", "tree", "graph", "timer", "data structure", "setuptools", "wheel", "installation",
"packaging", "path", "generic path", "generic library", "url"]

Expand Down

0 comments on commit 4c6d0a4

Please sign in to comment.