Skip to content

Commit

Permalink
v1.2.11
Browse files Browse the repository at this point in the history
---------
2024-09-29:
    - add graalpy tests
  • Loading branch information
bitranox committed Oct 1, 2024
1 parent efa5bfd commit 14a3a1f
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .docs/README_template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lib_platform
============


Version v1.2.10 as of 2023-10-13 see `Changelog`_
Version v1.2.11 as of 2024-10-01 see `Changelog`_


.. include:: ./badges.rst
Expand Down
3 changes: 1 addition & 2 deletions .docs/installation.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
- Before You start, its highly recommended to update pip and setup tools:
- Before You start, its highly recommended to update pip:


.. code-block::
python -m pip --upgrade pip
python -m pip --upgrade setuptools
.. include:: ./installation_via_pypi.rst
Expand Down
2 changes: 1 addition & 1 deletion .docs/tested_under.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
tested on recent linux with python 3.8, 3.9, 3.10, 3.11, 3.12-dev, pypy-3.9, pypy-3.10 - architectures: amd64
tested on recent linux with python 3.8, 3.9, 3.10, 3.11, 3.12, pypy-3.9, pypy-3.10, graalpy-24.1 - architectures: amd64

`100% code coverage <https://codeclimate.com/github/bitranox/lib_platform/test_coverage>`_, flake8 style checking ,mypy static type checking ,tested under `Linux, macOS, Windows <https://github.com/bitranox/lib_platform/actions/workflows/python-package.yml>`_, automatic daily builds and monitoring
29 changes: 21 additions & 8 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

# MYPY tests
MYPY_DO_TESTS: "True"
MYPY_OPTIONS: "--follow-imports=normal --ignore-missing-imports --implicit-reexport --install-types --no-warn-unused-ignores --non-interactive --strict"
MYPY_OPTIONS: "--follow-imports=normal --ignore-missing-imports --install-types --no-warn-unused-ignores --non-interactive --strict"
MYPYPATH: "./.3rd_party_stubs"

# coverage
Expand All @@ -61,11 +61,13 @@ jobs:
RST_INCLUDE_SOURCE: "./.docs/README_template.rst"
# the target file for rst_include (rebuild rst file includes)
RST_INCLUDE_TARGET: "./README.rst"
# make Code Coverage Secret available in Environment
# make Code Climate Code Coverage Secret available in Environment
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
# make CODECOV_TOKEN Secret available in Environment
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# make PyPi API token available in Environment
PYPI_UPLOAD_API_TOKEN: ${{ secrets.PYPI_UPLOAD_API_TOKEN }}

# additional Environment Variables:

strategy:
matrix:
Expand All @@ -74,7 +76,7 @@ jobs:
# https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#available-versions-of-python-and-pypy

- os: windows-latest
python-version: "3.11"
python-version: "3.12"
env:
cEXPORT: "SET"
BUILD_DOCS: "False"
Expand Down Expand Up @@ -133,7 +135,7 @@ jobs:
DO_CLI_TEST: "True"

- os: ubuntu-latest
python-version: "3.12-dev"
python-version: "3.12"
env:
BUILD_DOCS: "True"
BUILD: "True"
Expand Down Expand Up @@ -165,8 +167,19 @@ jobs:
DO_SETUP_INSTALL_TEST: "True"
DO_CLI_TEST: "True"

- os: ubuntu-latest
python-version: "graalpy-24.1"
env:
BUILD_DOCS: "True"
BUILD: "True"
BUILD_TEST: "True"
MYPY_DO_TESTS: "True"
DO_SETUP_INSTALL: "True"
DO_SETUP_INSTALL_TEST: "True"
DO_CLI_TEST: "True"

- os: macos-latest
python-version: "3.11"
python-version: "3.12"
env:
cPREFIX: "" # prefix before commands - used for wine, there the prefix is "wine"
cPYTHON: "python3" # command to launch python interpreter (it's different on macOS, there we need python3)
Expand All @@ -186,11 +199,11 @@ jobs:

steps:
# see : https://github.com/actions/checkout
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setting up Python ${{ matrix.python-version }}
# see: https://github.com/actions/setup-python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
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.11
---------
2024-09-29:
- add graalpy tests

v1.2.10
--------
2023-10-13:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 1990-2023 Robert Nowotny
Copyright (c) 1990-2024 Robert Nowotny

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
12 changes: 8 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lib_platform
============


Version v1.2.10 as of 2023-10-13 see `Changelog`_
Version v1.2.11 as of 2024-10-01 see `Changelog`_

|build_badge| |codeql| |license| |jupyter| |pypi|
|pypi-downloads| |black| |codecov| |cc_maintain| |cc_issues| |cc_coverage| |snyk|
Expand Down Expand Up @@ -63,7 +63,7 @@ automated tests, Github Actions, Documentation, Badges, etc. are managed with `P

Python version required: 3.8.0 or newer

tested on recent linux with python 3.8, 3.9, 3.10, 3.11, 3.12-dev, pypy-3.9, pypy-3.10 - architectures: amd64
tested on recent linux with python 3.8, 3.9, 3.10, 3.11, 3.12, pypy-3.9, pypy-3.10, graalpy-24.1 - architectures: amd64

`100% code coverage <https://codeclimate.com/github/bitranox/lib_platform/test_coverage>`_, flake8 style checking ,mypy static type checking ,tested under `Linux, macOS, Windows <https://github.com/bitranox/lib_platform/actions/workflows/python-package.yml>`_, automatic daily builds and monitoring

Expand Down Expand Up @@ -158,13 +158,12 @@ Usage from Commandline
Installation and Upgrade
------------------------

- Before You start, its highly recommended to update pip and setup tools:
- Before You start, its highly recommended to update pip:


.. code-block::
python -m pip --upgrade pip
python -m pip --upgrade setuptools
- to install the latest release from PyPi via pip (recommended):

Expand Down Expand Up @@ -269,6 +268,11 @@ Changelog
- new MINOR version for added functionality in a backwards compatible manner
- new PATCH version for backwards compatible bug fixes

v1.2.11
---------
2024-09-29:
- add graalpy tests

v1.2.10
--------
2023-10-13:
Expand Down
4 changes: 2 additions & 2 deletions lib_platform/__init__conf__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name = 'lib_platform'
title = 'some platform related functions, which also work correctly on wine'
version = 'v1.2.10'
version = 'v1.2.11'
url = 'https://github.com/bitranox/lib_platform'
author = 'Robert Nowotny'
author_email = '[email protected]'
Expand All @@ -16,7 +16,7 @@ def print_info() -> None:
some platform related functions, which also work correctly on wine
Version : v1.2.10
Version : v1.2.11
Url : https://github.com/bitranox/lib_platform
Author : Robert Nowotny
Email : [email protected]""")
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
"click",
"lib_registry",
]
version = "v1.2.10"
version = "v1.2.11"
# seems to be not allowed anymore
# zip-save = false

Expand Down Expand Up @@ -68,7 +68,7 @@ lib_platform = [
[tool.black]
line-length = 160
#You should include all Python versions that you want your code to run under
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
# Note that you have to use single-quoted strings in TOML for regular expressions
include = '\.pyi?$'
exclude = '/(\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|_build|buck-out|build|dist)/'
Expand Down
2 changes: 1 addition & 1 deletion tests/local_testscripts/lib_bash_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function run_flake8_tests() {

function run_mypy_tests() {
my_banner "mypy tests"
if ! /opt/python3/bin/python3 -m mypy "${project_root_dir}" --follow-imports=normal --ignore-missing-imports --implicit-reexport --install-types --no-warn-unused-ignores --non-interactive --strict; then
if ! /opt/python3/bin/python3 -m mypy "${project_root_dir}" --follow-imports=normal --ignore-missing-imports --install-types --no-warn-unused-ignores --non-interactive --strict; then
my_banner_warning "mypy tests ERROR"
beep
sleep "${sleeptime_on_error}"
Expand Down

0 comments on commit 14a3a1f

Please sign in to comment.