From 1a8d3555bbbc80c4ef1c3d58767c397878e04bba Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Fri, 19 Jul 2024 09:58:36 +0200 Subject: [PATCH] setup: move to support python3.12 only * remove not used files * remove --db from run-tests.sh because it is not necessary to run the tests. only use what is necessary! --- requirements-devel.txt | 12 ------------ run-tests.sh | 2 +- setup.cfg | 20 +++++++------------- 3 files changed, 8 insertions(+), 26 deletions(-) delete mode 100644 requirements-devel.txt diff --git a/requirements-devel.txt b/requirements-devel.txt deleted file mode 100644 index bdbe64f..0000000 --- a/requirements-devel.txt +++ /dev/null @@ -1,12 +0,0 @@ -# -*- coding: utf-8 -*- -# -# Copyright (C) 2021 Graz University of Technology. -# -# repository-cli is free software; you can redistribute it and/or modify it -# under the terms of the MIT License; see LICENSE file for more details. -# -# TODO: Add development versions of some important dependencies here to get a -# warning when there are breaking upstream changes, e.g.: -# -# -e git+git://github.com/mitsuhiko/werkzeug.git#egg=Werkzeug -# -e git+git://github.com/mitsuhiko/jinja2.git#egg=Jinja2 diff --git a/run-tests.sh b/run-tests.sh index 7a3c82c..3d1a4ab 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -42,5 +42,5 @@ fi python -m check_manifest python -m sphinx.cmd.build -qnNW docs docs/_build/html -eval "$(docker-services-cli up --db ${DB:-postgresql} --search ${SEARCH:-opensearch} --cache ${CACHE:-redis} --env)" +eval "$(docker-services-cli up --search ${SEARCH:-opensearch} --cache ${CACHE:-redis} --env)" python -m pytest ${pytest_args[@]+"${pytest_args[@]}"} diff --git a/setup.cfg b/setup.cfg index 655f67a..bcceedf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2021-2023 Graz University of Technology. +# Copyright (C) 2021-2024 Graz University of Technology. # # repository-cli is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. @@ -17,18 +17,16 @@ author_email = info@inveniosoftware.org platforms = any url = https://github.com/inveniosoftware/repository-cli classifiers = - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 + Programming Language :: Python :: 3.12 Development Status :: 5 - Production/Stable [options] include_package_data = True packages = find: -python_requires = >=3.9 +python_requires = >=3.12 zip_safe = False install_requires = - click>=7.1.1 + click>=8.0.0 invenio-rdm-records[opensearch2]>=4.0.0 invenio-records-marc21>=0.9 invenio-records-lom>=0.10 @@ -42,9 +40,9 @@ tests = invenio-app>=1.3.0 invenio-search[opensearch2]>=2.1.0 invenio-cache>=1.1.1 - Sphinx>=4.5 - sphinx-click>=2.5.0 - ruff>=0.0.270 + Sphinx>=7.0.0 + sphinx-click>=6.0.0 + ruff>=0.5.3 [options.entry_points] flask.commands = @@ -63,10 +61,6 @@ universal = 1 [tool:isort] profile=black -[check-manifest] -ignore = - *-requirements.txt - [tool:pytest] addopts = --black --doctest-glob="*.rst" --doctest-modules --cov=repository_cli --cov-report=term-missing testpaths = tests repository_cli