From 6772d8c2a608572880e49bf0c3bbac998f8e3374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Gr=C3=BCning?= Date: Wed, 11 May 2022 09:22:10 +0200 Subject: [PATCH 1/2] Test also on Python 3.10 The idea is to test the lower and upper bound. --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 33fce0c91..54f59d769 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.7'] + python-version: ['3.7', '3.10'] tox-action: - lint - lint_docs From 50a06a417139cff29f750a8c55218ef9c98c7549 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Fri, 28 Oct 2022 18:46:07 +0100 Subject: [PATCH 2/2] Officially support Python 3.10 Also: - Don't pass deprecated arguments to `setup()` . - Fix flake8 errors on Python 3.10 --- planemo/shed2tap/base.py | 2 +- setup.py | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/planemo/shed2tap/base.py b/planemo/shed2tap/base.py index 18ea0fbeb..74ef6945d 100644 --- a/planemo/shed2tap/base.py +++ b/planemo/shed2tap/base.py @@ -298,7 +298,7 @@ def __init__(self, name, version, repo): class BaseAction: _keys: List[str] = [] - action_type = None # type: str + action_type: str def __repr__(self): return f"Action[type={self.action_type}]" diff --git a/setup.py b/setup.py index 029f625b6..f671ab461 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,6 @@ _version_re = re.compile(r"__version__\s+=\s+(.*)") - with open("%s/__init__.py" % SOURCE_DIR, "rb") as f: init_contents = f.read().decode("utf-8") @@ -40,7 +39,6 @@ def get_var(var_name): PROJECT_AUTHOR = get_var("PROJECT_AUTHOR") PROJECT_EMAIL = get_var("PROJECT_EMAIL") -TEST_DIR = "tests" PROJECT_DESCRIPTION = ( "Command-line utilities to assist in building tools for the Galaxy project (http://galaxyproject.org/)." ) @@ -90,11 +88,6 @@ def get_var(var_name): # In tox, it will cover them anyway. requirements = [] -test_requirements = [ - # TODO: put package test requirements here -] - - setup( name=PROJECT_NAME, version=version, @@ -127,7 +120,6 @@ def get_var(var_name): "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", ], - test_suite=TEST_DIR, - tests_require=test_requirements, )