Skip to content

Commit fac4731

Browse files
committed
refractor
1 parent f3dbe7c commit fac4731

19 files changed

+199
-182
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_registry
22
============
33

44

5-
Version v2.0.4 as of 2020-08-04 see `Changelog`_
5+
Version v2.0.5 as of 2020-08-08 see `Changelog`_
66

77

88
.. include:: ./badges.rst

.docs/installation.rst

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,17 @@
55
66
python -m pip --upgrade pip
77
python -m pip --upgrade setuptools
8-
python -m pip --upgrade wheel
8+
99
1010
.. include:: ./installation_via_pypi.rst
1111

12-
- to install the latest development version from github via pip:
12+
- to install the latest version from github via pip:
1313

1414

1515
.. code-block:: bash
1616
17-
# normal install
1817
python -m pip install --upgrade git+https://github.com/bitranox/lib_registry.git
1918
20-
# to test without installing (can be skipped)
21-
python -m pip install git+https://github.com/bitranox/lib_registry.git --install-option test
22-
23-
# to install and upgrade all dependencies regardless of version number
24-
python -m pip install --upgrade git+https://github.com/bitranox/lib_registry.git --upgrade-strategy eager
25-
2619
2720
- include it into Your requirements.txt:
2821

@@ -39,19 +32,13 @@
3932
python -m pip install --upgrade -r /<path>/requirements.txt
4033
4134
42-
4335
- to install the latest development version from source code:
4436

4537
.. code-block:: bash
4638
4739
# cd ~
4840
$ git clone https://github.com/bitranox/lib_registry.git
4941
$ cd lib_registry
50-
51-
# to test without installing (can be skipped)
52-
python setup.py test
53-
54-
# normal install
5542
python setup.py install
5643
5744

.docs/installation_via_pypi.rst

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

33
.. code-block:: bash
44
5-
# install latest release from PyPi
65
python -m pip install --upgrade lib_registry
7-
8-
# test latest release from PyPi without installing (can be skipped)
9-
python -m pip install lib_registry --install-option test

.docs/tested_under.rst

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

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

.travis.yml

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,23 @@ env:
1313
- cPIP="python -m pip"
1414
# switch off wine fix me messages
1515
- WINEDEBUG=fixme-all
16-
# mypy path
16+
17+
# PYTEST
18+
- PYTEST_DO_TESTS="True"
19+
20+
# FLAKE8 tests
21+
- DO_FLAKE8_TESTS="True"
22+
23+
# MYPY tests
24+
- MYPY_DO_TESTS="True"
25+
- MYPY_OPTIONS="--follow-imports=normal --implicit-reexport --no-warn-unused-ignores --strict"
1726
- MYPYPATH="./lib_registry/3rd_party_stubs"
27+
28+
# coverage
29+
- DO_COVERAGE="True"
30+
- DO_COVERAGE_UPLOAD_CODECOV="True"
31+
- DO_COVERAGE_UPLOAD_CODE_CLIMATE="True"
32+
1833
# package name
1934
- PACKAGE_NAME="lib_registry"
2035
# the registered CLI Command
@@ -23,11 +38,13 @@ env:
2338
- RST_INCLUDE_SOURCE="./.docs/README_template.rst"
2439
# the target file for rst_include (rebuild rst file includes)
2540
- RST_INCLUDE_TARGET="./README.rst"
41+
2642
# secure environment variable
2743
- secure: "AP9/YXcfQzCyGCOdgCqO8ryUAanXxQCD3v2oV8r4EYSi0cAZIPfTNayxVyDLkciLjyu5Sh55WbCD9Ky302AOcwLfdGEG30r2f/cckBzQxhtaRrMXWCnmMpiA9t1Xz42T+Zf9kXBeTAB7Tm8AUSAWYjipqk2XfE36a6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r5QrGJEIGqB4F7OosvVQzq1uAvSWuyoQT7lZZEZeNbnsnxobS3RVQl0tg2/mVxppnjQWmZZgqudNA+BA+oZoXfGm5in6JPineqKBzfxW7zZ6ms5NDJ5YQoeJ2rOUPcZiQ5NnjCwMDC82AL7SKzGfmcsl1UWABgSMeg=" # PYPI_PASSWORD.secret
2945

3046

47+
3148
addons:
3249
apt:
3350
packages:
@@ -59,7 +76,7 @@ matrix:
5976
- export DEPLOY_SDIST="False"
6077
- export DEPLOY_WHEEL="False"
6178
- export DEPLOY_TEST="False"
62-
- export MYPY_STRICT="True"
79+
- export MYPY_DO_TESTS="True"
6380

6481

6582
- os: linux
@@ -69,10 +86,10 @@ matrix:
6986
python: "3.6"
7087
before_install:
7188
- export BUILD_DOCS="False"
72-
- export DEPLOY_SDIST="False"
73-
- export DEPLOY_WHEEL="False"
89+
- export DEPLOY_SDIST="True"
90+
- export DEPLOY_WHEEL="True"
7491
- export BUILD_TEST="True"
75-
- export MYPY_STRICT="True"
92+
- export MYPY_DO_TESTS="True"
7693

7794
- os: linux
7895
arch: "amd64"
@@ -81,10 +98,10 @@ matrix:
8198
python: "3.7"
8299
before_install:
83100
- export BUILD_DOCS="False"
84-
- export DEPLOY_SDIST="False"
101+
- export DEPLOY_SDIST="True"
85102
- export DEPLOY_WHEEL="False"
86103
- export BUILD_TEST="True"
87-
- export MYPY_STRICT="True"
104+
- export MYPY_DO_TESTS="True"
88105

89106
- os: linux
90107
arch: "amd64"
@@ -96,7 +113,7 @@ matrix:
96113
- export DEPLOY_SDIST="True"
97114
- export DEPLOY_WHEEL="True"
98115
- export BUILD_TEST="True"
99-
- export MYPY_STRICT="True"
116+
- export MYPY_DO_TESTS="True"
100117

101118
- os: linux
102119
arch: "amd64"
@@ -105,10 +122,10 @@ matrix:
105122
python: "3.8-dev"
106123
before_install:
107124
- export BUILD_DOCS="False"
108-
- export DEPLOY_SDIST="False"
109-
- export DEPLOY_WHEEL="False"
125+
- export DEPLOY_SDIST="True"
126+
- export DEPLOY_WHEEL="True"
110127
- export BUILD_TEST="True"
111-
- export MYPY_STRICT="True"
128+
- export MYPY_DO_TESTS="True"
112129

113130
- os: linux
114131
arch: "amd64"
@@ -117,10 +134,10 @@ matrix:
117134
python: "pypy3"
118135
before_install:
119136
- export BUILD_DOCS="False"
120-
- export DEPLOY_SDIST="False"
121-
- export DEPLOY_WHEEL="False"
137+
- export DEPLOY_SDIST="True"
138+
- export DEPLOY_WHEEL="True"
122139
- export BUILD_TEST="True"
123-
- export MYPY_STRICT="False"
140+
- export MYPY_DO_TESTS="False"
124141

125142
- os: linux
126143
arch: "ppc64le"
@@ -129,10 +146,10 @@ matrix:
129146
python: "3.8"
130147
before_install:
131148
- export BUILD_DOCS="False"
132-
- export DEPLOY_SDIST="False"
133-
- export DEPLOY_WHEEL="False"
149+
- export DEPLOY_SDIST="True"
150+
- export DEPLOY_WHEEL="True"
134151
- export BUILD_TEST="True"
135-
- export MYPY_STRICT="True"
152+
- export MYPY_DO_TESTS="True"
136153

137154
- os: linux
138155
arch: "s390x"
@@ -141,10 +158,10 @@ matrix:
141158
python: "3.8"
142159
before_install:
143160
- export BUILD_DOCS="False"
144-
- export DEPLOY_SDIST="False"
145-
- export DEPLOY_WHEEL="False"
161+
- export DEPLOY_SDIST="True"
162+
- export DEPLOY_WHEEL="True"
146163
- export BUILD_TEST="True"
147-
- export MYPY_STRICT="True"
164+
- export MYPY_DO_TESTS="True"
148165

149166
- os: linux
150167
arch: "arm64"
@@ -153,10 +170,10 @@ matrix:
153170
python: "3.8"
154171
before_install:
155172
- export BUILD_DOCS="False"
156-
- export DEPLOY_SDIST="False"
157-
- export DEPLOY_WHEEL="False"
173+
- export DEPLOY_SDIST="True"
174+
- export DEPLOY_WHEEL="True"
158175
- export BUILD_TEST="True"
159-
- export MYPY_STRICT="True"
176+
- export MYPY_DO_TESTS="True"
160177

161178
- os: osx
162179
if: true
@@ -173,7 +190,7 @@ matrix:
173190
- export DEPLOY_SDIST="False"
174191
- export DEPLOY_WHEEL="False"
175192
- export DEPLOY_TEST="True"
176-
- export MYPY_STRICT="True"
193+
- export MYPY_DO_TESTS="True"
177194

178195

179196
install:

CHANGES.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ tasks:
1111
- pathlib-like Interface
1212
- jupyter notebook update
1313

14+
v2.0.5
15+
--------
16+
2020-08-08: service release
17+
- fix documentation
18+
- fix travis
19+
- deprecate pycodestyle
20+
- implement flake8
1421

1522
v2.0.4
1623
---------
@@ -20,7 +27,6 @@ v2.0.3
2027
--------
2128
2020-07-31: fix travis build
2229

23-
2430
v2.0.2
2531
--------
2632
2020-07-29: feature release

README.rst

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

44

5-
Version v2.0.4 as of 2020-08-04 see `Changelog`_
5+
Version v2.0.5 as of 2020-08-08 see `Changelog`_
66

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

@@ -56,7 +56,7 @@ Python version required: 3.6.0 or newer
5656

5757
tested on linux "bionic" with python 3.6, 3.7, 3.8, 3.8-dev, pypy3 - architectures: amd64, ppc64le, s390x, arm64
5858

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

6161
----
6262

@@ -331,32 +331,20 @@ Installation and Upgrade
331331
332332
python -m pip --upgrade pip
333333
python -m pip --upgrade setuptools
334-
python -m pip --upgrade wheel
335334
336335
- to install the latest release from PyPi via pip (recommended):
337336

338337
.. code-block:: bash
339338
340-
# install latest release from PyPi
341339
python -m pip install --upgrade lib_registry
342340
343-
# test latest release from PyPi without installing (can be skipped)
344-
python -m pip install lib_registry --install-option test
345-
346-
- to install the latest development version from github via pip:
341+
- to install the latest version from github via pip:
347342

348343

349344
.. code-block:: bash
350345
351-
# normal install
352346
python -m pip install --upgrade git+https://github.com/bitranox/lib_registry.git
353347
354-
# to test without installing (can be skipped)
355-
python -m pip install git+https://github.com/bitranox/lib_registry.git --install-option test
356-
357-
# to install and upgrade all dependencies regardless of version number
358-
python -m pip install --upgrade git+https://github.com/bitranox/lib_registry.git --upgrade-strategy eager
359-
360348
361349
- include it into Your requirements.txt:
362350

@@ -373,19 +361,13 @@ Installation and Upgrade
373361
python -m pip install --upgrade -r /<path>/requirements.txt
374362
375363
376-
377364
- to install the latest development version from source code:
378365

379366
.. code-block:: bash
380367
381368
# cd ~
382369
$ git clone https://github.com/bitranox/lib_registry.git
383370
$ cd lib_registry
384-
385-
# to test without installing (can be skipped)
386-
python setup.py test
387-
388-
# normal install
389371
python setup.py install
390372
391373
- via makefile:
@@ -452,6 +434,13 @@ tasks:
452434
- pathlib-like Interface
453435
- jupyter notebook update
454436

437+
v2.0.5
438+
--------
439+
2020-08-08: service release
440+
- fix documentation
441+
- fix travis
442+
- deprecate pycodestyle
443+
- implement flake8
455444

456445
v2.0.4
457446
---------
@@ -461,7 +450,6 @@ v2.0.3
461450
--------
462451
2020-07-31: fix travis build
463452

464-
465453
v2.0.2
466454
--------
467455
2020-07-29: feature release

conftest.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import platform
21
from typing import List
32

4-
collect_ignore = ['setup.py']
3+
collect_ignore: List[str] = []
54

65

76
def pytest_cmdline_preparse(args: List[str]) -> None:
@@ -16,13 +15,5 @@ def pytest_cmdline_preparse(args: List[str]) -> None:
1615
args[:] = ["-n", str(num)] + args
1716
"""
1817

19-
additional_mypy_args: List[str] = list()
20-
additional_pycodestyle_args: List[str] = list()
21-
22-
# add mypy option if not pypy
23-
# if platform.python_implementation() != "PyPy" and sys.version_info >= (3, 5) and sys.version_info != (3, 6): # type: ignore
24-
if platform.python_implementation() != "PyPy":
25-
additional_mypy_args = ['--mypy']
26-
27-
additional_pycodestyle_args = ['--pycodestyle']
28-
args[:] = list(set(args + additional_mypy_args + additional_pycodestyle_args))
18+
additional_pytest_args: List[str] = []
19+
args[:] = list(set(args + additional_pytest_args))

lib_registry/__init__conf__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = 'lib_registry'
22
title = 'a more pythonic way to access the windows registry as winreg'
3-
version = 'v2.0.4'
3+
version = 'v2.0.5'
44
url = 'https://github.com/bitranox/lib_registry'
55
author = 'Robert Nowotny'
66
author_email = 'bitranox@gmail.com'
@@ -14,7 +14,7 @@ def print_info() -> None:
1414
1515
a more pythonic way to access the windows registry as winreg
1616
17-
Version : v2.0.4
17+
Version : v2.0.5
1818
Url : https://github.com/bitranox/lib_registry
1919
Author : Robert Nowotny
2020
Email : bitranox@gmail.com""")

mypy.ini

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)