Skip to content

Commit

Permalink
Merge pull request #19 from bitranox/development
Browse files Browse the repository at this point in the history
v1.6.1
  • Loading branch information
bitranox committed Mar 25, 2022
2 parents 9207477 + 672681f commit d6e0669
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 28 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 @@ fake_winreg
===========


Version v1.6.0 as of 2021-12-18 see `Changelog`_
Version v1.6.1 as of 2022-03-25 see `Changelog`_


.. include:: ./badges.rst
Expand Down
6 changes: 5 additions & 1 deletion .docs/badges.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
|build_badge| |license| |jupyter| |pypi| |black|
|build_badge| |license| |jupyter| |pypi| |pypi-downloads| |black|

|codecov| |better_code| |cc_maintain| |cc_issues| |cc_coverage| |snyk|

Expand Down Expand Up @@ -41,3 +41,7 @@

.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black

.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/fake-winreg
:target: https://pypi.org/project/fake-winreg/
:alt: PyPI - Downloads
1 change: 0 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,3 @@ jobs:
shell: bash
run: |
lib_cicd_github deploy
ls -l ./dist
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ env:
- RST_INCLUDE_TARGET="./README.rst"

# secure environment variable
- secure: "Brn05mzQaYs7JjEbAszepg3tC/wfmJAnda7okkD6SfWvzJa3Ov2gOEfqXNBmD+UO0EiV3txp2jACdkun8dbevmeEg8/hYG5nbBS/UUz9pByssWLZ69MvSBTLmHZkJ26/EmcaKgWXyzl/iEBIowSk8K67oPDx9bAQA2Av1PAIT2X9ie84fGYGTjl+IAoiSuedBgTX7a1FtZt6sHq78Nm6i8Zal9IHD5M4Iw8ZmnPmB7C0LOOWqImk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3TvibTNHhx/I8OCbeMC2QuIvAPy7u4YyZjf7AHZJAEO/7AmWUzjPU3+CnDH+gES+BeWjAhXiqU=" # PYPI_PASSWORD.secret



Expand Down
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ planned:
- investigate SYSWOW32/64 Views
- Admin Permissions

v1.6.1
--------
2022-03-25: fix github actions windows test

v1.6.0
--------
2021-12-19: feature release
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-2021 Robert Nowotny
Copyright (c) 1990-2022 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
13 changes: 11 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ fake_winreg
===========


Version v1.6.0 as of 2021-12-18 see `Changelog`_
Version v1.6.1 as of 2022-03-25 see `Changelog`_

|build_badge| |license| |jupyter| |pypi| |black|
|build_badge| |license| |jupyter| |pypi| |pypi-downloads| |black|

|codecov| |better_code| |cc_maintain| |cc_issues| |cc_coverage| |snyk|

Expand Down Expand Up @@ -48,6 +48,10 @@ Version v1.6.0 as of 2021-12-18 see `Changelog`_
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black

.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/fake-winreg
:target: https://pypi.org/project/fake-winreg/
:alt: PyPI - Downloads

FUNCTION
========

Expand Down Expand Up @@ -2140,11 +2144,16 @@ planned:
- investigate SYSWOW32/64 Views
- Admin Permissions

v1.6.1
--------
2022-03-25: fix github actions windows test

v1.6.0
--------
2021-12-19: feature release
- update github actions
- fix "setup.py test"
- fix typing

v1.5.7
--------
Expand Down
15 changes: 3 additions & 12 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
import pytest
from typing import List

collect_ignore: List[str] = []


def pytest_cmdline_preparse(args: List[str]) -> None:
"""
# run tests on multiple processes if pytest-xdist plugin is available
# unfortunately it does not work with codecov
import sys
if "xdist" in sys.modules: # pytest-xdist plugin
import multiprocessing
num = int(max(multiprocessing.cpu_count() / 2, 1))
args[:] = ["-n", str(num)] + args
"""

def pytest_load_initial_conftests(early_config: pytest.Config, parser: pytest.Parser, args: List[str]) -> None:
# PizzaCutter Template can add here additional pytest args
additional_pytest_args: List[str] = []
args[:] = list(set(args + additional_pytest_args))
4 changes: 2 additions & 2 deletions fake_winreg/__init__conf__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name = "fake_winreg"
title = "fake winreg, in order to test registry related functions on linux"
version = "v1.6.0"
version = "v1.6.1"
url = "https://github.com/bitranox/fake_winreg"
author = "Robert Nowotny"
author_email = "bitranox@gmail.com"
Expand All @@ -17,7 +17,7 @@ def print_info() -> None:
fake winreg, in order to test registry related functions on linux
Version : v1.6.0
Version : v1.6.1
Url : https://github.com/bitranox/fake_winreg
Author : Robert Nowotny
Email : bitranox@gmail.com"""
Expand Down
6 changes: 3 additions & 3 deletions fake_winreg/fake_winreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,7 @@ def __check_key(key: Any) -> None:
if not isinstance(key, int) and not isinstance(key, PyHKEY):
raise TypeError("The object is not a PyHKEY object")
if isinstance(key, int):
if key >= 2 ** 64:
if key >= 2**64:
raise OverflowError("int too big to convert")


Expand Down Expand Up @@ -2337,7 +2337,7 @@ def __check_index(index: Any) -> None:
index_type = type(index).__name__
if not isinstance(index, int):
raise TypeError("an integer is required (got type {access_type})".format(access_type=index_type))
elif index >= 2 ** 64:
elif index >= 2**64:
raise OverflowError("Python int too large to convert to C long")


Expand Down Expand Up @@ -2380,7 +2380,7 @@ def __check_reserved2(reserved: Any) -> None:
"""
if isinstance(reserved, int):
if 3 < reserved < 2 ** 64:
if 3 < reserved < 2**64:
__raise_permission_error()
__check_access(reserved) # otherwise same as __check_access

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_line_data(line: str) -> str:

setup_kwargs: Dict[str, Any] = dict()
setup_kwargs["name"] = "fake_winreg"
setup_kwargs["version"] = "v1.6.0"
setup_kwargs["version"] = "v1.6.1"
setup_kwargs["url"] = "https://github.com/bitranox/fake_winreg"
setup_kwargs["packages"] = find_packages()
setup_kwargs["package_data"] = {"fake_winreg": ["py.typed", "*.pyi", "__init__.pyi"]}
Expand Down
1 change: 0 additions & 1 deletion travis_secrets/secrets/CC_TEST_REPORTER_ID.secret.txt

This file was deleted.

1 change: 0 additions & 1 deletion travis_secrets/secrets/PYPI_PASSWORD.secret.txt

This file was deleted.

0 comments on commit d6e0669

Please sign in to comment.