Skip to content

Commit bb14312

Browse files
committed
omit mypy option --no-implicit-reexport
1 parent dfca49e commit bb14312

File tree

11 files changed

+42
-24
lines changed

11 files changed

+42
-24
lines changed

.docs/README_template.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ wrapt_timeout_decorator
22
=======================
33

44

5-
Version v1.4.0 as of 2023-07-14 see `Changelog`_
5+
Version v1.4.1 as of 2024-01-10 see `Changelog`_
66

77

88
.. include:: ./badges.rst

.docs/badges.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
.. |pypi| image:: https://img.shields.io/pypi/status/wrapt-timeout-decorator?label=PyPI%20Package
2121
:target: https://badge.fury.io/py/wrapt_timeout_decorator
2222

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

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

.github/workflows/python-package.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ jobs:
4545

4646
# MYPY tests
4747
MYPY_DO_TESTS: "True"
48-
# MYPY_OPTIONS: "--follow-imports=normal --ignore-missing-imports --implicit-reexport --install-types --no-warn-unused-ignores
49-
# --non-interactive --strict"
50-
MYPY_OPTIONS: "--follow-imports=normal --ignore-missing-imports --no-implicit-reexport --install-types --no-warn-unused-ignores --non-interactive --strict"
48+
MYPY_OPTIONS: "--follow-imports=normal --ignore-missing-imports --install-types --no-warn-unused-ignores --non-interactive --strict"
5149
MYPYPATH: "./.3rd_party_stubs"
5250

5351
# coverage
@@ -65,8 +63,8 @@ jobs:
6563
RST_INCLUDE_TARGET: "./README.rst"
6664
# make Code Coverage Secret available in Environment
6765
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
68-
# make PyPi Password available in Environment
69-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
66+
# make PyPi API token available in Environment
67+
PYPI_UPLOAD_API_TOKEN: ${{ secrets.PYPI_UPLOAD_API_TOKEN }}
7068

7169

7270
strategy:
@@ -151,7 +149,7 @@ jobs:
151149
BUILD_DOCS: "False"
152150
BUILD: "True"
153151
BUILD_TEST: "True"
154-
MYPY_DO_TESTS: "False"
152+
MYPY_DO_TESTS: "True"
155153
DO_SETUP_INSTALL: "True"
156154
DO_SETUP_INSTALL_TEST: "True"
157155
DO_CLI_TEST: "True"
@@ -162,7 +160,7 @@ jobs:
162160
BUILD_DOCS: "False"
163161
BUILD: "True"
164162
BUILD_TEST: "True"
165-
MYPY_DO_TESTS: "False"
163+
MYPY_DO_TESTS: "True"
166164
DO_SETUP_INSTALL: "True"
167165
DO_SETUP_INSTALL_TEST: "True"
168166
DO_CLI_TEST: "True"

CHANGES.rst

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
Changelog
22
=========
33

4+
v1.4.1
5+
---------
6+
2024-01-10:
7+
- thanks to `fayak: <https://github.com/fayak>`_
8+
- omit mypy option --no-implicit-reexport
9+
- explicitly export methods in ``__init__.py``
10+
411
v1.4.0
512
---------
613
2023-07-13:

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 1990-2023 Robert Nowotny
3+
Copyright (c) 1990-2024 Robert Nowotny
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.rst

+12-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ wrapt_timeout_decorator
22
=======================
33

44

5-
Version v1.4.0 as of 2023-07-14 see `Changelog`_
5+
Version v1.4.1 as of 2024-01-10 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.4.0 as of 2023-07-14 see `Changelog`_
2626
.. |pypi| image:: https://img.shields.io/pypi/status/wrapt-timeout-decorator?label=PyPI%20Package
2727
:target: https://badge.fury.io/py/wrapt_timeout_decorator
2828

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

3235
.. |cc_maintain| image:: https://img.shields.io/codeclimate/maintainability-percentage/bitranox/wrapt_timeout_decorator?label=CC%20maintainability
@@ -941,6 +944,13 @@ This software is licensed under the `MIT license <http://en.wikipedia.org/wiki/M
941944
Changelog
942945
=========
943946

947+
v1.4.1
948+
---------
949+
2024-01-10:
950+
- thanks to `fayak: <https://github.com/fayak>`_
951+
- omit mypy option --no-implicit-reexport
952+
- explicitly export methods in ``__init__.py``
953+
944954
v1.4.0
945955
---------
946956
2023-07-13:

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ classifiers = [
2727
# see: https://setuptools.pypa.io/en/latest/userguide/dependency_management.html
2828
dependencies = [
2929
"cli_exit_tools",
30-
"lib_detect_testenv",
31-
"dill>0.3.0,!=0.3.5,!=0.3.5.1;sys_platform=='win32'",
3230
"dill;sys_platform!='win32'",
31+
"dill>0.3.0,!=0.3.5,!=0.3.5.1;sys_platform=='win32'",
32+
"lib_detect_testenv",
3333
"multiprocess",
3434
"psutil",
3535
"wrapt",
3636
]
37-
version = "v1.4.0"
37+
version = "v1.4.1"
3838
# seems to be not allowed anymore
3939
# zip-save = false
4040

@@ -51,7 +51,7 @@ test = [
5151
"coloredlogs",
5252
"coverage",
5353
"flake8",
54-
"mypy ; platform_python_implementation != 'PyPy'",
54+
"mypy",
5555
"pytest",
5656
"pytest-cov",
5757
"pytest-runner",
@@ -63,9 +63,9 @@ test = [
6363

6464
[tool.setuptools.package-data]
6565
wrapt_timeout_decorator = [
66-
"py.typed",
6766
"*.pyi",
6867
"__init__.pyi",
68+
"py.typed",
6969
]
7070

7171
[tool.black]

requirements_test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ codecov
66
coloredlogs
77
coverage
88
flake8
9-
mypy ; platform_python_implementation != "PyPy"
9+
mypy
1010
pytest
1111
pytest-cov
1212
pytest-runner

tests/local_testscripts/lib_bash_functions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function run_flake8_tests() {
147147

148148
function run_mypy_tests() {
149149
my_banner "mypy tests"
150-
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
150+
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
151151
my_banner_warning "mypy tests ERROR"
152152
beep
153153
sleep "${sleeptime_on_error}"

wrapt_timeout_decorator/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from .wrapt_timeout_decorator import timeout
2-
from .wrap_helper import detect_unpickable_objects
3-
from .wrap_helper import detect_unpickable_objects_and_reraise
1+
from .wrapt_timeout_decorator import timeout as timeout
2+
from .wrap_helper import detect_unpickable_objects as detect_unpickable_objects
3+
from .wrap_helper import detect_unpickable_objects_and_reraise as detect_unpickable_objects_and_reraise
44

55
# this needs to come after the module imports, otherwise circular import under windows
66
from . import __init__conf__

wrapt_timeout_decorator/__init__conf__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
name = 'wrapt_timeout_decorator'
44
title = 'The better timout decorator'
5-
version = 'v1.4.0'
5+
version = 'v1.4.1'
66
url = 'https://github.com/bitranox/wrapt_timeout_decorator'
77
author = 'Robert Nowotny'
88
author_email = '[email protected]'
@@ -16,7 +16,7 @@ def print_info() -> None:
1616
1717
The better timout decorator
1818
19-
Version : v1.4.0
19+
Version : v1.4.1
2020
Url : https://github.com/bitranox/wrapt_timeout_decorator
2121
Author : Robert Nowotny
2222
Email : [email protected]""")

0 commit comments

Comments
 (0)