diff --git a/.taskcluster.yml b/.taskcluster.yml index 3edc823..a54ac62 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -46,6 +46,10 @@ tasks: version: "3.11" env: TOXENV: py311,lint + - name: tests python 3.12 + version: "3.12" + env: + TOXENV: py312,lint - name: PyPI upload version: "3.8" env: diff --git a/setup.py b/setup.py deleted file mode 100755 index da804eb..0000000 --- a/setup.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env python -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at https://mozilla.org/MPL/2.0/. -"""setuptools install script""" - -import site - -from setuptools import setup - -site.ENABLE_USER_SITE = True - - -if __name__ == "__main__": - setup() diff --git a/src/ffpuppet/profile.py b/src/ffpuppet/profile.py index f013aef..0b9dde3 100644 --- a/src/ffpuppet/profile.py +++ b/src/ffpuppet/profile.py @@ -53,6 +53,7 @@ def __init__( self._install_cert(cert, certutil_find(browser_bin)) except Exception: if self.path.exists(): + # pylint: disable=deprecated-argument rmtree(self.path, onerror=onerror) raise @@ -233,6 +234,7 @@ def remove(self, ignore_errors: bool = True) -> None: # check if path exists to properly support "onerror" if self.path.exists(): LOG.debug("removing profile") + # pylint: disable=deprecated-argument rmtree(self.path, onerror=onerror) except OSError: LOG.error("Failed to remove profile '%s'", self.path) diff --git a/src/ffpuppet/puppet_logger.py b/src/ffpuppet/puppet_logger.py index ebd6122..1c45913 100644 --- a/src/ffpuppet/puppet_logger.py +++ b/src/ffpuppet/puppet_logger.py @@ -108,6 +108,7 @@ def clean_up(self, ignore_errors: bool = False) -> None: try: # check if path exists to properly support "onerror" if self.path.exists(): + # pylint: disable=deprecated-argument rmtree(self.path, ignore_errors=ignore_errors, onerror=onerror) except OSError: if attempt == 0: diff --git a/tox.ini b/tox.ini index b9d108c..093f4fb 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{38,39,310,311},lint +envlist = py{38,39,310,311,312},lint skip_missing_interpreters = true tox_pip_extensions_ext_venv_update = true