diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index eb8c912..30d108a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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 }} @@ -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: diff --git a/pyproject.toml b/pyproject.toml index e3ef049..83841c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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] diff --git a/setup.cfg b/setup.cfg index 5e05cd8..5608c0c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,7 +35,7 @@ classifiers = package_dir = = src packages = find: -python_requires = >=3.6 +python_requires = >=3.9 [options.packages.find] where = src diff --git a/src/k2hdkc/k2hdkc.py b/src/k2hdkc/k2hdkc.py index be002f6..1bee576 100644 --- a/src/k2hdkc/k2hdkc.py +++ b/src/k2hdkc/k2hdkc.py @@ -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, @@ -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, @@ -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, @@ -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.""" @@ -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, @@ -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, @@ -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,