Skip to content

Commit

Permalink
v1.2.10
Browse files Browse the repository at this point in the history
--------
2023-10-13:
    - patch doctest for osx
  • Loading branch information
bitranox committed Oct 13, 2023
1 parent c74987e commit efa5bfd
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .docs/README_template.rst
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .docs/badges.rst
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions CHANGES.rst
Expand Up @@ -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:
Expand Down
12 changes: 10 additions & 2 deletions README.rst
Expand Up @@ -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|
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions lib_platform/__init__conf__.py
Expand Up @@ -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'
Expand All @@ -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""")
5 changes: 3 additions & 2 deletions lib_platform/lib_platform.py
Expand Up @@ -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()
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Expand Up @@ -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

Expand Down Expand Up @@ -60,9 +60,9 @@ test = [

[tool.setuptools.package-data]
lib_platform = [
"py.typed",
"*.pyi",
"__init__.pyi",
"py.typed",
]

[tool.black]
Expand Down

0 comments on commit efa5bfd

Please sign in to comment.