diff --git a/.docs/README_template.rst b/.docs/README_template.rst index 1bd6ab5..95de9f2 100644 --- a/.docs/README_template.rst +++ b/.docs/README_template.rst @@ -2,7 +2,7 @@ lib_platform ============ -Version v1.2.9 as of 2023-07-21 see `Changelog`_ +Version v1.2.10 as of 2023-10-13 see `Changelog`_ .. include:: ./badges.rst diff --git a/.docs/badges.rst b/.docs/badges.rst index c47ee67..e29d939 100644 --- a/.docs/badges.rst +++ b/.docs/badges.rst @@ -20,7 +20,10 @@ .. |pypi| image:: https://img.shields.io/pypi/status/lib-platform?label=PyPI%20Package :target: https://badge.fury.io/py/lib_platform -.. |codecov| image:: https://img.shields.io/codecov/c/github/bitranox/lib_platform +.. badge until 2023-10-08: +.. https://img.shields.io/codecov/c/github/bitranox/lib_platform +.. badge from 2023-10-08: +.. |codecov| image:: https://codecov.io/gh/bitranox/lib_platform/graph/badge.svg :target: https://codecov.io/gh/bitranox/lib_platform .. |cc_maintain| image:: https://img.shields.io/codeclimate/maintainability-percentage/bitranox/lib_platform?label=CC%20maintainability diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 6a01b4f..91431cd 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -63,8 +63,8 @@ jobs: RST_INCLUDE_TARGET: "./README.rst" # make Code Coverage Secret available in Environment CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - # make PyPi Password available in Environment - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + # make PyPi API token available in Environment + PYPI_UPLOAD_API_TOKEN: ${{ secrets.PYPI_UPLOAD_API_TOKEN }} strategy: diff --git a/CHANGES.rst b/CHANGES.rst index cf9fb24..eeb0a61 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,11 @@ Changelog - new MINOR version for added functionality in a backwards compatible manner - new PATCH version for backwards compatible bug fixes +v1.2.10 +-------- +2023-10-13: + - patch doctest for osx + v1.2.9 -------- 2023-07-21: diff --git a/README.rst b/README.rst index 4778aaf..59b5312 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ lib_platform ============ -Version v1.2.9 as of 2023-07-21 see `Changelog`_ +Version v1.2.10 as of 2023-10-13 see `Changelog`_ |build_badge| |codeql| |license| |jupyter| |pypi| |pypi-downloads| |black| |codecov| |cc_maintain| |cc_issues| |cc_coverage| |snyk| @@ -26,7 +26,10 @@ Version v1.2.9 as of 2023-07-21 see `Changelog`_ .. |pypi| image:: https://img.shields.io/pypi/status/lib-platform?label=PyPI%20Package :target: https://badge.fury.io/py/lib_platform -.. |codecov| image:: https://img.shields.io/codecov/c/github/bitranox/lib_platform +.. badge until 2023-10-08: +.. https://img.shields.io/codecov/c/github/bitranox/lib_platform +.. badge from 2023-10-08: +.. |codecov| image:: https://codecov.io/gh/bitranox/lib_platform/graph/badge.svg :target: https://codecov.io/gh/bitranox/lib_platform .. |cc_maintain| image:: https://img.shields.io/codeclimate/maintainability-percentage/bitranox/lib_platform?label=CC%20maintainability @@ -266,6 +269,11 @@ Changelog - new MINOR version for added functionality in a backwards compatible manner - new PATCH version for backwards compatible bug fixes +v1.2.10 +-------- +2023-10-13: + - patch doctest for osx + v1.2.9 -------- 2023-07-21: diff --git a/lib_platform/__init__conf__.py b/lib_platform/__init__conf__.py index 5c4cb8a..ade59f8 100644 --- a/lib_platform/__init__conf__.py +++ b/lib_platform/__init__conf__.py @@ -2,7 +2,7 @@ name = 'lib_platform' title = 'some platform related functions, which also work correctly on wine' -version = 'v1.2.9' +version = 'v1.2.10' url = 'https://github.com/bitranox/lib_platform' author = 'Robert Nowotny' author_email = 'bitranox@gmail.com' @@ -16,7 +16,7 @@ def print_info() -> None: some platform related functions, which also work correctly on wine - Version : v1.2.9 + Version : v1.2.10 Url : https://github.com/bitranox/lib_platform Author : Robert Nowotny Email : bitranox@gmail.com""") diff --git a/lib_platform/lib_platform.py b/lib_platform/lib_platform.py index 56b6c07..306c187 100644 --- a/lib_platform/lib_platform.py +++ b/lib_platform/lib_platform.py @@ -50,12 +50,13 @@ def get_hostname() -> str: def _get_fqdn_by_hostname() -> str: """ - Returns fqdn by hostname + Returns fqdn by hostname - will be only used on windows if You use just socket.getfqdn(), it will return 'dslauncher.3ds.com' if Solid Works 3DExperience is installed. this is because they tinker with the loopback address therefore we get hostname --> ip adress --> fqdn - >>> assert _get_fqdn_by_hostname() + >>> if get_is_platform_windows(): \ + assert _get_fqdn_by_hostname() is not None """ _hostname_short = socket.gethostname() diff --git a/pyproject.toml b/pyproject.toml index cf9c153..f2c33da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,11 +26,11 @@ classifiers = [ # dependencies - former setup.cfg "install_requires" # see: https://setuptools.pypa.io/en/latest/userguide/dependency_management.html dependencies = [ - "click", "cli_exit_tools", + "click", "lib_registry", ] -version = "v1.2.9" +version = "v1.2.10" # seems to be not allowed anymore # zip-save = false @@ -60,9 +60,9 @@ test = [ [tool.setuptools.package-data] lib_platform = [ - "py.typed", "*.pyi", "__init__.pyi", + "py.typed", ] [tool.black]