Skip to content

Commit fa1344d

Browse files
authored
Merge pull request #8 from bitranox/development
v1.2.7
2 parents 59784db + 01c98ce commit fa1344d

File tree

10 files changed

+46
-11
lines changed

10 files changed

+46
-11
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.6 as of 2020-08-08 see `Changelog`_
5+
Version v1.2.7 as of 2020-10-09 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
@@ -1,4 +1,4 @@
1-
|travis_build| |license| |jupyter| |pypi|
1+
|travis_build| |license| |jupyter| |pypi|
22

33
|codecov| |better_code| |cc_maintain| |cc_issues| |cc_coverage| |snyk|
44

@@ -36,3 +36,6 @@
3636

3737
.. |snyk| image:: https://img.shields.io/snyk/vulnerabilities/github/bitranox/lib_platform
3838
:target: https://snyk.io/test/github/bitranox/lib_platform
39+
40+
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
41+
:target: https://github.com/psf/black

.docs/tested_under.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.8-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64
1+
tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.9-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64
22

33
`100% code coverage <https://codecov.io/gh/bitranox/lib_platform>`_, flake8 style checking ,mypy static type checking ,tested under `Linux, macOS, Windows <https://travis-ci.org/bitranox/lib_platform>`_, automatic daily builds and monitoring

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ matrix:
6060
- os: windows
6161
if: true
6262
language: sh
63-
name: "Windows Python 3.8"
63+
name: "Windows Python 3.9"
6464

6565
# oddly a secure password under env: global: causes that choco fails
6666
# so we need to put the option : filter_secrets: false
@@ -71,7 +71,7 @@ matrix:
7171
- chmod -R 0755 /usr/local/lib_bash
7272
- chmod -R +x /usr/local/lib_bash/*.sh
7373
- /usr/local/lib_bash/lib_retry.sh retry choco install python3
74-
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
74+
- export PATH="/c/Python310:/c/Python310/Scripts:/c/Python39:/c/Python39/Scripts:/c/Python38:/c/Python38/Scripts:$PATH"
7575
- export BUILD_DOCS="False"
7676
- export DEPLOY_SDIST="False"
7777
- export DEPLOY_WHEEL="False"
@@ -119,7 +119,7 @@ matrix:
119119
arch: "amd64"
120120
if: true
121121
language: python
122-
python: "3.8-dev"
122+
python: "3.9-dev"
123123
before_install:
124124
- export BUILD_DOCS="False"
125125
- export DEPLOY_SDIST="True"

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ 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.7
9+
--------
10+
2020-10-09: service release
11+
- update travis build matrix for linux 3.9-dev
12+
- update travis build matrix (paths) for windows 3.9 / 3.10
13+
814
v1.2.6
915
--------
1016
2020-08-08: service release

README.rst

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

44

5-
Version v1.2.6 as of 2020-08-08 see `Changelog`_
5+
Version v1.2.7 as of 2020-10-09 see `Changelog`_
66

77
|travis_build| |license| |jupyter| |pypi|
88

@@ -43,6 +43,9 @@ Version v1.2.6 as of 2020-08-08 see `Changelog`_
4343
.. |snyk| image:: https://img.shields.io/snyk/vulnerabilities/github/bitranox/lib_platform
4444
:target: https://snyk.io/test/github/bitranox/lib_platform
4545

46+
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
47+
:target: https://github.com/psf/black
48+
4649
some platform related functions, which also work correctly on wine
4750

4851
----
@@ -52,7 +55,7 @@ automated tests, Travis Matrix, Documentation, Badges, etc. are managed with `Pi
5255

5356
Python version required: 3.6.0 or newer
5457

55-
tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.8-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64
58+
tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.9-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64
5659

5760
`100% code coverage <https://codecov.io/gh/bitranox/lib_platform>`_, flake8 style checking ,mypy static type checking ,tested under `Linux, macOS, Windows <https://travis-ci.org/bitranox/lib_platform>`_, automatic daily builds and monitoring
5861

@@ -251,6 +254,12 @@ Changelog
251254
- new MINOR version for added functionality in a backwards compatible manner
252255
- new PATCH version for backwards compatible bug fixes
253256

257+
v1.2.7
258+
--------
259+
2020-10-09: service release
260+
- update travis build matrix for linux 3.9-dev
261+
- update travis build matrix (paths) for windows 3.9 / 3.10
262+
254263
v1.2.6
255264
--------
256265
2020-08-08: service release

lib_platform/__init__conf__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = 'lib_platform'
22
title = 'some platform related functions, which also work correctly on wine'
3-
version = 'v1.2.6'
3+
version = 'v1.2.7'
44
url = 'https://github.com/bitranox/lib_platform'
55
author = 'Robert Nowotny'
66
author_email = '[email protected]'
@@ -14,7 +14,7 @@ def print_info() -> None:
1414
1515
some platform related functions, which also work correctly on wine
1616
17-
Version : v1.2.6
17+
Version : v1.2.7
1818
Url : https://github.com/bitranox/lib_platform
1919
Author : Robert Nowotny
2020
Email : [email protected]""")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def get_line_data(line: str) -> str:
8686

8787
setup_kwargs: Dict[str, Any] = dict()
8888
setup_kwargs["name"] = "lib_platform"
89-
setup_kwargs["version"] = "v1.2.6"
89+
setup_kwargs["version"] = "v1.2.7"
9090
setup_kwargs["url"] = "https://github.com/bitranox/lib_platform"
9191
setup_kwargs["packages"] = find_packages()
9292
setup_kwargs["package_data"] = {"lib_platform": ["py.typed", "*.pyi", "__init__.pyi"]}

tests/local_testscripts/lib_bash_functions.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,18 @@ function cleanup() {
114114
}
115115

116116

117+
function run_black() {
118+
# run black for *.py files
119+
my_banner "running black with settings from ${project_root_dir}/pyproject.toml"
120+
if ! python3 -m black "${project_root_dir}"/**/*.py; then
121+
my_banner_warning "black ERROR"
122+
beep
123+
sleep "${sleeptime_on_error}"
124+
return 1
125+
fi
126+
}
127+
128+
117129
function run_flake8_tests() {
118130
# run flake8, settings from setup.cfg
119131
my_banner "running flake8 with settings from ${project_root_dir}/setup.cfg"

tests/local_testscripts/run_testloop.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ project_root_dir="${project_root_dir}"
1313
DO_FLAKE8_TESTS="True"
1414
DO_MYPY_TESTS="True"
1515
DO_PYTEST="True"
16+
DO_BLACK="False"
1617
# cleanup on cntrl-c
1718
trap cleanup EXIT
1819

@@ -24,6 +25,10 @@ function pytest_loop {
2425
banner "Project Root Dir: ${project_root_dir}"
2526
cleanup
2627

28+
if [ "${DO_BLACK}" == "True" ]; then
29+
if ! run_black; then continue; fi
30+
fi
31+
2732
# we prefer to run tests on its own, not within pytest, due to shaky and outdated pytest plugins
2833
if [ "${DO_FLAKE8_TESTS}" == "True" ]; then
2934
if ! run_flake8_tests; then continue; fi

0 commit comments

Comments
 (0)