-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tox target to test implementation against py 3.6 and 3.11 stack Actually also wanted to add py3.4 but none of the github runners offers such an old python stack Add mypy tests. This is enabled to make sure we get notified if static type checking is enabled in the code. In this case we will be able to check if the affected code part is allowed to use type checking because the pre-checks python code must not use this feature of python as it is expected to run on SLE12 with py3.4 Fixup the overall python packaging. The former version of the package stack duplicates the module code in conflicting packages and also packaged python byte code binaries. This commit refactors the packaging such that the python module code is packages as a proper %{pythons}-migration package which can build for different python versions. The spec file change is done in a similar way to allow SLE12 and SLE15 builds as we do it for other PCT python modules. The respective DMS packages suse-migration-services, suse-migration-pre-checks can now simply require the DMS python stack and package only the main entry-point commands and services. This also allows to add further implementations to the DMS without ending in a package nightmare Fixup unit tests to finally get back to 100% test coverage as it was before I left the project. I'm not sure who tought it would be a good idea to weaken --cov-fail-under
- Loading branch information
Showing
9 changed files
with
122 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ mock | |
|
||
# Python style guide checker | ||
flake8 | ||
mypy | ||
|
||
# Version-bump your software with a single command! | ||
bumpversion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ sle15_activation: check | |
|
||
.PHONY: test | ||
test: | ||
tox -e unit_py3 | ||
tox | ||
|
||
check: | ||
tox -e check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
preserve: | ||
rules: | ||
- /etc/udev/rules.d/a.rules | ||
- /etc/udev/rules.d/b.rules | ||
- /etc/udev/rules.d/a.rules | ||
- /etc/udev/rules.d/b.rules | ||
static: | ||
- /etc/sysconfig/proxy | ||
- /etc/sysconfig/proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters