Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates the supported versions #5

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.10", "3.9", "3.8"]
python-version: ["3.13", "3.12", "3.11", "3.10", "3.9"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -53,7 +53,7 @@ jobs:
shell: sh
- name: Test with unittest
run: |
python -I -m pip install 'setuptools>=42' wheel
python -I -m pip install setuptools wheel
pip install -q build
python -m build
pip3 install dist/k2hash-*.whl
Expand All @@ -68,7 +68,5 @@ jobs:
if: startsWith(github.ref, 'refs/tags')
run: python -m build
- name: Publish distribution to PyPI
if: ${{ matrix.python-version == '3.11' && startsWith(github.ref, 'refs/tags') }}
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
if: ${{ matrix.python-version == '3.12' && startsWith(github.ref, 'refs/tags') }}
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#
[build-system]
requires = [
"setuptools>=42",
"setuptools",
"wheel"
]
build-backend = "setuptools.build_meta"
Expand All @@ -22,7 +22,7 @@ build-backend = "setuptools.build_meta"
legacy_tox_ini = """
[tox]
requires = tox>=4
env_list = lint, type, py{38,39,310,311}
env_list = lint, type, py{39,310,311,312,313}
skip_missing_interpreters = True

[testenv]
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ classifiers =
package_dir =
= src
packages = find:
python_requires = >=3.6
python_requires = >=3.9

[options.packages.find]
where = src
Expand Down
2 changes: 1 addition & 1 deletion src/k2hash/basequeue.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BaseQueue: # noqa: pylint: disable=too-many-instance-attributes
Baseueue class provides methods to handle key/value pairs in k2hash hash database.
"""

def __init__( # noqa: pylint: disable=too-many-arguments
def __init__( # noqa: pylint: disable=too-many-arguments,too-many-positional-arguments
self, k2h, fifo=True, prefix=None, password=None, expire_duration=None
):
"""
Expand Down
8 changes: 4 additions & 4 deletions src/k2hash/k2hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _set_k2h_handle(self):
raise RuntimeError("handle should not be K2H_INVALID_HANDLE")
self._handle = handle

def __init__( # noqa: pylint: disable=too-many-branches,too-many-arguments
def __init__( # noqa: pylint: disable=too-many-branches,too-many-arguments,too-many-positional-arguments
self,
k2hfile="",
flag=None,
Expand Down Expand Up @@ -233,7 +233,7 @@ def libc(self):
"""returns libc handle"""
return self._libc

def set( # noqa: pylint: disable=too-many-arguments
def set( # noqa: pylint: disable=too-many-arguments,too-many-positional-arguments
self, key, val, password=None, expire_duration=None, time_unit=TimeUnit.SECONDS
):
"""Sets a key/value pair"""
Expand Down Expand Up @@ -316,7 +316,7 @@ def add_decryption_password(self, password):
LOG.error("error in k2h_add_attr_crypt_pass")
return res

def add_subkey( # noqa: pylint: disable=too-many-arguments
def add_subkey( # noqa: pylint: disable=too-many-arguments,too-many-positional-arguments
self,
key,
subkey,
Expand Down Expand Up @@ -777,7 +777,7 @@ def set_log_level(self, level=LogLevel.INFO):
"level should be either SILENT, ERROR, WARN, INFO or DEBUG"
)

def set_subkeys( # noqa: pylint: disable=too-many-branches,too-many-arguments
def set_subkeys( # noqa: pylint: disable=too-many-branches,too-many-arguments,too-many-positional-arguments
self,
key,
subkeys,
Expand Down
2 changes: 1 addition & 1 deletion src/k2hash/keyqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class KeyQueue(BaseQueue): # noqa: pylint: disable=too-many-instance-attributes
KeyQueue class provides methods to handle key/value pairs in k2hash hash database.
"""

def __init__( # noqa: pylint: disable=too-many-arguments
def __init__( # noqa: pylint: disable=too-many-arguments,too-many-positional-arguments
self, k2h, fifo=True, prefix=None, password=None, expire_duration=None
):
"""
Expand Down
2 changes: 1 addition & 1 deletion src/k2hash/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Queue(BaseQueue): # noqa: pylint:disable=too-many-instance-attributes
Queue class provides methods to handle key/value pairs in k2hash hash database.
"""

def __init__( # noqa: pylint: disable=too-many-arguments
def __init__( # noqa: pylint: disable=too-many-arguments,too-many-positional-arguments
self, k2h, fifo=True, prefix=None, password=None, expire_duration=None
):
"""
Expand Down
Loading