diff --git a/.coveragerc b/.coveragerc deleted file mode 100644 index 45987e2..0000000 --- a/.coveragerc +++ /dev/null @@ -1,6 +0,0 @@ -[run] -branch = True -source = graphite_render - -[report] -omit = *_vendor* diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5a3750e..51a73ae 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,4 +1,4 @@ -name: Tests +name: CI on: push: @@ -11,7 +11,6 @@ on: permissions: contents: read - issues: write jobs: test: @@ -20,8 +19,6 @@ jobs: fail-fast: false matrix: include: - - python-version: "3.8" - toxenv: py38 - python-version: "3.9" toxenv: py39 - python-version: "3.10" @@ -34,7 +31,7 @@ jobs: toxenv: py313 - python-version: "3.14" toxenv: py314 - - python-version: "3.12" + - python-version: "3.x" toxenv: no-flask-caching steps: @@ -104,6 +101,8 @@ jobs: runs-on: ubuntu-latest needs: [test, build, docs] if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) && github.event_name == 'schedule' + permissions: + issues: write steps: - name: Create issue on failure uses: actions/github-script@v8 @@ -112,7 +111,6 @@ jobs: const title = 'Scheduled Tests Failed'; const workflowUrl = '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'; const timestamp = new Date().toISOString(); - const body = `The scheduled test run failed on ${timestamp}. **Workflow Run:** ${workflowUrl} diff --git a/pyproject.toml b/pyproject.toml index f2de65e..c62275f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,8 +7,8 @@ name = "graphite-render" version = "1.1.6" description = "based on graphite-api, which is based graphite-web, but maintained for python3." readme = "README.rst" -requires-python = ">=3.8" -license = {text = "Apache-2.0"} +requires-python = ">=3.9" +license = "Apache-2.0" authors = [ {name = "Bruno ReniƩ", email = "bruno@renie.fr"}, {name = "Christoph Settgast", email = "csett86_git@quicksands.de"}, @@ -23,7 +23,6 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", diff --git a/tox.ini b/tox.ini index f877bc9..616946a 100644 --- a/tox.ini +++ b/tox.ini @@ -7,8 +7,7 @@ envlist = py312, py313, py314, - no-flask-caching, - docs + no-flask-caching [testenv] setenv = @@ -44,11 +43,3 @@ basepython = python3.14 basepython = python3.12 deps = .[sentry] - -[testenv:docs] -changedir = docs -deps = - Sphinx - structlog -commands = - sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html diff --git a/unittest_main.py b/unittest_main.py deleted file mode 100644 index b27718c..0000000 --- a/unittest_main.py +++ /dev/null @@ -1,18 +0,0 @@ -"""Main entry point""" - -import sys -if sys.argv[0].endswith("__main__.py"): - import os.path - # We change sys.argv[0] to make help message more useful - # use executable without path, unquoted - # (it's just a hint anyway) - # (if you have spaces in your executable you get what you deserve!) - executable = os.path.basename(sys.executable) - sys.argv[0] = executable + " -m unittest" - del os - -__unittest = True - -from unittest.main import main, TestProgram - -main(module=None)