Skip to content

Commit efa5bfd

Browse files
committed
v1.2.10
-------- 2023-10-13: - patch doctest for osx
1 parent c74987e commit efa5bfd

File tree

8 files changed

+30
-13
lines changed

8 files changed

+30
-13
lines changed

.docs/README_template.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lib_platform
22
============
33

44

5-
Version v1.2.9 as of 2023-07-21 see `Changelog`_
5+
Version v1.2.10 as of 2023-10-13 see `Changelog`_
66

77

88
.. include:: ./badges.rst

.docs/badges.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
.. |pypi| image:: https://img.shields.io/pypi/status/lib-platform?label=PyPI%20Package
2121
:target: https://badge.fury.io/py/lib_platform
2222

23-
.. |codecov| image:: https://img.shields.io/codecov/c/github/bitranox/lib_platform
23+
.. badge until 2023-10-08:
24+
.. https://img.shields.io/codecov/c/github/bitranox/lib_platform
25+
.. badge from 2023-10-08:
26+
.. |codecov| image:: https://codecov.io/gh/bitranox/lib_platform/graph/badge.svg
2427
:target: https://codecov.io/gh/bitranox/lib_platform
2528

2629
.. |cc_maintain| image:: https://img.shields.io/codeclimate/maintainability-percentage/bitranox/lib_platform?label=CC%20maintainability

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ jobs:
6363
RST_INCLUDE_TARGET: "./README.rst"
6464
# make Code Coverage Secret available in Environment
6565
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
66-
# make PyPi Password available in Environment
67-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
66+
# make PyPi API token available in Environment
67+
PYPI_UPLOAD_API_TOKEN: ${{ secrets.PYPI_UPLOAD_API_TOKEN }}
6868

6969

7070
strategy:

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Changelog
55
- new MINOR version for added functionality in a backwards compatible manner
66
- new PATCH version for backwards compatible bug fixes
77

8+
v1.2.10
9+
--------
10+
2023-10-13:
11+
- patch doctest for osx
12+
813
v1.2.9
914
--------
1015
2023-07-21:

README.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lib_platform
22
============
33

44

5-
Version v1.2.9 as of 2023-07-21 see `Changelog`_
5+
Version v1.2.10 as of 2023-10-13 see `Changelog`_
66

77
|build_badge| |codeql| |license| |jupyter| |pypi|
88
|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`_
2626
.. |pypi| image:: https://img.shields.io/pypi/status/lib-platform?label=PyPI%20Package
2727
:target: https://badge.fury.io/py/lib_platform
2828

29-
.. |codecov| image:: https://img.shields.io/codecov/c/github/bitranox/lib_platform
29+
.. badge until 2023-10-08:
30+
.. https://img.shields.io/codecov/c/github/bitranox/lib_platform
31+
.. badge from 2023-10-08:
32+
.. |codecov| image:: https://codecov.io/gh/bitranox/lib_platform/graph/badge.svg
3033
:target: https://codecov.io/gh/bitranox/lib_platform
3134

3235
.. |cc_maintain| image:: https://img.shields.io/codeclimate/maintainability-percentage/bitranox/lib_platform?label=CC%20maintainability
@@ -266,6 +269,11 @@ Changelog
266269
- new MINOR version for added functionality in a backwards compatible manner
267270
- new PATCH version for backwards compatible bug fixes
268271

272+
v1.2.10
273+
--------
274+
2023-10-13:
275+
- patch doctest for osx
276+
269277
v1.2.9
270278
--------
271279
2023-07-21:

lib_platform/__init__conf__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
name = 'lib_platform'
44
title = 'some platform related functions, which also work correctly on wine'
5-
version = 'v1.2.9'
5+
version = 'v1.2.10'
66
url = 'https://github.com/bitranox/lib_platform'
77
author = 'Robert Nowotny'
88
author_email = '[email protected]'
@@ -16,7 +16,7 @@ def print_info() -> None:
1616
1717
some platform related functions, which also work correctly on wine
1818
19-
Version : v1.2.9
19+
Version : v1.2.10
2020
Url : https://github.com/bitranox/lib_platform
2121
Author : Robert Nowotny
2222
Email : [email protected]""")

lib_platform/lib_platform.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,13 @@ def get_hostname() -> str:
5050

5151
def _get_fqdn_by_hostname() -> str:
5252
"""
53-
Returns fqdn by hostname
53+
Returns fqdn by hostname - will be only used on windows
5454
if You use just socket.getfqdn(), it will return 'dslauncher.3ds.com' if Solid Works 3DExperience is installed.
5555
this is because they tinker with the loopback address
5656
therefore we get hostname --> ip adress --> fqdn
5757
58-
>>> assert _get_fqdn_by_hostname()
58+
>>> if get_is_platform_windows(): \
59+
assert _get_fqdn_by_hostname() is not None
5960
6061
"""
6162
_hostname_short = socket.gethostname()

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ classifiers = [
2626
# dependencies - former setup.cfg "install_requires"
2727
# see: https://setuptools.pypa.io/en/latest/userguide/dependency_management.html
2828
dependencies = [
29-
"click",
3029
"cli_exit_tools",
30+
"click",
3131
"lib_registry",
3232
]
33-
version = "v1.2.9"
33+
version = "v1.2.10"
3434
# seems to be not allowed anymore
3535
# zip-save = false
3636

@@ -60,9 +60,9 @@ test = [
6060

6161
[tool.setuptools.package-data]
6262
lib_platform = [
63-
"py.typed",
6463
"*.pyi",
6564
"__init__.pyi",
65+
"py.typed",
6666
]
6767

6868
[tool.black]

0 commit comments

Comments
 (0)