Skip to content

Commit

Permalink
Updates the supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
hiwakaba committed Oct 22, 2024
1 parent b2e9dc7 commit b8be29d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
8 changes: 3 additions & 5 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 Down Expand Up @@ -68,10 +68,8 @@ 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

#
# Local variables:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 7 additions & 7 deletions src/k2hdkc/k2hdkc.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _set_k2h_handle(self):
raise RuntimeError("handle should not be K2H_INVALID_HANDLE")
self._handle = handle

def __init__(
def __init__( # pylint: disable=too-many-positional-arguments
self,
conf_file,
port=8031,
Expand Down Expand Up @@ -139,7 +139,7 @@ def libc(self):
"""returns libc handle"""
return self._libc

def set( # noqa: pylint: disable=too-many-branches
def set( # noqa: pylint: disable=too-many-branches,too-many-positional-arguments
self,
key,
val,
Expand Down Expand Up @@ -268,7 +268,7 @@ def get(self, key, password=None):
# bool checkattr,
# const char* encpass,
# const time_t* expire)
def add_subkey(
def add_subkey( # pylint: disable=too-many-positional-arguments
self,
key,
subkey,
Expand Down Expand Up @@ -530,7 +530,7 @@ def cas_init(
# uint8_t newval,
# const char* encpass,
# const time_t* expire)
def cas_set( # noqa: pylint: disable=too-many-branches
def cas_set( # noqa pylint: disable=too-many-branches,too-many-positional-arguments
self, key, old_val, new_val, password=None, expire_duration=None
):
"""Sets a value in a cluster by using a CAS operation."""
Expand Down Expand Up @@ -742,7 +742,7 @@ def queue_get(self, prefix, is_fifo=True, password=None, expire_duration=None):
# bool checkattr,
# const char* encpass,
# const time_t* expire)
def queue_put(
def queue_put( # pylint: disable=too-many-positional-arguments
self,
prefix,
val,
Expand Down Expand Up @@ -841,7 +841,7 @@ def keyqueue_get(self, prefix, is_fifo=True, password=None, expire_duration=None
# bool checkattr,
# const char* encpass,
# const time_t* expire)
def keyqueue_put(
def keyqueue_put( # pylint: disable=too-many-positional-arguments
self,
prefix,
key,
Expand Down Expand Up @@ -952,7 +952,7 @@ def remove_subkeys(
# bool checkattr,
# const char* encpass,
# const time_t* expire)
def rename(
def rename( # pylint: disable=too-many-positional-arguments
self,
key,
newkey,
Expand Down

0 comments on commit b8be29d

Please sign in to comment.